Polyface Class

A Polyface is an abstract mesh structure (of unspecified implementation) that provides a PolyfaceVisitor to iterate over its facets.

Extends

Extended by

Methods

Name Description
constructor(data: PolyfaceData): Polyface Protected Constructor  
createVisitor(numWrap: number): PolyfaceVisitor Abstract Create and return a visitor for this concrete polyface.  
areIndicesValid(indices: number[], indexPositionA: number, indexPositionB: number, data: any, dataLength: number): boolean Static Check validity of indices into a data array.  

Inherited methods

Name Inherited from Description
clone(): undefined | GeometryQuery Abstract Inherited GeometryQuery Return a clone
cloneTransformed(transform: Transform): undefined | GeometryQuery Abstract Inherited GeometryQuery Return a transformed clone.
dispatchToGeometryHandler(handler: GeometryHandler): any Abstract Inherited GeometryQuery Double Dispatch call pattern.
extendRange(rangeToExtend: Range3d, transform?: Transform): void Abstract Inherited GeometryQuery Extend rangeToExtend by the range of this geometry multiplied by the transform.
isAlmostEqual(other: GeometryQuery): boolean Inherited GeometryQuery Test for exact structure and nearly identical geometry.
isSameGeometryClass(other: GeometryQuery): boolean Abstract Inherited GeometryQuery Test if (other instanceof this.Type).
range(transform?: Transform, result?: Range3d): Range3d Inherited GeometryQuery Return the range of the entire GeometryQuery tree.
tryTransformInPlace(transform: Transform): boolean Abstract Inherited GeometryQuery Attempt to transform in place.
tryTranslateInPlace(dx: number, dy: number0.0, dz: number0.0): boolean Inherited GeometryQuery Try to move the geometry by dx,dy,dz.
areAlmostEqual(a: GeometryQuery, b: GeometryQuery): boolean Static Inherited GeometryQuery Apply instance method isAlmostEqual if both are defined.

Properties

Name Type Description
data PolyfaceData Underlying polyface data.  
expectedClosure Accessor number Flag indicating if the mesh closure is unknown (0), open sheet (1), closed solid (2).  
expectedClosure Setter expectedClosure(value: number): void    
facetCount Accessor ReadOnly undefined | number Returns the number of facets of this polyface.  
geometryCategory Readonly "polyface" String name for schema properties  
isEmpty Accessor Abstract ReadOnly boolean Returns true if this polyface has no facets.  
twoSided Accessor boolean The twoSided flag.  
twoSided Setter twoSided(value: boolean): void    

Inherited properties

Name Type Inherited from Description
children Accessor Inherited ReadOnly undefined | GeometryQuery[] GeometryQuery Return GeometryQuery children for recursive queries.
* leaf classes do not need to implement.

Defined in

Last Updated: 24 June, 2025