ElementGeometry.Iterator Class

Iterator is a helper class for iterating a ElementGeometryDataEntry array. Each ElementGeometryDataEntry returned by the iterator represents exactly one displayable entry.

Implements

Methods

Name Description
constructor(info: ElementGeometryInfo, categoryOrGeometryParams?: string | GeometryParams, localToWorld?: Transform): ElementGeometry.Iterator Construct a new Iterator given a ElementGeometryInfo from either a GeometricElement3d, GeometricElement2d, or GeometryPart.  
[iterator](): IterableIterator<ElementGeometry.IteratorEntry, any, any>    
next(): IteratorResult<ElementGeometry.IteratorEntry, any> Advance to next displayable opcode (geometric entry or geometry part) while updating the current GeometryParams from appearance related opcodes.  
requestWorldCoordinates(): void Call to return deserialized entry data in world coordinates  

Properties

Name Type Description
brepsPresent Readonly boolean | undefined If true, geometry stream contained breps that were omitted or replaced as requested  
entryArray Readonly ElementGeometryDataEntry[] GeometryStream entries  
placement Readonly Placement3d The geometric element's placement or geometry part's local range (placement.bbox)  
viewIndependent Readonly boolean | undefined If true, geometry displays oriented to face the camera  

Defined in

Last Updated: 14 November, 2024