addSweptIndexedPolyface Method
Add facets from the source polyface, from its translation along the vector, and from its swept boundary edges, to form a polyface that encloses a volume.
addSweptIndexedPolyface(source: IndexedPolyface, sweepVector: Vector3d, triangulateSides: booleanfalse): boolean
@returns whether the added facets comprise a simple sweep. If false, the resulting mesh may have self-intersections, be non-manifold, have inconsistently oriented facets, etc.
Parameter | Type | Description |
---|---|---|
source | IndexedPolyface | the surface mesh to sweep. |
sweepVector | Vector3d | the direction and length to sweep the surface mesh. |
triangulateSides | boolean | whether to triangulate side facets, or leave as quads. |
Returns - boolean
whether the added facets comprise a simple sweep. If false, the resulting mesh may have self-intersections, be non-manifold, have inconsistently oriented facets, etc.
Defined in
- polyface/PolyfaceBuilder.ts Line 2114
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.