RuledSweep Class

A ruled sweep (surface) is a collection of 2 or more contours.

  • All contours must have identical number and type of geometry. (paths, loops, parity regions, lines, arcs, other curves)

Extends

Methods

Name Description
constructor(capped: boolean): RuledSweep Protected    
clone(): RuledSweep Return a deep clone  
cloneContours(): CurveCollection[] Return clones of all the contours  
cloneSweepContours(): SweepContour[] Return clones of all the sweep contours  
cloneTransformed(transform: Transform): RuledSweep Return a cloned transform.  
constantVSection(vFraction: number): CurveCollection | undefined Return the section curves at a fraction of the sweep  
dispatchToGeometryHandler(handler: GeometryHandler): any dispatch to strongly typed handler.handleRuledSweep(this)  
extendRange(rangeToExtend: Range3d, transform?: Transform): void Pass each contour to extendRange  
getConstructiveFrame(): Transform | undefined Return a coordinate frame (right handed unit vectors)  
isAlmostEqual(other: GeometryQuery): boolean test same contour geometry and capping.  
isSameGeometryClass(other: any): boolean Test if other is an instance of a RuledSweep  
sweepContoursRef(): SweepContour[] Return a reference to the array of SweepContour.  
tryTransformInPlace(transform: Transform): boolean Transform all contours in place.  
create(contours: CurveCollection[], capped: boolean): RuledSweep | undefined Static Create a ruled sweep from an array of contours.  
mutatePartners(collectionA: CurveCollection, collectionB: CurveCollection, primitiveMutator: CurvePrimitiveMutator): CurveCollection | undefined Static Construct a CurveCollection with the same structure as collectionA and collectionB, with primitives constructed by the caller-supplied primitiveMutator function.  

Inherited methods

Name Inherited from Description
range(transform?: Transform, result?: Range3d): Range3d GeometryQuery return the range of the entire (tree) GeometryQuery
tryTranslateInPlace(dx: number, dy: number = 0, dz: number = 0): boolean GeometryQuery try to move the geometry by dx,dy,dz

Properties

Name Type Description
isClosedVolume Accessor ReadOnly boolean Return true if this is a closed volume, as observed by  
solidPrimitiveType "ruledSweep" = "ruledSweep" 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 GeometryQuery[] | undefined GeometryQuery return GeometryQuery children for recursive queries.

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

Defined in

Last Updated: 13 June, 2024