SweepContour Class

Sweepable contour with Transform for local to world interaction.

  • The surface/solid classes LinearSweep, RotationalSweep, RuledSweep use this for their swept contours.

Methods

Name Description
buildFacets(_builder: PolyfaceBuilder, options: StrokeOptions | undefined): void build the (cached) internal facets.  
clone(): SweepContour Return a deep clone.  
cloneTransformed(transform: Transform): SweepContour | undefined Return a transformed clone.  
emitFacets(builder: PolyfaceBuilder, reverse: boolean, transform?: Transform): void Emit facets to a builder.  
getCurves(): CurveCollection Return (Reference to) the curves  
isAlmostEqual(other: any): boolean Test for near equality of cures and local frame.  
purgeFacets(): void delete existing facets.  
tryTransformInPlace(transform: Transform): boolean Apply transform to the curves, axis.  
createForLinearSweep(contour: CurveCollection, defaultNormal?: Vector3d): SweepContour | undefined Static Create for linear sweep.  
createForPolygon(points: MultiLineStringDataVariant, defaultNormal?: Vector3d): SweepContour | undefined Static Create for linear sweep.  
createForRotation(contour: CurveCollection, axis: Ray3d): SweepContour | undefined Static Create for rotational sweep.  

Properties

Name Type Description
axis Ray3d | undefined Axis used only in rotational case.  
curves CurveCollection The underlying curve collection, in its world coordinates position.  
localToWorld Transform coordinate frame that in which the curves are all in the xy plane.  

Defined in

Last Updated: 20 September, 2019