docs/csg.js
function(shared) {
            var polygons = this.polygons.map(function(p) {
                return new CSG.Polygon(p.vertices, shared, p.plane);
            });
            var result = CSG.fromPolygons(polygons);
            result.properties = this.properties; // keep original properties
            result.isRetesselated = this.isRetesselated;
            result.isCanonicalized = this.isCanonicalized;
            return result;
        }
function(shared) {
            var polygons = this.polygons.map(function(p) {
                return new CSG.Polygon(p.vertices, shared, p.plane);
            });
            var result = CSG.fromPolygons(polygons);
            result.properties = this.properties; // keep original properties
            result.isRetesselated = this.isRetesselated;
            result.isCanonicalized = this.isCanonicalized;
            return result;
        }
function ( shared ) { var polygons = this . polygons . map ( function ( p ) { return new CSG . Polygon ( p . vertices , shared , p . plane ) ; } ) ; var result = CSG . fromPolygons ( polygons ) ; result . properties = this . properties ; // keep original properties result . isRetesselated = this . isRetesselated ; result . isCanonicalized = this . isCanonicalized ; return result ; }
set the .shared property of all polygons Returns a new CSG solid, the original is unmodified!
set the . shared property of all polygons Returns a new CSG solid the original is unmodified!