- Source
Members
centerOfMass
Computes the center of mass of the solid.
- Source
edges
Retrieves all edges of the solid.
- Source
faces
Retrieves all faces of the solid.
- Source
vertices
Retrieves all vertices of the solid.
- Source
volume
Computes the volume of the solid.
- Source
Methods
chamfer(parameters) → {Solid}
Applies a chamfer (beveled edge) to selected edges of the solid.
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
parameters | Object | Chamfer parameters. Properties
|
- Source
A new Solid object with the chamfer applied.
- Type:
- Solid
cut(…tools) → {Array.<Solid>}
Cuts the solid using one or more tools (other solids).
| Name | Type | Attributes | Description |
|---|---|---|---|
tools | Solid | <repeatable> | One or more |
- Source
An array of Solid objects representing the result.
- Type:
- Array.<Solid>
fillet(parameters) → {Solid}
Applies a fillet (rounded edge) to selected edges of the solid.
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
parameters | Object | Fillet parameters. Properties
|
- Source
A new Solid object with the fillet applied.
- Type:
- Solid
intersect(…tools) → {Array.<Solid>}
Intersects the solid with one or more tools (other solids).
| Name | Type | Attributes | Description |
|---|---|---|---|
tools | Solid | <repeatable> | One or more |
- Source
An array of Solid objects representing the result.
- Type:
- Array.<Solid>
join(…tools) → {Array.<Solid>}
Joins the solid with one or more tools (other solids).
| Name | Type | Attributes | Description |
|---|---|---|---|
tools | Solid | <repeatable> | One or more |
- Source
An array of Solid objects representing the result.
- Type:
- Array.<Solid>
mirror(plane) → {Solid}
Mirrors the solid across a specified plane.
| Name | Type | Description |
|---|---|---|
plane | Plane | The plane to mirror across. |
- Source
A new Solid object representing the mirrored solid.
- Type:
- Solid
rotate(parameters) → {Solid}
Rotates the solid around a specified axis by a given angle.
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
parameters | Object | Rotation parameters. Properties
|
- Source
A new Solid object representing the rotated solid.
- Type:
- Solid
scale(factor) → {Solid}
Scales the solid by a specified factor.
| Name | Type | Description |
|---|---|---|
factor | number | The scaling factor. |
- Source
A new Solid object representing the scaled solid.
- Type:
- Solid
shell(parameters) → {Solid}
Creates a hollow version of the solid by offsetting its faces by a specified thickness.
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameters | Object | Shell parameters. Properties
|
- Source
A new Solid object representing the shelled solid.
- Type:
- Solid
split(tool) → {Array.<Solid>}
Splits the solid into multiple parts using a specified tool.
| Name | Type | Description |
|---|---|---|
tool | Plane | The tool used to split the solid. |
- Source
An array of Solid objects representing the split parts.
- Type:
- Array.<Solid>
translate(offset) → {Solid}
Translates the solid by a specified offset.
| Name | Type | Description |
|---|---|---|
offset | Vector | The translation offset. |
- Source
A new Solid object representing the translated solid.
- Type:
- Solid
(static) fromFaces(…faces) → {Solid}
Creates a new solid from a set of faces.
| Name | Type | Attributes | Description |
|---|---|---|---|
faces | Face | <repeatable> | One or more |
- Source
A new Solid object representing the created solid.
- Type:
- Solid