Solid Creation
clone()
Clones a shape
Syntax
cadlib.clone(solid, resetLocation, copyGeom, copyMesh);
Parameters
Name | Type | Description |
---|---|---|
solid | Solid | Solid to clone |
resetLocation | Boolean | Default: false. Resets location of the clonned object |
copyGeom | Boolean | If true, copies geometry to the clonned object |
copyMesh | Boolean | If true, copues mesh to the clonned object |
Returns
Solid - the clonned solid.
compound()
Creates a compound solid from one or more solids. A compoud is merely a collection of shapes.
Syntax
cadlib.compound(solids);
Parameters
Name | Type | Description |
---|---|---|
solids | Array | Array of Solid objects |
Returns
makeSolidFromShells
Creates a solid by combining shells. The shell is a composite shape built by the assembly of faces.
Syntax
cadlib.makeSolidFromShells(shells)
Parameters
Name | Type | Description |
---|---|---|
shells | Array | Array of shells |
Returns