PolyfaceClip Class

PolyfaceClip is a static class gathering operations using Polyfaces and clippers.

Methods

Name Description
clipPolyface(polyface: Polyface, clipper: ClipPlane | ConvexClipPlaneSet): Polyface | undefined Static Clip each facet of polyface to the ClipPlane or ConvexClipPlaneSet
* This method parses the variant input types and calls a more specific method.
 
clipPolyfaceClipPlane(polyface: Polyface, clipper: ClipPlane, insideClip: boolean = true): Polyface Static Clip each facet of polyface to the ClipPlane.  
clipPolyfaceClipPlaneWithClosureFace(polyface: Polyface, clipper: ClipPlane, insideClip: boolean = true, buildClosureFace: boolean = true): Polyface Static Clip each facet of polyface to the ClipPlane.  
clipPolyfaceConvexClipPlaneSet(polyface: Polyface, clipper: ConvexClipPlaneSet): Polyface Static Clip each facet of polyface to the ClipPlane.  
clipPolyfaceUnderOverConvexPolyfaceIntoBuilders(visitorA: PolyfaceVisitor, visitorB: PolyfaceVisitor, builderAUnderB: PolyfaceBuilder | undefined, builderAOverB: PolyfaceBuilder | undefined): void Static Split facets of mesh "A" into parts that are
under mesh "B"
over mesh "B"
both meshes are represented by visitors rather than the meshes themselves
If the data in-hand is a mesh, call with mesh.createVisitor
The respective clip parts are fed to caller-supplied builders.
 
computeCutFill(meshA: IndexedPolyface, meshB: IndexedPolyface): object Static Split facets into vertically overlapping sections
both meshes are represented by visitors rather than the meshes themselves
If the data in-hand is a mesh, call with mesh.createVisitor
The respective clip parts are returned as separate meshes.
 
sectionPolyfaceClipPlane(polyface: Polyface, clipper: ClipPlane): LineString3d[] Static Intersect each facet with the clip plane.  

Defined in

Last Updated: 20 September, 2019