GeometryQuery Class

Queries to be supported by Curve, Surface, and Solid objects.

  • GeometryQuery is an abstract base class with (abstract) methods for querying curve, solid primitive, mesh, and bspline surfaces.

Extended by

Methods

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

Properties

Name Type Description
children Accessor ReadOnly undefined | GeometryQuery[] Return GeometryQuery children for recursive queries.  
geometryCategory Abstract Readonly GeometryQueryCategory Type discriminator.  

Defined in

Last Updated: 13 June, 2024