@itwin/core-geometry 4.1.0-dev.6 → 4.1.0-dev.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -1
- package/lib/cjs/clipping/ClipPrimitive.d.ts.map +1 -1
- package/lib/cjs/clipping/ClipPrimitive.js +2 -0
- package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
- package/lib/cjs/core-geometry.d.ts +1 -0
- package/lib/cjs/core-geometry.d.ts.map +1 -1
- package/lib/cjs/core-geometry.js +4 -1
- package/lib/cjs/core-geometry.js.map +1 -1
- package/lib/cjs/curve/Arc3d.d.ts +1 -0
- package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
- package/lib/cjs/curve/Arc3d.js +1 -0
- package/lib/cjs/curve/Arc3d.js.map +1 -1
- package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts +61 -41
- package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
- package/lib/cjs/curve/CurveChainWithDistanceIndex.js +69 -46
- package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/cjs/curve/CurveCollection.d.ts +36 -26
- package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
- package/lib/cjs/curve/CurveCollection.js +46 -39
- package/lib/cjs/curve/CurveCollection.js.map +1 -1
- package/lib/cjs/curve/CurveCurve.d.ts.map +1 -1
- package/lib/cjs/curve/CurveCurve.js.map +1 -1
- package/lib/cjs/curve/CurveFactory.d.ts +67 -3
- package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
- package/lib/cjs/curve/CurveFactory.js +75 -7
- package/lib/cjs/curve/CurveFactory.js.map +1 -1
- package/lib/cjs/curve/CurveLocationDetail.d.ts +6 -6
- package/lib/cjs/curve/CurveLocationDetail.d.ts.map +1 -1
- package/lib/cjs/curve/CurveLocationDetail.js +9 -7
- package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
- package/lib/cjs/curve/CurvePrimitive.d.ts +4 -3
- package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -1
- package/lib/cjs/curve/CurvePrimitive.js +4 -3
- package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
- package/lib/cjs/curve/LineSegment3d.d.ts +6 -4
- package/lib/cjs/curve/LineSegment3d.d.ts.map +1 -1
- package/lib/cjs/curve/LineSegment3d.js +4 -4
- package/lib/cjs/curve/LineSegment3d.js.map +1 -1
- package/lib/cjs/curve/LineString3d.d.ts +1 -1
- package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
- package/lib/cjs/curve/LineString3d.js +1 -1
- package/lib/cjs/curve/LineString3d.js.map +1 -1
- package/lib/cjs/curve/Loop.d.ts +7 -5
- package/lib/cjs/curve/Loop.d.ts.map +1 -1
- package/lib/cjs/curve/Loop.js +18 -6
- package/lib/cjs/curve/Loop.js.map +1 -1
- package/lib/cjs/curve/ParityRegion.d.ts +7 -7
- package/lib/cjs/curve/ParityRegion.d.ts.map +1 -1
- package/lib/cjs/curve/ParityRegion.js +19 -11
- package/lib/cjs/curve/ParityRegion.js.map +1 -1
- package/lib/cjs/curve/Path.d.ts +6 -6
- package/lib/cjs/curve/Path.d.ts.map +1 -1
- package/lib/cjs/curve/Path.js +15 -9
- package/lib/cjs/curve/Path.js.map +1 -1
- package/lib/cjs/curve/ProxyCurve.d.ts +4 -6
- package/lib/cjs/curve/ProxyCurve.d.ts.map +1 -1
- package/lib/cjs/curve/ProxyCurve.js +7 -7
- package/lib/cjs/curve/ProxyCurve.js.map +1 -1
- package/lib/cjs/curve/RegionOps.d.ts +69 -47
- package/lib/cjs/curve/RegionOps.d.ts.map +1 -1
- package/lib/cjs/curve/RegionOps.js +70 -47
- package/lib/cjs/curve/RegionOps.js.map +1 -1
- package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
- package/lib/cjs/curve/StrokeOptions.js +6 -2
- package/lib/cjs/curve/StrokeOptions.js.map +1 -1
- package/lib/cjs/curve/UnionRegion.d.ts +6 -5
- package/lib/cjs/curve/UnionRegion.d.ts.map +1 -1
- package/lib/cjs/curve/UnionRegion.js +17 -8
- package/lib/cjs/curve/UnionRegion.js.map +1 -1
- package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts +2 -1
- package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/GapSearchContext.js +6 -2
- package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts +4 -0
- package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/MultiChainCollector.js +5 -2
- package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -1
- package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
- package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
- package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts +56 -34
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js +153 -87
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/SumLengthsContext.js +4 -1
- package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
- package/lib/cjs/geometry3d/Angle.d.ts +9 -0
- package/lib/cjs/geometry3d/Angle.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Angle.js +13 -0
- package/lib/cjs/geometry3d/Angle.js.map +1 -1
- package/lib/cjs/geometry3d/BilinearPatch.d.ts +43 -48
- package/lib/cjs/geometry3d/BilinearPatch.d.ts.map +1 -1
- package/lib/cjs/geometry3d/BilinearPatch.js +51 -55
- package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
- package/lib/cjs/geometry3d/Ellipsoid.d.ts +1 -1
- package/lib/cjs/geometry3d/Ellipsoid.js +1 -1
- package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
- package/lib/cjs/geometry3d/FrameBuilder.d.ts.map +1 -1
- package/lib/cjs/geometry3d/FrameBuilder.js +13 -11
- package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
- package/lib/cjs/geometry3d/GeometryHandler.d.ts +5 -5
- package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -1
- package/lib/cjs/geometry3d/Matrix3d.d.ts +18 -0
- package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Matrix3d.js +27 -0
- package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
- package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts +36 -32
- package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js +35 -32
- package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
- package/lib/cjs/geometry3d/Point3dVector3d.d.ts +8 -0
- package/lib/cjs/geometry3d/Point3dVector3d.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Point3dVector3d.js +13 -0
- package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/cjs/geometry3d/PolylineOps.d.ts +16 -1
- package/lib/cjs/geometry3d/PolylineOps.d.ts.map +1 -1
- package/lib/cjs/geometry3d/PolylineOps.js +55 -0
- package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
- package/lib/cjs/geometry3d/Range.d.ts +134 -94
- package/lib/cjs/geometry3d/Range.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Range.js +297 -145
- package/lib/cjs/geometry3d/Range.js.map +1 -1
- package/lib/cjs/geometry3d/Ray3d.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
- package/lib/cjs/geometry3d/Transform.d.ts +7 -0
- package/lib/cjs/geometry3d/Transform.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Transform.js +12 -0
- package/lib/cjs/geometry3d/Transform.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceQuery.d.ts +64 -6
- package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
- package/lib/cjs/polyface/PolyfaceQuery.js +104 -19
- package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts +11 -0
- package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -1
- package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js +79 -1
- package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
- package/lib/cjs/serialization/GeometrySamples.d.ts +11 -0
- package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -1
- package/lib/cjs/serialization/GeometrySamples.js +30 -0
- package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
- package/lib/cjs/solid/LinearSweep.d.ts +2 -1
- package/lib/cjs/solid/LinearSweep.d.ts.map +1 -1
- package/lib/cjs/solid/LinearSweep.js.map +1 -1
- package/lib/cjs/solid/RotationalSweep.d.ts +2 -1
- package/lib/cjs/solid/RotationalSweep.d.ts.map +1 -1
- package/lib/cjs/solid/RotationalSweep.js.map +1 -1
- package/lib/cjs/solid/RuledSweep.d.ts +2 -1
- package/lib/cjs/solid/RuledSweep.d.ts.map +1 -1
- package/lib/cjs/solid/RuledSweep.js.map +1 -1
- package/lib/cjs/solid/SweepContour.d.ts +2 -2
- package/lib/cjs/solid/SweepContour.d.ts.map +1 -1
- package/lib/cjs/solid/SweepContour.js +9 -0
- package/lib/cjs/solid/SweepContour.js.map +1 -1
- package/lib/esm/clipping/ClipPrimitive.d.ts.map +1 -1
- package/lib/esm/clipping/ClipPrimitive.js +2 -0
- package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
- package/lib/esm/core-geometry.d.ts +1 -0
- package/lib/esm/core-geometry.d.ts.map +1 -1
- package/lib/esm/core-geometry.js +2 -0
- package/lib/esm/core-geometry.js.map +1 -1
- package/lib/esm/curve/Arc3d.d.ts +1 -0
- package/lib/esm/curve/Arc3d.d.ts.map +1 -1
- package/lib/esm/curve/Arc3d.js +1 -0
- package/lib/esm/curve/Arc3d.js.map +1 -1
- package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts +61 -41
- package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
- package/lib/esm/curve/CurveChainWithDistanceIndex.js +69 -46
- package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/esm/curve/CurveCollection.d.ts +36 -26
- package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
- package/lib/esm/curve/CurveCollection.js +46 -39
- package/lib/esm/curve/CurveCollection.js.map +1 -1
- package/lib/esm/curve/CurveCurve.d.ts.map +1 -1
- package/lib/esm/curve/CurveCurve.js.map +1 -1
- package/lib/esm/curve/CurveFactory.d.ts +67 -3
- package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
- package/lib/esm/curve/CurveFactory.js +74 -6
- package/lib/esm/curve/CurveFactory.js.map +1 -1
- package/lib/esm/curve/CurveLocationDetail.d.ts +6 -6
- package/lib/esm/curve/CurveLocationDetail.d.ts.map +1 -1
- package/lib/esm/curve/CurveLocationDetail.js +9 -7
- package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
- package/lib/esm/curve/CurvePrimitive.d.ts +4 -3
- package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -1
- package/lib/esm/curve/CurvePrimitive.js +4 -3
- package/lib/esm/curve/CurvePrimitive.js.map +1 -1
- package/lib/esm/curve/LineSegment3d.d.ts +6 -4
- package/lib/esm/curve/LineSegment3d.d.ts.map +1 -1
- package/lib/esm/curve/LineSegment3d.js +4 -4
- package/lib/esm/curve/LineSegment3d.js.map +1 -1
- package/lib/esm/curve/LineString3d.d.ts +1 -1
- package/lib/esm/curve/LineString3d.d.ts.map +1 -1
- package/lib/esm/curve/LineString3d.js +1 -1
- package/lib/esm/curve/LineString3d.js.map +1 -1
- package/lib/esm/curve/Loop.d.ts +7 -5
- package/lib/esm/curve/Loop.d.ts.map +1 -1
- package/lib/esm/curve/Loop.js +18 -6
- package/lib/esm/curve/Loop.js.map +1 -1
- package/lib/esm/curve/ParityRegion.d.ts +7 -7
- package/lib/esm/curve/ParityRegion.d.ts.map +1 -1
- package/lib/esm/curve/ParityRegion.js +19 -11
- package/lib/esm/curve/ParityRegion.js.map +1 -1
- package/lib/esm/curve/Path.d.ts +6 -6
- package/lib/esm/curve/Path.d.ts.map +1 -1
- package/lib/esm/curve/Path.js +15 -9
- package/lib/esm/curve/Path.js.map +1 -1
- package/lib/esm/curve/ProxyCurve.d.ts +4 -6
- package/lib/esm/curve/ProxyCurve.d.ts.map +1 -1
- package/lib/esm/curve/ProxyCurve.js +7 -7
- package/lib/esm/curve/ProxyCurve.js.map +1 -1
- package/lib/esm/curve/RegionOps.d.ts +69 -47
- package/lib/esm/curve/RegionOps.d.ts.map +1 -1
- package/lib/esm/curve/RegionOps.js +70 -47
- package/lib/esm/curve/RegionOps.js.map +1 -1
- package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
- package/lib/esm/curve/StrokeOptions.js +6 -2
- package/lib/esm/curve/StrokeOptions.js.map +1 -1
- package/lib/esm/curve/UnionRegion.d.ts +6 -5
- package/lib/esm/curve/UnionRegion.d.ts.map +1 -1
- package/lib/esm/curve/UnionRegion.js +17 -8
- package/lib/esm/curve/UnionRegion.js.map +1 -1
- package/lib/esm/curve/internalContexts/GapSearchContext.d.ts +2 -1
- package/lib/esm/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/GapSearchContext.js +6 -2
- package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts +4 -0
- package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/MultiChainCollector.js +5 -2
- package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -1
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
- package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts +56 -34
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.js +153 -87
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/SumLengthsContext.js +4 -1
- package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
- package/lib/esm/geometry3d/Angle.d.ts +9 -0
- package/lib/esm/geometry3d/Angle.d.ts.map +1 -1
- package/lib/esm/geometry3d/Angle.js +13 -0
- package/lib/esm/geometry3d/Angle.js.map +1 -1
- package/lib/esm/geometry3d/BilinearPatch.d.ts +43 -48
- package/lib/esm/geometry3d/BilinearPatch.d.ts.map +1 -1
- package/lib/esm/geometry3d/BilinearPatch.js +51 -55
- package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
- package/lib/esm/geometry3d/Ellipsoid.d.ts +1 -1
- package/lib/esm/geometry3d/Ellipsoid.js +1 -1
- package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
- package/lib/esm/geometry3d/FrameBuilder.d.ts.map +1 -1
- package/lib/esm/geometry3d/FrameBuilder.js +13 -11
- package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
- package/lib/esm/geometry3d/GeometryHandler.d.ts +5 -5
- package/lib/esm/geometry3d/GeometryHandler.js.map +1 -1
- package/lib/esm/geometry3d/Matrix3d.d.ts +18 -0
- package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
- package/lib/esm/geometry3d/Matrix3d.js +27 -0
- package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts +36 -32
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -1
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js +35 -32
- package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
- package/lib/esm/geometry3d/Point3dVector3d.d.ts +8 -0
- package/lib/esm/geometry3d/Point3dVector3d.d.ts.map +1 -1
- package/lib/esm/geometry3d/Point3dVector3d.js +13 -0
- package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/esm/geometry3d/PolylineOps.d.ts +16 -1
- package/lib/esm/geometry3d/PolylineOps.d.ts.map +1 -1
- package/lib/esm/geometry3d/PolylineOps.js +56 -1
- package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
- package/lib/esm/geometry3d/Range.d.ts +134 -94
- package/lib/esm/geometry3d/Range.d.ts.map +1 -1
- package/lib/esm/geometry3d/Range.js +297 -145
- package/lib/esm/geometry3d/Range.js.map +1 -1
- package/lib/esm/geometry3d/Ray3d.d.ts.map +1 -1
- package/lib/esm/geometry3d/Ray3d.js.map +1 -1
- package/lib/esm/geometry3d/Transform.d.ts +7 -0
- package/lib/esm/geometry3d/Transform.d.ts.map +1 -1
- package/lib/esm/geometry3d/Transform.js +12 -0
- package/lib/esm/geometry3d/Transform.js.map +1 -1
- package/lib/esm/polyface/PolyfaceQuery.d.ts +64 -6
- package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
- package/lib/esm/polyface/PolyfaceQuery.js +103 -19
- package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts +11 -0
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -1
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js +78 -1
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
- package/lib/esm/serialization/GeometrySamples.d.ts +11 -0
- package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -1
- package/lib/esm/serialization/GeometrySamples.js +30 -0
- package/lib/esm/serialization/GeometrySamples.js.map +1 -1
- package/lib/esm/solid/LinearSweep.d.ts +2 -1
- package/lib/esm/solid/LinearSweep.d.ts.map +1 -1
- package/lib/esm/solid/LinearSweep.js.map +1 -1
- package/lib/esm/solid/RotationalSweep.d.ts +2 -1
- package/lib/esm/solid/RotationalSweep.d.ts.map +1 -1
- package/lib/esm/solid/RotationalSweep.js.map +1 -1
- package/lib/esm/solid/RuledSweep.d.ts +2 -1
- package/lib/esm/solid/RuledSweep.d.ts.map +1 -1
- package/lib/esm/solid/RuledSweep.js.map +1 -1
- package/lib/esm/solid/SweepContour.d.ts +2 -2
- package/lib/esm/solid/SweepContour.d.ts.map +1 -1
- package/lib/esm/solid/SweepContour.js +9 -0
- package/lib/esm/solid/SweepContour.js.map +1 -1
- package/package.json +5 -5
|
@@ -18,16 +18,16 @@ import { OffsetOptions } from "./internalContexts/PolygonOffsetContext";
|
|
|
18
18
|
import { LineString3d } from "./LineString3d";
|
|
19
19
|
import { StrokeOptions } from "./StrokeOptions";
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Annotation of an interval of a curve.
|
|
22
22
|
* * The interval is marked with two pairs of numbers:
|
|
23
23
|
* * * fraction0, fraction1 = fraction parameters along the child curve
|
|
24
24
|
* * * distance0,distance1 = distances within containing CurveChainWithDistanceIndex
|
|
25
25
|
* @public
|
|
26
26
|
*/
|
|
27
27
|
export declare class PathFragment {
|
|
28
|
-
/**
|
|
28
|
+
/** Distance along parent to this fragment start */
|
|
29
29
|
chainDistance0: number;
|
|
30
|
-
/**
|
|
30
|
+
/** Distance along parent to this fragment end */
|
|
31
31
|
chainDistance1: number;
|
|
32
32
|
/** Fractional position of this fragment start within its curve primitive. */
|
|
33
33
|
childFraction0: number;
|
|
@@ -35,9 +35,9 @@ export declare class PathFragment {
|
|
|
35
35
|
childFraction1: number;
|
|
36
36
|
/** Curve primitive of this fragment, as presented in stroker. Note that this might have become a proxy. */
|
|
37
37
|
childCurve: CurvePrimitive;
|
|
38
|
-
/**
|
|
38
|
+
/** Optional range */
|
|
39
39
|
range?: Range3d;
|
|
40
|
-
/**
|
|
40
|
+
/** Working var for use in searches. */
|
|
41
41
|
a: number;
|
|
42
42
|
/** Create a fragment with complete fraction, distance and child data. */
|
|
43
43
|
constructor(childFraction0: number, childFraction1: number, distance0: number, distance1: number, childCurve: CurvePrimitive, range?: Range3d);
|
|
@@ -46,25 +46,32 @@ export declare class PathFragment {
|
|
|
46
46
|
* @param distance
|
|
47
47
|
*/
|
|
48
48
|
containsChainDistance(distance: number): boolean;
|
|
49
|
+
/** Return a quick distance to the curve. This may be SMALLER than true distance but may not be larger */
|
|
49
50
|
quickMinDistanceToChildCurve(spacePoint: Point3d): number;
|
|
51
|
+
/**
|
|
52
|
+
* Return an array with (references to) all the path fragments, sorted smallest to largest on the "a" value
|
|
53
|
+
* equal to the quick min distance to the fragment
|
|
54
|
+
*/
|
|
50
55
|
static collectSortedQuickMinDistances(fragments: PathFragment[], spacePoint: Point3d): PathFragment[];
|
|
51
56
|
/**
|
|
52
57
|
* Return true if this fragment addresses `curve` and brackets `fraction`
|
|
53
58
|
* @param distance
|
|
54
59
|
*/
|
|
55
60
|
containsChildCurveAndChildFraction(curve: CurvePrimitive, fraction: number): boolean;
|
|
56
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Convert distance to local fraction, and apply that to interpolate between the stored curve fractions.
|
|
57
63
|
* Note that proportional calculation does NOT account for nonuniform parameterization in the child curve.
|
|
58
64
|
*/
|
|
59
65
|
chainDistanceToInterpolatedChildFraction(distance: number): number;
|
|
60
|
-
/** Convert chainDistance to true chidFraction, using detailed moveSignedDistanceFromFraction
|
|
61
|
-
*/
|
|
66
|
+
/** Convert chainDistance to true chidFraction, using detailed moveSignedDistanceFromFraction */
|
|
62
67
|
chainDistanceToAccurateChildFraction(chainDistance: number, allowExtrapolation?: boolean): number;
|
|
63
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Return the scale factor to map childCurve fraction derivatives to chain fraction derivatives
|
|
64
70
|
* @param globalDistance total length of the global curve.
|
|
65
71
|
*/
|
|
66
72
|
fractionScaleFactor(globalDistance: number): number;
|
|
67
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Reverse the fraction and distance data.
|
|
68
75
|
* * each child fraction `f` is replaced by `1-f`
|
|
69
76
|
* * each `chainDistance` is replaced by `totalDistance-chainDistance`
|
|
70
77
|
*/
|
|
@@ -72,7 +79,7 @@ export declare class PathFragment {
|
|
|
72
79
|
/** @deprecated in 3.x. Use childFractionToChainDistance */
|
|
73
80
|
childFractionTChainDistance(fraction: number): number;
|
|
74
81
|
/**
|
|
75
|
-
*
|
|
82
|
+
* Convert a fractional position on the childCurve to distance in the chain space.
|
|
76
83
|
* * Return value is SIGNED -- will be negative when fraction < this.childFraction0.
|
|
77
84
|
* @param fraction fraction along the curve within this fragment
|
|
78
85
|
*/
|
|
@@ -81,6 +88,8 @@ export declare class PathFragment {
|
|
|
81
88
|
/**
|
|
82
89
|
* `CurveChainWithDistanceIndex` is a CurvePrimitive whose fractional parameterization is proportional to true
|
|
83
90
|
* distance along a CurveChain.
|
|
91
|
+
* * For example if the total length of the chain is `L`, then the distance along the chain from parameters `t0`
|
|
92
|
+
* to `t1` is easily computed as `L*(t1-t0)`.
|
|
84
93
|
* * The curve chain can be any type derived from CurveChain.
|
|
85
94
|
* * * i.e. either a `Path` or a `Loop`
|
|
86
95
|
* @public
|
|
@@ -99,11 +108,13 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
99
108
|
* @param transform transform to apply in the clone.
|
|
100
109
|
*/
|
|
101
110
|
cloneTransformed(transform: Transform): CurveChainWithDistanceIndex | undefined;
|
|
102
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* Reference to the contained path.
|
|
103
113
|
* * Do not modify the path. The distance index will be wrong.
|
|
104
114
|
*/
|
|
105
115
|
get path(): CurveChain;
|
|
106
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* Reference to the fragments array.
|
|
107
118
|
* * Do not modify.
|
|
108
119
|
*/
|
|
109
120
|
get fragments(): PathFragment[];
|
|
@@ -111,22 +122,24 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
111
122
|
clone(): CurveChainWithDistanceIndex;
|
|
112
123
|
/** Return a deep clone */
|
|
113
124
|
clonePartialCurve(fractionA: number, fractionB: number): CurveChainWithDistanceIndex | undefined;
|
|
114
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* Ask if the curve is within tolerance of a plane.
|
|
115
127
|
* @returns Returns true if the curve is completely within tolerance of the plane.
|
|
116
128
|
*/
|
|
117
129
|
isInPlane(plane: Plane3dByOriginAndUnitNormal): boolean;
|
|
118
|
-
/**
|
|
130
|
+
/** Return the start point of the primitive. The default implementation returns fractionToPoint (0.0) */
|
|
119
131
|
startPoint(result?: Point3d): Point3d;
|
|
120
132
|
/** Return the end point of the primitive. The default implementation returns fractionToPoint(1.0) */
|
|
121
133
|
endPoint(result?: Point3d): Point3d;
|
|
122
134
|
/** Add strokes to caller-supplied linestring */
|
|
123
135
|
emitStrokes(dest: LineString3d, options?: StrokeOptions): void;
|
|
124
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Ask the curve to announce points and simple subcurve fragments for stroking.
|
|
125
138
|
* See IStrokeHandler for description of the sequence of the method calls.
|
|
126
139
|
*/
|
|
127
140
|
emitStrokableParts(dest: IStrokeHandler, options?: StrokeOptions): void;
|
|
128
141
|
/**
|
|
129
|
-
*
|
|
142
|
+
* Return the stroke count required for given options.
|
|
130
143
|
* @param options StrokeOptions that determine count
|
|
131
144
|
*/
|
|
132
145
|
computeStrokeCountForOptions(options?: StrokeOptions): number;
|
|
@@ -134,25 +147,25 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
134
147
|
* Return an array containing only the curve primitives.
|
|
135
148
|
* @param collectorArray array to receive primitives (pushed -- the array is not cleared)
|
|
136
149
|
* @param smallestPossiblePrimitives if true, recurse on the (otherwise hidden) children. If false, only push `this`.
|
|
137
|
-
* @param explodeLinestrings (if smallestPossiblePrimitives is true) whether to push a [[LineSegment3d]] for each
|
|
150
|
+
* @param explodeLinestrings (if smallestPossiblePrimitives is true) whether to push a [[LineSegment3d]] for each
|
|
151
|
+
* segment of a [[LineString3d]] child. If false, push only the [[LineString3d]].
|
|
138
152
|
*/
|
|
139
153
|
collectCurvePrimitivesGo(collectorArray: CurvePrimitive[], smallestPossiblePrimitives?: boolean, explodeLineStrings?: boolean): void;
|
|
140
154
|
/**
|
|
141
|
-
*
|
|
155
|
+
* Construct StrokeCountMap for each child, accumulating data to stroke count map for this primitive.
|
|
142
156
|
* @param options StrokeOptions that determine count
|
|
143
157
|
* @param parentStrokeMap evolving parent map.
|
|
144
158
|
*/
|
|
145
159
|
computeAndAttachRecursiveStrokeCounts(options?: StrokeOptions, parentStrokeMap?: StrokeCountMap): void;
|
|
146
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* Second step of double dispatch: call `this._path.dispatchToGeometryHandler (handler)`
|
|
147
162
|
* * Note that this exposes the children individually to the handler.
|
|
148
163
|
*/
|
|
149
164
|
dispatchToGeometryHandler(handler: GeometryHandler): any;
|
|
150
|
-
/** Extend (increase) `rangeToExtend` as needed to include these curves (optionally transformed)
|
|
151
|
-
*/
|
|
165
|
+
/** Extend (increase) `rangeToExtend` as needed to include these curves (optionally transformed) */
|
|
152
166
|
extendRange(rangeToExtend: Range3d, transform?: Transform): void;
|
|
153
167
|
/**
|
|
154
|
-
*
|
|
155
|
-
* * Curve length is always positive.
|
|
168
|
+
* Curve length is always positive.
|
|
156
169
|
* @returns Returns a (high accuracy) length of the curve between fractional positions
|
|
157
170
|
* @returns Returns the length of the curve.
|
|
158
171
|
*/
|
|
@@ -185,9 +198,7 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
185
198
|
* @param fraction
|
|
186
199
|
*/
|
|
187
200
|
curveAndChildFractionToFragment(curve: CurvePrimitive, fraction: number): PathFragment | undefined;
|
|
188
|
-
/**
|
|
189
|
-
* Returns the total length of curves.
|
|
190
|
-
*/
|
|
201
|
+
/** Returns the total length of curves. */
|
|
191
202
|
curveLength(): number;
|
|
192
203
|
/**
|
|
193
204
|
* Returns the total length of the path.
|
|
@@ -200,8 +211,8 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
200
211
|
* @returns Returns a point on the curve.
|
|
201
212
|
*/
|
|
202
213
|
fractionToPoint(fraction: number, result?: Point3d): Point3d;
|
|
203
|
-
/**
|
|
204
|
-
*
|
|
214
|
+
/**
|
|
215
|
+
* Return the point (x,y,z) and derivative on the curve at fractional position.
|
|
205
216
|
* * Note that this derivative is "derivative of xyz with respect to fraction."
|
|
206
217
|
* * this derivative shows the speed of the "fractional point" moving along the curve.
|
|
207
218
|
* * this is not generally a unit vector. use fractionToPointAndUnitTangent for a unit vector.
|
|
@@ -216,14 +227,16 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
216
227
|
* Returns a ray whose origin is the curve point and direction is the unit tangent.
|
|
217
228
|
*/
|
|
218
229
|
fractionToPointAndUnitTangent(fraction: number, result?: Ray3d): Ray3d;
|
|
219
|
-
/**
|
|
220
|
-
*
|
|
230
|
+
/**
|
|
231
|
+
* Return a plane with
|
|
221
232
|
* * origin at fractional position along the curve
|
|
222
|
-
* * vectorU is the first derivative, i.e. tangent vector with length equal to the rate of change with respect to
|
|
233
|
+
* * vectorU is the first derivative, i.e. tangent vector with length equal to the rate of change with respect to
|
|
234
|
+
* the fraction.
|
|
223
235
|
* * vectorV is the second derivative, i.e.derivative of vectorU.
|
|
224
236
|
*/
|
|
225
237
|
fractionToPointAnd2Derivatives(fraction: number, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors | undefined;
|
|
226
|
-
/**
|
|
238
|
+
/**
|
|
239
|
+
* Attempt to transform in place.
|
|
227
240
|
* * Warning: If any child fails, this object becomes invalid. But that should never happen.
|
|
228
241
|
*/
|
|
229
242
|
tryTransformInPlace(transform: Transform): boolean;
|
|
@@ -236,13 +249,14 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
236
249
|
* @param other
|
|
237
250
|
*/
|
|
238
251
|
isAlmostEqual(other: GeometryQuery): boolean;
|
|
239
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Implement moveSignedDistanceFromFraction.
|
|
240
254
|
* * See `CurvePrimitive` for parameter details.
|
|
241
|
-
* * The returned location directly identifies fractional position along the CurveChainWithDistanceIndex, and
|
|
255
|
+
* * The returned location directly identifies fractional position along the CurveChainWithDistanceIndex, and
|
|
256
|
+
* has pointer to an additional detail for the child curve.
|
|
242
257
|
*/
|
|
243
258
|
moveSignedDistanceFromFraction(startFraction: number, signedDistance: number, allowExtension: boolean, result?: CurveLocationDetail): CurveLocationDetail;
|
|
244
259
|
/**
|
|
245
|
-
*
|
|
246
260
|
* The returned object has
|
|
247
261
|
* * numCalls = number of times closestPoint was called.
|
|
248
262
|
* * numCurvesTested = number of curves tested with full closestPoint
|
|
@@ -261,10 +275,12 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
261
275
|
private static _numTested;
|
|
262
276
|
private static _numAssigned;
|
|
263
277
|
private static _numCandidate;
|
|
264
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* Search for the curve point that is closest to the spacePoint.
|
|
265
280
|
* * The CurveChainWithDistanceIndex invokes the base class CurvePrimitive method, which
|
|
266
281
|
* (via a handler) determines a CurveLocation detail among the children.
|
|
267
|
-
* * The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex, and
|
|
282
|
+
* * The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex, and
|
|
283
|
+
* has pointer to an additional detail for the child curve.
|
|
268
284
|
* @param spacePoint point in space
|
|
269
285
|
* @param extend true to extend the curve
|
|
270
286
|
* @returns Returns a CurveLocationDetail structure that holds the details of the close point.
|
|
@@ -272,14 +288,18 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
|
|
|
272
288
|
closestPoint(spacePoint: Point3d, extend: VariantCurveExtendParameter): CurveLocationDetail | undefined;
|
|
273
289
|
/**
|
|
274
290
|
* Construct an offset of each child as viewed in the xy-plane (ignoring z).
|
|
275
|
-
* * No attempt is made to join the offset children. Use RegionOps.constructCurveXYOffset() to return a fully
|
|
291
|
+
* * No attempt is made to join the offset children. Use RegionOps.constructCurveXYOffset() to return a fully
|
|
292
|
+
* joined offset.
|
|
276
293
|
* @param offsetDistanceOrOptions offset distance (positive to left of the instance curve), or options object
|
|
277
294
|
*/
|
|
278
295
|
constructOffsetXY(offsetDistanceOrOptions: number | OffsetOptions): CurvePrimitive | CurvePrimitive[] | undefined;
|
|
279
|
-
/**
|
|
296
|
+
/**
|
|
297
|
+
* Project instance geometry (via dispatch) onto the given ray, and return the extreme fractional parameters of
|
|
298
|
+
* projection.
|
|
280
299
|
* @param ray ray onto which the instance is projected. A `Vector3d` is treated as a `Ray3d` with zero origin.
|
|
281
300
|
* @param lowHigh optional receiver for output
|
|
282
|
-
* @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the
|
|
301
|
+
* @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the
|
|
302
|
+
* end of the ray.
|
|
283
303
|
*/
|
|
284
304
|
projectedParameterRange(ray: Vector3d | Ray3d, lowHigh?: Range1d): Range1d | undefined;
|
|
285
305
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|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,GAAG,SAAS;IAuBxC;;;OAGG;IACI,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO;IAQzD,gGAAgG;IACzF,cAAc,IAAI,IAAI;IAQ7B;;;;;OAKG;IACa,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IAO5D;;;;;OAKG;IACa,8BAA8B,CAC5C,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,mBAAmB,GACnG,mBAAmB;IAUtB;;;;;;;;OAQG;WACW,yBAAyB,CACrC,KAAK,GAAE,OAAc,GACpB;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE;IAYrF,OAAO,CAAC,MAAM,CAAC,SAAS,CAAK;IAC7B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAK;IAC9B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAK;IAChC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAK;IACjC;;;;;;;;;OASG;IACa,YAAY,CAC1B,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,2BAA2B,GACvD,mBAAmB,GAAG,SAAS;IA0ClC;;;;;OAKG;IACa,iBAAiB,CAC/B,uBAAuB,EAAE,MAAM,GAAG,aAAa,GAC9C,cAAc,GAAG,cAAc,EAAE,GAAG,SAAS;IAchD;;;;;;;OAOG;IACa,uBAAuB,CAAC,GAAG,EAAE,QAAQ,GAAG,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS;CAGvG"}
|
|
@@ -20,7 +20,7 @@ const PlaneAltitudeRangeContext_1 = require("./internalContexts/PlaneAltitudeRan
|
|
|
20
20
|
const PolygonOffsetContext_1 = require("./internalContexts/PolygonOffsetContext");
|
|
21
21
|
const Path_1 = require("./Path");
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Annotation of an interval of a curve.
|
|
24
24
|
* * The interval is marked with two pairs of numbers:
|
|
25
25
|
* * * fraction0, fraction1 = fraction parameters along the child curve
|
|
26
26
|
* * * distance0,distance1 = distances within containing CurveChainWithDistanceIndex
|
|
@@ -44,8 +44,7 @@ class PathFragment {
|
|
|
44
44
|
containsChainDistance(distance) {
|
|
45
45
|
return distance >= this.chainDistance0 && distance <= this.chainDistance1;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
// not be larger.
|
|
47
|
+
/** Return a quick distance to the curve. This may be SMALLER than true distance but may not be larger */
|
|
49
48
|
quickMinDistanceToChildCurve(spacePoint) {
|
|
50
49
|
if (this.range) {
|
|
51
50
|
return this.range.distanceToPoint(spacePoint);
|
|
@@ -56,8 +55,10 @@ class PathFragment {
|
|
|
56
55
|
return detail.a;
|
|
57
56
|
return 0;
|
|
58
57
|
}
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Return an array with (references to) all the path fragments, sorted smallest to largest on the "a" value
|
|
60
|
+
* equal to the quick min distance to the fragment
|
|
61
|
+
*/
|
|
61
62
|
static collectSortedQuickMinDistances(fragments, spacePoint) {
|
|
62
63
|
const sortedFragments = [];
|
|
63
64
|
for (const f of fragments) {
|
|
@@ -74,26 +75,28 @@ class PathFragment {
|
|
|
74
75
|
containsChildCurveAndChildFraction(curve, fraction) {
|
|
75
76
|
return this.childCurve === curve && fraction >= this.childFraction0 && fraction <= this.childFraction1;
|
|
76
77
|
}
|
|
77
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* Convert distance to local fraction, and apply that to interpolate between the stored curve fractions.
|
|
78
80
|
* Note that proportional calculation does NOT account for nonuniform parameterization in the child curve.
|
|
79
81
|
*/
|
|
80
82
|
chainDistanceToInterpolatedChildFraction(distance) {
|
|
81
83
|
return Geometry_1.Geometry.inverseInterpolate(this.childFraction0, this.chainDistance0, this.childFraction1, this.chainDistance1, distance, this.childFraction0); // the interval "must" have nonzero length, division should be safe . ..
|
|
82
84
|
}
|
|
83
|
-
/** Convert chainDistance to true chidFraction, using detailed moveSignedDistanceFromFraction
|
|
84
|
-
*/
|
|
85
|
+
/** Convert chainDistance to true chidFraction, using detailed moveSignedDistanceFromFraction */
|
|
85
86
|
chainDistanceToAccurateChildFraction(chainDistance, allowExtrapolation) {
|
|
86
87
|
// The fragments are really expected to do good mappings in their distance range ...
|
|
87
88
|
const childDetail = this.childCurve.moveSignedDistanceFromFraction(this.childFraction0, chainDistance - this.chainDistance0, allowExtrapolation ?? false);
|
|
88
89
|
return childDetail.fraction;
|
|
89
90
|
}
|
|
90
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Return the scale factor to map childCurve fraction derivatives to chain fraction derivatives
|
|
91
93
|
* @param globalDistance total length of the global curve.
|
|
92
94
|
*/
|
|
93
95
|
fractionScaleFactor(globalDistance) {
|
|
94
96
|
return globalDistance * (this.childFraction1 - this.childFraction0) / (this.chainDistance1 - this.chainDistance0);
|
|
95
97
|
}
|
|
96
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* Reverse the fraction and distance data.
|
|
97
100
|
* * each child fraction `f` is replaced by `1-f`
|
|
98
101
|
* * each `chainDistance` is replaced by `totalDistance-chainDistance`
|
|
99
102
|
*/
|
|
@@ -112,7 +115,7 @@ class PathFragment {
|
|
|
112
115
|
return this.childFractionToChainDistance(fraction);
|
|
113
116
|
}
|
|
114
117
|
/**
|
|
115
|
-
*
|
|
118
|
+
* Convert a fractional position on the childCurve to distance in the chain space.
|
|
116
119
|
* * Return value is SIGNED -- will be negative when fraction < this.childFraction0.
|
|
117
120
|
* @param fraction fraction along the curve within this fragment
|
|
118
121
|
*/
|
|
@@ -135,7 +138,6 @@ class DistanceIndexConstructionContext {
|
|
|
135
138
|
startCurvePrimitive(_cp) { }
|
|
136
139
|
endParentCurvePrimitive(_cp) { }
|
|
137
140
|
endCurvePrimitive(_cp) { }
|
|
138
|
-
// um .. we need to see curves? how to reject?
|
|
139
141
|
announcePointTangent(_xyz, _fraction, _tangent) { }
|
|
140
142
|
/** Announce numPoints interpolated between point0 and point1, with associated fractions */
|
|
141
143
|
announceSegmentInterval(cp, point0, point1, numStrokes, fraction0, fraction1) {
|
|
@@ -182,13 +184,17 @@ class DistanceIndexConstructionContext {
|
|
|
182
184
|
/**
|
|
183
185
|
* `CurveChainWithDistanceIndex` is a CurvePrimitive whose fractional parameterization is proportional to true
|
|
184
186
|
* distance along a CurveChain.
|
|
187
|
+
* * For example if the total length of the chain is `L`, then the distance along the chain from parameters `t0`
|
|
188
|
+
* to `t1` is easily computed as `L*(t1-t0)`.
|
|
185
189
|
* * The curve chain can be any type derived from CurveChain.
|
|
186
190
|
* * * i.e. either a `Path` or a `Loop`
|
|
187
191
|
* @public
|
|
188
192
|
*/
|
|
189
193
|
class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
190
194
|
/** Test if other is a `CurveChainWithDistanceIndex` */
|
|
191
|
-
isSameGeometryClass(other) {
|
|
195
|
+
isSameGeometryClass(other) {
|
|
196
|
+
return other instanceof CurveChainWithDistanceIndex;
|
|
197
|
+
}
|
|
192
198
|
// final assembly of CurveChainWithDistanceIndex -- caller must create valid fragment index.
|
|
193
199
|
constructor(path, fragments) {
|
|
194
200
|
super();
|
|
@@ -208,14 +214,20 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
208
214
|
return CurveChainWithDistanceIndex.createCapture(c);
|
|
209
215
|
return undefined;
|
|
210
216
|
}
|
|
211
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* Reference to the contained path.
|
|
212
219
|
* * Do not modify the path. The distance index will be wrong.
|
|
213
220
|
*/
|
|
214
|
-
get path() {
|
|
215
|
-
|
|
221
|
+
get path() {
|
|
222
|
+
return this._path;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Reference to the fragments array.
|
|
216
226
|
* * Do not modify.
|
|
217
227
|
*/
|
|
218
|
-
get fragments() {
|
|
228
|
+
get fragments() {
|
|
229
|
+
return this._fragments;
|
|
230
|
+
}
|
|
219
231
|
/** Return a deep clone */
|
|
220
232
|
clone() {
|
|
221
233
|
const c = this._path.clone();
|
|
@@ -287,7 +299,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
287
299
|
newPath.children.reverse();
|
|
288
300
|
return CurveChainWithDistanceIndex.createCapture(newPath);
|
|
289
301
|
}
|
|
290
|
-
/**
|
|
302
|
+
/**
|
|
303
|
+
* Ask if the curve is within tolerance of a plane.
|
|
291
304
|
* @returns Returns true if the curve is completely within tolerance of the plane.
|
|
292
305
|
*/
|
|
293
306
|
isInPlane(plane) {
|
|
@@ -297,7 +310,7 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
297
310
|
}
|
|
298
311
|
return true;
|
|
299
312
|
}
|
|
300
|
-
/**
|
|
313
|
+
/** Return the start point of the primitive. The default implementation returns fractionToPoint (0.0) */
|
|
301
314
|
startPoint(result) {
|
|
302
315
|
const c = this._path.cyclicCurvePrimitive(0);
|
|
303
316
|
if (c)
|
|
@@ -317,7 +330,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
317
330
|
c.emitStrokes(dest, options);
|
|
318
331
|
}
|
|
319
332
|
}
|
|
320
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* Ask the curve to announce points and simple subcurve fragments for stroking.
|
|
321
335
|
* See IStrokeHandler for description of the sequence of the method calls.
|
|
322
336
|
*/
|
|
323
337
|
emitStrokableParts(dest, options) {
|
|
@@ -326,7 +340,7 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
326
340
|
}
|
|
327
341
|
}
|
|
328
342
|
/**
|
|
329
|
-
*
|
|
343
|
+
* Return the stroke count required for given options.
|
|
330
344
|
* @param options StrokeOptions that determine count
|
|
331
345
|
*/
|
|
332
346
|
computeStrokeCountForOptions(options) {
|
|
@@ -340,7 +354,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
340
354
|
* Return an array containing only the curve primitives.
|
|
341
355
|
* @param collectorArray array to receive primitives (pushed -- the array is not cleared)
|
|
342
356
|
* @param smallestPossiblePrimitives if true, recurse on the (otherwise hidden) children. If false, only push `this`.
|
|
343
|
-
* @param explodeLinestrings (if smallestPossiblePrimitives is true) whether to push a [[LineSegment3d]] for each
|
|
357
|
+
* @param explodeLinestrings (if smallestPossiblePrimitives is true) whether to push a [[LineSegment3d]] for each
|
|
358
|
+
* segment of a [[LineString3d]] child. If false, push only the [[LineString3d]].
|
|
344
359
|
*/
|
|
345
360
|
collectCurvePrimitivesGo(collectorArray, smallestPossiblePrimitives = false, explodeLineStrings = false) {
|
|
346
361
|
if (smallestPossiblePrimitives) {
|
|
@@ -353,7 +368,7 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
353
368
|
}
|
|
354
369
|
}
|
|
355
370
|
/**
|
|
356
|
-
*
|
|
371
|
+
* Construct StrokeCountMap for each child, accumulating data to stroke count map for this primitive.
|
|
357
372
|
* @param options StrokeOptions that determine count
|
|
358
373
|
* @param parentStrokeMap evolving parent map.
|
|
359
374
|
*/
|
|
@@ -364,20 +379,19 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
364
379
|
}
|
|
365
380
|
CurvePrimitive_1.CurvePrimitive.installStrokeCountMap(this, myMap, parentStrokeMap);
|
|
366
381
|
}
|
|
367
|
-
/**
|
|
382
|
+
/**
|
|
383
|
+
* Second step of double dispatch: call `this._path.dispatchToGeometryHandler (handler)`
|
|
368
384
|
* * Note that this exposes the children individually to the handler.
|
|
369
385
|
*/
|
|
370
386
|
dispatchToGeometryHandler(handler) {
|
|
371
387
|
return this._path.dispatchToGeometryHandler(handler);
|
|
372
388
|
}
|
|
373
|
-
/** Extend (increase) `rangeToExtend` as needed to include these curves (optionally transformed)
|
|
374
|
-
*/
|
|
389
|
+
/** Extend (increase) `rangeToExtend` as needed to include these curves (optionally transformed) */
|
|
375
390
|
extendRange(rangeToExtend, transform) {
|
|
376
391
|
this._path.extendRange(rangeToExtend, transform);
|
|
377
392
|
}
|
|
378
393
|
/**
|
|
379
|
-
*
|
|
380
|
-
* * Curve length is always positive.
|
|
394
|
+
* Curve length is always positive.
|
|
381
395
|
* @returns Returns a (high accuracy) length of the curve between fractional positions
|
|
382
396
|
* @returns Returns the length of the curve.
|
|
383
397
|
*/
|
|
@@ -429,7 +443,9 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
429
443
|
* Convert distance along the chain to fraction along the chain.
|
|
430
444
|
* @param distance distance along the chain
|
|
431
445
|
*/
|
|
432
|
-
chainDistanceToChainFraction(distance) {
|
|
446
|
+
chainDistanceToChainFraction(distance) {
|
|
447
|
+
return distance / this._totalLength;
|
|
448
|
+
}
|
|
433
449
|
/**
|
|
434
450
|
* Resolve a fraction within a specific curve to a fragment.
|
|
435
451
|
* @param curve
|
|
@@ -451,9 +467,7 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
451
467
|
}
|
|
452
468
|
return undefined;
|
|
453
469
|
}
|
|
454
|
-
/**
|
|
455
|
-
* Returns the total length of curves.
|
|
456
|
-
*/
|
|
470
|
+
/** Returns the total length of curves. */
|
|
457
471
|
curveLength() {
|
|
458
472
|
return this._totalLength;
|
|
459
473
|
}
|
|
@@ -480,8 +494,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
480
494
|
// fragment = this.chainDistanceToFragment(chainDistance, true);
|
|
481
495
|
return this._fragments[0].childCurve.fractionToPoint(0.0, result);
|
|
482
496
|
}
|
|
483
|
-
/**
|
|
484
|
-
*
|
|
497
|
+
/**
|
|
498
|
+
* Return the point (x,y,z) and derivative on the curve at fractional position.
|
|
485
499
|
* * Note that this derivative is "derivative of xyz with respect to fraction."
|
|
486
500
|
* * this derivative shows the speed of the "fractional point" moving along the curve.
|
|
487
501
|
* * this is not generally a unit vector. use fractionToPointAndUnitTangent for a unit vector.
|
|
@@ -515,10 +529,11 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
515
529
|
result.direction.normalizeInPlace();
|
|
516
530
|
return result;
|
|
517
531
|
}
|
|
518
|
-
/**
|
|
519
|
-
*
|
|
532
|
+
/**
|
|
533
|
+
* Return a plane with
|
|
520
534
|
* * origin at fractional position along the curve
|
|
521
|
-
* * vectorU is the first derivative, i.e. tangent vector with length equal to the rate of change with respect to
|
|
535
|
+
* * vectorU is the first derivative, i.e. tangent vector with length equal to the rate of change with respect to
|
|
536
|
+
* the fraction.
|
|
522
537
|
* * vectorV is the second derivative, i.e.derivative of vectorU.
|
|
523
538
|
*/
|
|
524
539
|
fractionToPointAnd2Derivatives(fraction, result) {
|
|
@@ -544,7 +559,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
544
559
|
result.vectorV.scaleInPlace(scale * scale);
|
|
545
560
|
return result;
|
|
546
561
|
}
|
|
547
|
-
/**
|
|
562
|
+
/**
|
|
563
|
+
* Attempt to transform in place.
|
|
548
564
|
* * Warning: If any child fails, this object becomes invalid. But that should never happen.
|
|
549
565
|
*/
|
|
550
566
|
tryTransformInPlace(transform) {
|
|
@@ -577,9 +593,11 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
577
593
|
}
|
|
578
594
|
return false;
|
|
579
595
|
}
|
|
580
|
-
/**
|
|
596
|
+
/**
|
|
597
|
+
* Implement moveSignedDistanceFromFraction.
|
|
581
598
|
* * See `CurvePrimitive` for parameter details.
|
|
582
|
-
* * The returned location directly identifies fractional position along the CurveChainWithDistanceIndex, and
|
|
599
|
+
* * The returned location directly identifies fractional position along the CurveChainWithDistanceIndex, and
|
|
600
|
+
* has pointer to an additional detail for the child curve.
|
|
583
601
|
*/
|
|
584
602
|
moveSignedDistanceFromFraction(startFraction, signedDistance, allowExtension, result) {
|
|
585
603
|
const distanceA = startFraction * this._totalLength;
|
|
@@ -592,7 +610,6 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
592
610
|
return chainDetail;
|
|
593
611
|
}
|
|
594
612
|
/**
|
|
595
|
-
*
|
|
596
613
|
* The returned object has
|
|
597
614
|
* * numCalls = number of times closestPoint was called.
|
|
598
615
|
* * numCurvesTested = number of curves tested with full closestPoint
|
|
@@ -613,10 +630,12 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
613
630
|
}
|
|
614
631
|
return a;
|
|
615
632
|
}
|
|
616
|
-
/**
|
|
633
|
+
/**
|
|
634
|
+
* Search for the curve point that is closest to the spacePoint.
|
|
617
635
|
* * The CurveChainWithDistanceIndex invokes the base class CurvePrimitive method, which
|
|
618
636
|
* (via a handler) determines a CurveLocation detail among the children.
|
|
619
|
-
* * The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex, and
|
|
637
|
+
* * The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex, and
|
|
638
|
+
* has pointer to an additional detail for the child curve.
|
|
620
639
|
* @param spacePoint point in space
|
|
621
640
|
* @param extend true to extend the curve
|
|
622
641
|
* @returns Returns a CurveLocationDetail structure that holds the details of the close point.
|
|
@@ -665,7 +684,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
665
684
|
}
|
|
666
685
|
/**
|
|
667
686
|
* Construct an offset of each child as viewed in the xy-plane (ignoring z).
|
|
668
|
-
* * No attempt is made to join the offset children. Use RegionOps.constructCurveXYOffset() to return a fully
|
|
687
|
+
* * No attempt is made to join the offset children. Use RegionOps.constructCurveXYOffset() to return a fully
|
|
688
|
+
* joined offset.
|
|
669
689
|
* @param offsetDistanceOrOptions offset distance (positive to left of the instance curve), or options object
|
|
670
690
|
*/
|
|
671
691
|
constructOffsetXY(offsetDistanceOrOptions) {
|
|
@@ -682,10 +702,13 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
|
|
|
682
702
|
}
|
|
683
703
|
return offsets;
|
|
684
704
|
}
|
|
685
|
-
/**
|
|
705
|
+
/**
|
|
706
|
+
* Project instance geometry (via dispatch) onto the given ray, and return the extreme fractional parameters of
|
|
707
|
+
* projection.
|
|
686
708
|
* @param ray ray onto which the instance is projected. A `Vector3d` is treated as a `Ray3d` with zero origin.
|
|
687
709
|
* @param lowHigh optional receiver for output
|
|
688
|
-
* @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the
|
|
710
|
+
* @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the
|
|
711
|
+
* end of the ray.
|
|
689
712
|
*/
|
|
690
713
|
projectedParameterRange(ray, lowHigh) {
|
|
691
714
|
return PlaneAltitudeRangeContext_1.PlaneAltitudeRangeContext.findExtremeFractionsAlongDirection(this, ray, lowHigh);
|