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: AnyCurve, 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 Inherited | SolidPrimitive | Return the range of the entire GeometryQuery tree. |
tryTranslateInPlace(dx: number, dy: number0.0, dz: number0.0): boolean Inherited | SolidPrimitive | Try to move the geometry by dx,dy,dz. |
areAlmostEqual(a: GeometryQuery, b: GeometryQuery): boolean Static Inherited | 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 Inherited | boolean | SolidPrimitive | flag indicating whether cap region is considered closed (i.e. |
capped Accessor Inherited | boolean | SolidPrimitive | Whether this is a capped solid |
children Accessor Inherited ReadOnly | undefined | GeometryQuery[] | SolidPrimitive | Return GeometryQuery children for recursive queries. * leaf classes do not need to implement. |
geometryCategory Readonly Inherited | "solid" | SolidPrimitive | String name for schema properties |
Defined in
- solid/LinearSweep.ts Line 32
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.