LinearSweep Class

A LinearSweep is a SolidPrimitive defined by

  • A set of curves (any Loop, Path, or parityRegion)
  • A sweep vector If the object is "capped", the curves must be planar.

Extends

Methods

Name Description
clone(): LinearSweep Return a deep clone  
cloneSweepVector(): Vector3d return a clone of the sweep vector  
cloneTransformed(transform: Transform): LinearSweep Return a transformed clone  
constantVSection(vFraction: number): undefined | CurveCollection Return the curves at a fraction along the sweep direction.  
dispatchToGeometryHandler(handler: GeometryHandler): any Invoke strongly typed handler.handleLinearSweep(this)  
extendRange(rangeToExtend: Range3d, transform?: Transform): void Extend rangeToExtend to include this geometry.  
getConstructiveFrame(): undefined | Transform Return a coordinate frame (right handed unit vectors)  
getCurvesRef(): CurveCollection get a reference to the swept curves  
getSweepContourRef(): SweepContour Get a reference to the SweepContour carrying the plane of the curves  
isAlmostEqual(other: GeometryQuery): boolean Test for near-equality of coordinates in other  
isSameGeometryClass(other: any): boolean Test if other is also an instance of LinearSweep  
tryTransformInPlace(transform: Transform): boolean apply a transform to the curves and sweep vector  
create(contour: CurveCollection, direction: Vector3d, capped: boolean): undefined | LinearSweep Static Create a sweep of a starting contour.  
createZSweep(xyPoints: Readonly<WritableXAndY>[], z: number, zSweep: number, capped: boolean): undefined | LinearSweep Static Create a z-direction sweep of the polyline or polygon given as xy linestring values.  

Inherited methods

Name Inherited from Description
range(transform?: Transform, result?: Range3d): Range3d SolidPrimitive return the range of the entire (tree) GeometryQuery
tryTranslateInPlace(dx: number, dy: number = 0.0, dz: number = 0.0): boolean SolidPrimitive try to move the geometry by dx,dy,dz
areAlmostEqual(a: undefined | GeometryQuery, b: undefined | GeometryQuery): boolean Static SolidPrimitive apply instance method isAlmostEqual if both are defined.

Properties

Name Type Description
isClosedVolume Accessor ReadOnly boolean    
solidPrimitiveType Readonly "linearSweep" String name for schema properties  

Inherited properties

Name Type Inherited from Description
_capped Protected boolean SolidPrimitive flag indicating whether cap region is considered closed (i.e.
capped Accessor boolean SolidPrimitive Whether this is a capped solid
children Accessor ReadOnly undefined | GeometryQuery[] SolidPrimitive return GeometryQuery children for recursive queries.

* leaf classes do not need to implement.
geometryCategory Readonly "solid" SolidPrimitive String name for schema properties

Defined in

Last Updated: 12 June, 2024