createCapture MethodStatic

Create a range tree context for the Polyface facets.

  • This is a very simple construction that splits "right and left parts" of the facet sequence.
  • Facets with any recognizable "left to right" or "top to bottom" sequencing will have very effective search structures.

createCapture(visitor: PolyfaceVisitor | Polyface, maxChildPerNode: number4, maxAppDataPerLeaf: number4, convexFacets: booleanfalse): undefined | PolyfaceRangeTreeContext

Parameter Type Description
visitor PolyfaceVisitor | Polyface access to facets, captured if PolyfaceVisitor
maxChildPerNode number maximum children per range tree node (default 4)
maxAppDataPerLeaf number maximum facet indices per leaf node (default 4)
convexFacets boolean whether all facets are known to be convex (cf. areFacetsConvex) (default false)

Returns - undefined | PolyfaceRangeTreeContext

Defined in

Last Updated: 14 November, 2024