/** @packageDocumentation * @module Solid */ import { CurveCollection } from "../curve/CurveCollection"; import { AnyCurve } from "../curve/CurveTypes"; import { GeometryQuery } from "../curve/GeometryQuery"; import { Angle } from "../geometry3d/Angle"; import { GeometryHandler } from "../geometry3d/GeometryHandler"; import { Range3d } from "../geometry3d/Range"; import { Ray3d } from "../geometry3d/Ray3d"; import { Transform } from "../geometry3d/Transform"; import { SolidPrimitive, SolidPrimitiveConstructiveFrameOptions } from "./SolidPrimitive"; import { SweepContour } from "./SweepContour"; /** * Options for [[RotationalSweep.getConstructiveFrame]]. * @public */ export declare class RotationalSweepConstructiveFrameOptions extends SolidPrimitiveConstructiveFrameOptions { /** * Though the y-axis of the frame returned by [[RotationalSweep.getConstructiveFrame]] is perpendicular to the * contour plane, it can point in one of two directions. This option allows the caller to control this direction. * * If `false` (default), the y-axis of the frame is the normal reported by the contour. This direction is * independent of the solid's sweep direction. * * If `true`, the y-axis of the frame is aligned to the solid's sweep direction: specifically, it points in the * direction of positive sweep. With this choice, columns 0, 1 of the returned frame can be used to construct the * `vector0` and `vector90` vectors needed to construct a centerline arc for the solid. */ alignToSweep?: boolean; } /** * A RotationalSweep is: * * A planar contour (any Loop, Path, or parityRegion) * * An axis vector. * * The planar contour is expected to be in the plane of the axis vector. * * The contour may have points and/or lines that are on the axis, but otherwise is entirely on one side of the axis. * * A sweep angle. * @public */ export declare class RotationalSweep extends SolidPrimitive { /** String name for schema properties */ readonly solidPrimitiveType = "rotationalSweep"; private _contour; private _normalizedAxis; private _sweepAngle; private constructor(); /** * Create a rotational sweep. All input objects are CAPTURED. * @param contour profile to sweep, coplanar with axis. * @param axis rotation axis. * @param sweepAngle signed angular sweep. * @param capped whether to cap the surface to make a solid. */ static create(contour: AnyCurve, axis: Ray3d, sweepAngle: Angle, capped: boolean): RotationalSweep | undefined; /** * Return a coordinate frame (right handed unit vectors). * * origin at origin of rotation ray. * * z direction along the rotation ray. * * y direction perpendicular to the base contour plane. */ getConstructiveFrame(options?: RotationalSweepConstructiveFrameOptions): Transform | undefined; /** Return clone of (not reference to) the axis vector. */ cloneAxisRay(): Ray3d; /** Return (REFERENCE TO) the swept curves. */ getCurves(): CurveCollection; /** Return (REFERENCE TO) the swept curves with containing plane markup. */ getSweepContourRef(): SweepContour; /** Return the sweep angle. */ getSweep(): Angle; /** Test if `other` is a `RotationalSweep` */ isSameGeometryClass(other: any): boolean; /** Test for same axis, capping, and swept geometry. */ isAlmostEqual(other: GeometryQuery): boolean; /** Return a deep clone */ clone(): RotationalSweep; /** * Transform the contour and axis. * * This fails if the transformation is singular. */ tryTransformInPlace(transform: Transform): boolean; /** * Return a transformed clone. * * This fails if the transformation is singular. */ cloneTransformed(transform: Transform): RotationalSweep | undefined; /** Dispatch to strongly typed handler `handler.handleRotationalSweep(this)`. */ dispatchToGeometryHandler(handler: GeometryHandler): any; /** Return a transform that rotates around the rotational axis by a fraction of the total sweep. */ getFractionalRotationTransform(vFraction: number, result?: Transform): Transform; /** * Return the curves of a constant-v section of the solid. * @param vFraction fractional position along the sweep direction */ constantVSection(vFraction: number): CurveCollection | undefined; /** Extend range using sampled points on the surface. */ extendRange(range: Range3d, transform?: Transform): void; /** Return true if the sweep axis and contour are not coplanar. */ get isSkew(): boolean; /** Specify if the sweep forms a closed volume. */ get isClosedVolume(): boolean; } //# sourceMappingURL=RotationalSweep.d.ts.map