@itwin/core-geometry 4.1.0-dev.4 → 4.1.0-dev.40
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 +32 -1
- package/lib/cjs/Constant.js.map +1 -1
- package/lib/cjs/Geometry.js.map +1 -1
- package/lib/cjs/bspline/AkimaCurve3d.js.map +1 -1
- package/lib/cjs/bspline/BSpline1dNd.js.map +1 -1
- package/lib/cjs/bspline/BSplineCurve.js.map +1 -1
- package/lib/cjs/bspline/BSplineCurve3dH.js.map +1 -1
- package/lib/cjs/bspline/BSplineCurveOps.js.map +1 -1
- package/lib/cjs/bspline/BSplineSurface.js.map +1 -1
- package/lib/cjs/bspline/Bezier1dNd.js.map +1 -1
- package/lib/cjs/bspline/BezierCurve3d.js.map +1 -1
- package/lib/cjs/bspline/BezierCurve3dH.js.map +1 -1
- package/lib/cjs/bspline/BezierCurveBase.js.map +1 -1
- package/lib/cjs/bspline/InterpolationCurve3d.js.map +1 -1
- package/lib/cjs/bspline/KnotVector.js.map +1 -1
- package/lib/cjs/bspline/SurfaceLocationDetail.js.map +1 -1
- package/lib/cjs/clipping/AlternatingConvexClipTree.js.map +1 -1
- package/lib/cjs/clipping/BooleanClipFactory.js.map +1 -1
- package/lib/cjs/clipping/BooleanClipNode.js.map +1 -1
- package/lib/cjs/clipping/ClipPlane.js.map +1 -1
- package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
- package/lib/cjs/clipping/ClipUtils.js.map +1 -1
- package/lib/cjs/clipping/ClipVector.js.map +1 -1
- package/lib/cjs/clipping/ConvexClipPlaneSet.js.map +1 -1
- package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
- package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.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 +71 -86
- package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
- package/lib/cjs/curve/Arc3d.js +110 -96
- package/lib/cjs/curve/Arc3d.js.map +1 -1
- package/lib/cjs/curve/ChainCollectorContext.js.map +1 -1
- package/lib/cjs/curve/ConstructCurveBetweenCurves.js.map +1 -1
- package/lib/cjs/curve/CoordinateXYZ.js.map +1 -1
- package/lib/cjs/curve/CurveChain.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 +73 -46
- package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
- package/lib/cjs/curve/CurveCollection.js +100 -64
- 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/CurveCurveCloseApproachXY.js.map +1 -1
- package/lib/cjs/curve/CurveCurveIntersectXY.js.map +1 -1
- package/lib/cjs/curve/CurveCurveIntersectXYZ.js.map +1 -1
- package/lib/cjs/curve/CurveExtendMode.js.map +1 -1
- package/lib/cjs/curve/CurveFactory.js.map +1 -1
- package/lib/cjs/curve/CurveLocationDetail.d.ts +45 -46
- package/lib/cjs/curve/CurveLocationDetail.d.ts.map +1 -1
- package/lib/cjs/curve/CurveLocationDetail.js +39 -41
- package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
- package/lib/cjs/curve/CurvePrimitive.d.ts +138 -92
- package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -1
- package/lib/cjs/curve/CurvePrimitive.js +115 -75
- package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
- package/lib/cjs/curve/CurveProcessor.js.map +1 -1
- package/lib/cjs/curve/CurveWireMomentsXYZ.js.map +1 -1
- package/lib/cjs/curve/GeometryQuery.d.ts +26 -20
- package/lib/cjs/curve/GeometryQuery.d.ts.map +1 -1
- package/lib/cjs/curve/GeometryQuery.js +11 -9
- package/lib/cjs/curve/GeometryQuery.js.map +1 -1
- package/lib/cjs/curve/LineSegment3d.d.ts +38 -27
- package/lib/cjs/curve/LineSegment3d.d.ts.map +1 -1
- package/lib/cjs/curve/LineSegment3d.js +77 -39
- package/lib/cjs/curve/LineSegment3d.js.map +1 -1
- package/lib/cjs/curve/LineString3d.d.ts +70 -51
- package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
- package/lib/cjs/curve/LineString3d.js +120 -71
- 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/PointString3d.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/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
- package/lib/cjs/curve/Query/CurveSplitContext.js.map +1 -1
- package/lib/cjs/curve/Query/CylindricalRange.js.map +1 -1
- package/lib/cjs/curve/Query/InOutTests.js.map +1 -1
- package/lib/cjs/curve/Query/PlanarSubdivision.js.map +1 -1
- package/lib/cjs/curve/Query/StrokeCountChain.js.map +1 -1
- package/lib/cjs/curve/Query/StrokeCountMap.d.ts +14 -13
- package/lib/cjs/curve/Query/StrokeCountMap.d.ts.map +1 -1
- package/lib/cjs/curve/Query/StrokeCountMap.js +9 -8
- package/lib/cjs/curve/Query/StrokeCountMap.js.map +1 -1
- package/lib/cjs/curve/RegionMomentsXY.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/RegionOpsClassificationSweeps.js.map +1 -1
- package/lib/cjs/curve/StrokeOptions.d.ts +29 -21
- package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
- package/lib/cjs/curve/StrokeOptions.js +50 -24
- 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/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CloneCurvesContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -1
- package/lib/cjs/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveLengthContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveOffsetXYHandler.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/NewtonRtoRStrokeHandler.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 +152 -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/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
- package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/ClothoidSeries.js.map +1 -1
- package/lib/cjs/curve/spiral/CubicEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/DirectSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/NormalizedTransition.js.map +1 -1
- package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/TransitionConditionalProperties.js.map +1 -1
- package/lib/cjs/curve/spiral/TransitionSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/XYCurveEvaluator.js.map +1 -1
- package/lib/cjs/geometry3d/Angle.js.map +1 -1
- package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
- package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
- package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
- package/lib/cjs/geometry3d/CoincidentGeometryOps.js.map +1 -1
- package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
- package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
- package/lib/cjs/geometry3d/FrustumAnimation.js.map +1 -1
- package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableBlockedArray.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedCollectionInterval.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
- package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
- package/lib/cjs/geometry3d/Matrix3d.d.ts +2 -2
- package/lib/cjs/geometry3d/Matrix3d.js +2 -2
- package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
- package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -1
- package/lib/cjs/geometry3d/Plane3d.js.map +1 -1
- package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.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/Point2dArrayCarrier.js.map +1 -1
- package/lib/cjs/geometry3d/Point2dVector2d.js.map +1 -1
- package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
- package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
- package/lib/cjs/geometry3d/PointStreaming.js.map +1 -1
- package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
- package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
- package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
- package/lib/cjs/geometry3d/Range.d.ts +133 -93
- package/lib/cjs/geometry3d/Range.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Range.js +296 -144
- 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/ReusableObjectCache.js.map +1 -1
- package/lib/cjs/geometry3d/Segment1d.js.map +1 -1
- package/lib/cjs/geometry3d/SortablePolygon.js.map +1 -1
- package/lib/cjs/geometry3d/Transform.js.map +1 -1
- package/lib/cjs/geometry3d/UVSurfaceOps.js.map +1 -1
- package/lib/cjs/geometry3d/XYZProps.js.map +1 -1
- package/lib/cjs/geometry3d/YawPitchRollAngles.js.map +1 -1
- package/lib/cjs/geometry4d/Map4d.js.map +1 -1
- package/lib/cjs/geometry4d/Matrix4d.js.map +1 -1
- package/lib/cjs/geometry4d/MomentData.js.map +1 -1
- package/lib/cjs/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
- package/lib/cjs/geometry4d/Point4d.js.map +1 -1
- package/lib/cjs/numerics/BandedSystem.js.map +1 -1
- package/lib/cjs/numerics/BezierPolynomials.js.map +1 -1
- package/lib/cjs/numerics/ClusterableArray.js.map +1 -1
- package/lib/cjs/numerics/Complex.js.map +1 -1
- package/lib/cjs/numerics/ConvexPolygon2d.js.map +1 -1
- package/lib/cjs/numerics/Newton.js.map +1 -1
- package/lib/cjs/numerics/PascalCoefficients.js.map +1 -1
- package/lib/cjs/numerics/PolarData.js.map +1 -1
- package/lib/cjs/numerics/Polynomials.js.map +1 -1
- package/lib/cjs/numerics/Quadrature.js.map +1 -1
- package/lib/cjs/numerics/Range1dArray.js.map +1 -1
- package/lib/cjs/numerics/TriDiagonalSystem.js.map +1 -1
- package/lib/cjs/numerics/UnionFind.js.map +1 -1
- package/lib/cjs/numerics/UsageSums.js.map +1 -1
- package/lib/cjs/polyface/AuxData.js.map +1 -1
- package/lib/cjs/polyface/BoxTopology.js.map +1 -1
- package/lib/cjs/polyface/FacetFaceData.js.map +1 -1
- package/lib/cjs/polyface/FacetLocationDetail.js.map +1 -1
- package/lib/cjs/polyface/FacetOrientation.js.map +1 -1
- package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
- package/lib/cjs/polyface/IndexedEdgeMatcher.js.map +1 -1
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
- package/lib/cjs/polyface/Polyface.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceClip.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceData.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/cjs/polyface/RangeLengthData.js.map +1 -1
- package/lib/cjs/polyface/TaggedNumericData.js.map +1 -1
- package/lib/cjs/polyface/TriangleCandidate.js.map +1 -1
- package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
- package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
- package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
- package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.js.map +1 -1
- package/lib/cjs/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
- package/lib/cjs/polyface/multiclip/RangeSearch.js.map +1 -1
- package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
- package/lib/cjs/polyface/multiclip/XYPointBuckets.js.map +1 -1
- package/lib/cjs/serialization/BGFBAccessors.js.map +1 -1
- package/lib/cjs/serialization/BGFBReader.js.map +1 -1
- package/lib/cjs/serialization/BGFBWriter.js.map +1 -1
- package/lib/cjs/serialization/BentleyGeometryFlatBuffer.js.map +1 -1
- package/lib/cjs/serialization/DeepCompare.js.map +1 -1
- package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
- package/lib/cjs/serialization/IModelJsonSchema.js.map +1 -1
- package/lib/cjs/solid/Box.js.map +1 -1
- package/lib/cjs/solid/Cone.js.map +1 -1
- package/lib/cjs/solid/LinearSweep.js.map +1 -1
- package/lib/cjs/solid/RotationalSweep.js.map +1 -1
- package/lib/cjs/solid/RuledSweep.js.map +1 -1
- package/lib/cjs/solid/SolidPrimitive.js.map +1 -1
- package/lib/cjs/solid/Sphere.js.map +1 -1
- package/lib/cjs/solid/SweepContour.js.map +1 -1
- package/lib/cjs/solid/TorusPipe.js.map +1 -1
- package/lib/cjs/topology/ChainMerge.js.map +1 -1
- package/lib/cjs/topology/Graph.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphSearch.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphSpineContext.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphValidation.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeMarkSet.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeNodeXYZUV.js.map +1 -1
- package/lib/cjs/topology/HalfEdgePointInGraphSearch.js.map +1 -1
- package/lib/cjs/topology/HalfEdgePositionDetail.js.map +1 -1
- package/lib/cjs/topology/HalfEdgePriorityQueue.js.map +1 -1
- package/lib/cjs/topology/InsertAndRetriangulateContext.js.map +1 -1
- package/lib/cjs/topology/MaskManager.js.map +1 -1
- package/lib/cjs/topology/Merging.js.map +1 -1
- package/lib/cjs/topology/RegularizeFace.js.map +1 -1
- package/lib/cjs/topology/SignedDataSummary.js.map +1 -1
- package/lib/cjs/topology/SpaceTriangulation.js.map +1 -1
- package/lib/cjs/topology/Triangulation.js.map +1 -1
- package/lib/cjs/topology/XYParitySearchContext.js.map +1 -1
- package/lib/esm/Constant.js.map +1 -1
- package/lib/esm/Geometry.js.map +1 -1
- package/lib/esm/bspline/AkimaCurve3d.js.map +1 -1
- package/lib/esm/bspline/BSpline1dNd.js.map +1 -1
- package/lib/esm/bspline/BSplineCurve.js.map +1 -1
- package/lib/esm/bspline/BSplineCurve3dH.js.map +1 -1
- package/lib/esm/bspline/BSplineCurveOps.js.map +1 -1
- package/lib/esm/bspline/BSplineSurface.js.map +1 -1
- package/lib/esm/bspline/Bezier1dNd.js.map +1 -1
- package/lib/esm/bspline/BezierCurve3d.js.map +1 -1
- package/lib/esm/bspline/BezierCurve3dH.js.map +1 -1
- package/lib/esm/bspline/BezierCurveBase.js.map +1 -1
- package/lib/esm/bspline/InterpolationCurve3d.js.map +1 -1
- package/lib/esm/bspline/KnotVector.js.map +1 -1
- package/lib/esm/bspline/SurfaceLocationDetail.js.map +1 -1
- package/lib/esm/clipping/AlternatingConvexClipTree.js.map +1 -1
- package/lib/esm/clipping/BooleanClipFactory.js.map +1 -1
- package/lib/esm/clipping/BooleanClipNode.js.map +1 -1
- package/lib/esm/clipping/ClipPlane.js.map +1 -1
- package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
- package/lib/esm/clipping/ClipUtils.js.map +1 -1
- package/lib/esm/clipping/ClipVector.js.map +1 -1
- package/lib/esm/clipping/ConvexClipPlaneSet.js.map +1 -1
- package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
- package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.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 +71 -86
- package/lib/esm/curve/Arc3d.d.ts.map +1 -1
- package/lib/esm/curve/Arc3d.js +110 -96
- package/lib/esm/curve/Arc3d.js.map +1 -1
- package/lib/esm/curve/ChainCollectorContext.js.map +1 -1
- package/lib/esm/curve/ConstructCurveBetweenCurves.js.map +1 -1
- package/lib/esm/curve/CoordinateXYZ.js.map +1 -1
- package/lib/esm/curve/CurveChain.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 +73 -46
- package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
- package/lib/esm/curve/CurveCollection.js +100 -64
- 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/CurveCurveCloseApproachXY.js.map +1 -1
- package/lib/esm/curve/CurveCurveIntersectXY.js.map +1 -1
- package/lib/esm/curve/CurveCurveIntersectXYZ.js.map +1 -1
- package/lib/esm/curve/CurveExtendMode.js.map +1 -1
- package/lib/esm/curve/CurveFactory.js.map +1 -1
- package/lib/esm/curve/CurveLocationDetail.d.ts +45 -46
- package/lib/esm/curve/CurveLocationDetail.d.ts.map +1 -1
- package/lib/esm/curve/CurveLocationDetail.js +39 -41
- package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
- package/lib/esm/curve/CurvePrimitive.d.ts +138 -92
- package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -1
- package/lib/esm/curve/CurvePrimitive.js +115 -75
- package/lib/esm/curve/CurvePrimitive.js.map +1 -1
- package/lib/esm/curve/CurveProcessor.js.map +1 -1
- package/lib/esm/curve/CurveWireMomentsXYZ.js.map +1 -1
- package/lib/esm/curve/GeometryQuery.d.ts +26 -20
- package/lib/esm/curve/GeometryQuery.d.ts.map +1 -1
- package/lib/esm/curve/GeometryQuery.js +11 -9
- package/lib/esm/curve/GeometryQuery.js.map +1 -1
- package/lib/esm/curve/LineSegment3d.d.ts +38 -27
- package/lib/esm/curve/LineSegment3d.d.ts.map +1 -1
- package/lib/esm/curve/LineSegment3d.js +77 -39
- package/lib/esm/curve/LineSegment3d.js.map +1 -1
- package/lib/esm/curve/LineString3d.d.ts +70 -51
- package/lib/esm/curve/LineString3d.d.ts.map +1 -1
- package/lib/esm/curve/LineString3d.js +120 -71
- 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/PointString3d.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/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
- package/lib/esm/curve/Query/CurveSplitContext.js.map +1 -1
- package/lib/esm/curve/Query/CylindricalRange.js.map +1 -1
- package/lib/esm/curve/Query/InOutTests.js.map +1 -1
- package/lib/esm/curve/Query/PlanarSubdivision.js.map +1 -1
- package/lib/esm/curve/Query/StrokeCountChain.js.map +1 -1
- package/lib/esm/curve/Query/StrokeCountMap.d.ts +14 -13
- package/lib/esm/curve/Query/StrokeCountMap.d.ts.map +1 -1
- package/lib/esm/curve/Query/StrokeCountMap.js +9 -8
- package/lib/esm/curve/Query/StrokeCountMap.js.map +1 -1
- package/lib/esm/curve/RegionMomentsXY.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/RegionOpsClassificationSweeps.js.map +1 -1
- package/lib/esm/curve/StrokeOptions.d.ts +29 -21
- package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
- package/lib/esm/curve/StrokeOptions.js +50 -24
- 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/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/CloneCurvesContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -1
- package/lib/esm/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveLengthContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveOffsetXYHandler.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/NewtonRtoRStrokeHandler.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 +152 -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/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/ClothoidSeries.js.map +1 -1
- package/lib/esm/curve/spiral/CubicEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/DirectSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/NormalizedTransition.js.map +1 -1
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/TransitionConditionalProperties.js.map +1 -1
- package/lib/esm/curve/spiral/TransitionSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/XYCurveEvaluator.js.map +1 -1
- package/lib/esm/geometry3d/Angle.js.map +1 -1
- package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
- package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
- package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
- package/lib/esm/geometry3d/CoincidentGeometryOps.js.map +1 -1
- package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
- package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
- package/lib/esm/geometry3d/FrustumAnimation.js.map +1 -1
- package/lib/esm/geometry3d/GeometryHandler.js.map +1 -1
- package/lib/esm/geometry3d/GrowableBlockedArray.js.map +1 -1
- package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -1
- package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -1
- package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -1
- package/lib/esm/geometry3d/IndexedCollectionInterval.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
- package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
- package/lib/esm/geometry3d/Matrix3d.d.ts +2 -2
- package/lib/esm/geometry3d/Matrix3d.js +2 -2
- package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
- package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -1
- package/lib/esm/geometry3d/Plane3d.js.map +1 -1
- package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.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/Point2dArrayCarrier.js.map +1 -1
- package/lib/esm/geometry3d/Point2dVector2d.js.map +1 -1
- package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
- package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
- package/lib/esm/geometry3d/PointStreaming.js.map +1 -1
- package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
- package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
- package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
- package/lib/esm/geometry3d/Range.d.ts +133 -93
- package/lib/esm/geometry3d/Range.d.ts.map +1 -1
- package/lib/esm/geometry3d/Range.js +296 -144
- 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/ReusableObjectCache.js.map +1 -1
- package/lib/esm/geometry3d/Segment1d.js.map +1 -1
- package/lib/esm/geometry3d/SortablePolygon.js.map +1 -1
- package/lib/esm/geometry3d/Transform.js.map +1 -1
- package/lib/esm/geometry3d/UVSurfaceOps.js.map +1 -1
- package/lib/esm/geometry3d/XYZProps.js.map +1 -1
- package/lib/esm/geometry3d/YawPitchRollAngles.js.map +1 -1
- package/lib/esm/geometry4d/Map4d.js.map +1 -1
- package/lib/esm/geometry4d/Matrix4d.js.map +1 -1
- package/lib/esm/geometry4d/MomentData.js.map +1 -1
- package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
- package/lib/esm/geometry4d/Point4d.js.map +1 -1
- package/lib/esm/numerics/BandedSystem.js.map +1 -1
- package/lib/esm/numerics/BezierPolynomials.js.map +1 -1
- package/lib/esm/numerics/ClusterableArray.js.map +1 -1
- package/lib/esm/numerics/Complex.js.map +1 -1
- package/lib/esm/numerics/ConvexPolygon2d.js.map +1 -1
- package/lib/esm/numerics/Newton.js.map +1 -1
- package/lib/esm/numerics/PascalCoefficients.js.map +1 -1
- package/lib/esm/numerics/PolarData.js.map +1 -1
- package/lib/esm/numerics/Polynomials.js.map +1 -1
- package/lib/esm/numerics/Quadrature.js.map +1 -1
- package/lib/esm/numerics/Range1dArray.js.map +1 -1
- package/lib/esm/numerics/TriDiagonalSystem.js.map +1 -1
- package/lib/esm/numerics/UnionFind.js.map +1 -1
- package/lib/esm/numerics/UsageSums.js.map +1 -1
- package/lib/esm/polyface/AuxData.js.map +1 -1
- package/lib/esm/polyface/BoxTopology.js.map +1 -1
- package/lib/esm/polyface/FacetFaceData.js.map +1 -1
- package/lib/esm/polyface/FacetLocationDetail.js.map +1 -1
- package/lib/esm/polyface/FacetOrientation.js.map +1 -1
- package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
- package/lib/esm/polyface/IndexedEdgeMatcher.js.map +1 -1
- package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
- package/lib/esm/polyface/Polyface.js.map +1 -1
- package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
- package/lib/esm/polyface/PolyfaceClip.js.map +1 -1
- package/lib/esm/polyface/PolyfaceData.js.map +1 -1
- package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/esm/polyface/RangeLengthData.js.map +1 -1
- package/lib/esm/polyface/TaggedNumericData.js.map +1 -1
- package/lib/esm/polyface/TriangleCandidate.js.map +1 -1
- package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
- package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
- package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
- package/lib/esm/polyface/multiclip/OffsetMeshContext.js.map +1 -1
- package/lib/esm/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
- package/lib/esm/polyface/multiclip/RangeSearch.js.map +1 -1
- package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
- package/lib/esm/polyface/multiclip/XYPointBuckets.js.map +1 -1
- package/lib/esm/serialization/BGFBAccessors.js.map +1 -1
- package/lib/esm/serialization/BGFBReader.js.map +1 -1
- package/lib/esm/serialization/BGFBWriter.js.map +1 -1
- package/lib/esm/serialization/BentleyGeometryFlatBuffer.js.map +1 -1
- package/lib/esm/serialization/DeepCompare.js.map +1 -1
- package/lib/esm/serialization/GeometrySamples.js.map +1 -1
- package/lib/esm/serialization/IModelJsonSchema.js.map +1 -1
- package/lib/esm/solid/Box.js.map +1 -1
- package/lib/esm/solid/Cone.js.map +1 -1
- package/lib/esm/solid/LinearSweep.js.map +1 -1
- package/lib/esm/solid/RotationalSweep.js.map +1 -1
- package/lib/esm/solid/RuledSweep.js.map +1 -1
- package/lib/esm/solid/SolidPrimitive.js.map +1 -1
- package/lib/esm/solid/Sphere.js.map +1 -1
- package/lib/esm/solid/SweepContour.js.map +1 -1
- package/lib/esm/solid/TorusPipe.js.map +1 -1
- package/lib/esm/topology/ChainMerge.js.map +1 -1
- package/lib/esm/topology/Graph.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphSearch.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphSpineContext.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphValidation.js.map +1 -1
- package/lib/esm/topology/HalfEdgeMarkSet.js.map +1 -1
- package/lib/esm/topology/HalfEdgeNodeXYZUV.js.map +1 -1
- package/lib/esm/topology/HalfEdgePointInGraphSearch.js.map +1 -1
- package/lib/esm/topology/HalfEdgePositionDetail.js.map +1 -1
- package/lib/esm/topology/HalfEdgePriorityQueue.js.map +1 -1
- package/lib/esm/topology/InsertAndRetriangulateContext.js.map +1 -1
- package/lib/esm/topology/MaskManager.js.map +1 -1
- package/lib/esm/topology/Merging.js.map +1 -1
- package/lib/esm/topology/RegularizeFace.js.map +1 -1
- package/lib/esm/topology/SignedDataSummary.js.map +1 -1
- package/lib/esm/topology/SpaceTriangulation.js.map +1 -1
- package/lib/esm/topology/Triangulation.js.map +1 -1
- package/lib/esm/topology/XYParitySearchContext.js.map +1 -1
- package/package.json +3 -3
|
@@ -19,20 +19,21 @@ import { AppendPlaneIntersectionStrokeHandler } from "./internalContexts/AppendP
|
|
|
19
19
|
import { ClosestPointStrokeHandler } from "./internalContexts/ClosestPointStrokeHandler";
|
|
20
20
|
import { CurveLengthContext } from "./internalContexts/CurveLengthContext";
|
|
21
21
|
/**
|
|
22
|
-
* A curve primitive is bounded
|
|
22
|
+
* A curve primitive is bounded.
|
|
23
23
|
* A curve primitive maps fractions in 0..1 to points in space.
|
|
24
24
|
* As the fraction proceeds from 0 towards 1, the point moves "forward" along the curve.
|
|
25
25
|
* True distance along the curve is not always strictly proportional to fraction.
|
|
26
|
-
* * LineSegment3d always has proportional fraction and distance
|
|
27
|
-
* *
|
|
28
|
-
* *
|
|
29
|
-
* * A Spiral3d is proportional
|
|
26
|
+
* * A LineSegment3d always has proportional fraction and distance.
|
|
27
|
+
* * An Arc3d which is true circular has proportional fraction and distance.
|
|
28
|
+
* * A LineString3d is not proportional (except for special case of all segments of equal length).
|
|
29
|
+
* * A Spiral3d is proportional.
|
|
30
30
|
* * A BsplineCurve3d is only proportional for special cases.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* For fractions outside 0..1, the curve primitive class may either (a) return the near endpoint or (b) evaluate
|
|
32
|
+
* an extended curve.
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
35
|
export class CurvePrimitive extends GeometryQuery {
|
|
36
|
+
/** Constructor */
|
|
36
37
|
constructor() {
|
|
37
38
|
super();
|
|
38
39
|
/** String name for schema properties */
|
|
@@ -60,30 +61,35 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
60
61
|
const b = data.vectorU.magnitude();
|
|
61
62
|
return Geometry.conditionalDivideFraction(a, b * b * b);
|
|
62
63
|
}
|
|
63
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Construct a frenet frame:
|
|
64
66
|
* * origin at the point on the curve
|
|
65
67
|
* * x axis is unit vector along the curve (tangent)
|
|
66
|
-
* * y axis is perpendicular and in the plane of the osculating circle.
|
|
67
|
-
* * z axis perpendicular to those.
|
|
68
|
+
* * y axis is perpendicular and in the plane of the osculating circle. y axis is called "main normal"
|
|
69
|
+
* * z axis perpendicular to those. z axis is called "bi-normal"
|
|
68
70
|
*/
|
|
69
71
|
fractionToFrenetFrame(fraction, result) {
|
|
70
72
|
const plane = this.fractionToPointAnd2Derivatives(fraction);
|
|
71
73
|
if (!plane)
|
|
72
74
|
return undefined;
|
|
75
|
+
// first derivative (plane.vectorU) and second derivative (plane.vectorV) are not essentially
|
|
76
|
+
// perpendicular so we use createRigidFromColumns to make 3 perpendicular vectors.
|
|
73
77
|
let axes = Matrix3d.createRigidFromColumns(plane.vectorU, plane.vectorV, AxisOrder.XYZ);
|
|
74
78
|
if (axes)
|
|
75
79
|
return Transform.createRefs(plane.origin, axes, result);
|
|
76
|
-
// 2nd derivative not distinct
|
|
80
|
+
// 2nd derivative not distinct. for example if curve is linear at fraction so second derivative is 0.
|
|
81
|
+
// in this case we find perpendicular vector to plane.vectorU and pass it to createRigidFromColumns.
|
|
77
82
|
const perpVector = Matrix3d.createPerpendicularVectorFavorXYPlane(plane.vectorU, plane.vectorV);
|
|
78
83
|
axes = Matrix3d.createRigidFromColumns(plane.vectorU, perpVector, AxisOrder.XYZ);
|
|
79
84
|
if (axes)
|
|
80
85
|
return Transform.createRefs(plane.origin, axes, result);
|
|
81
86
|
return undefined;
|
|
82
87
|
}
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* *
|
|
86
|
-
* *
|
|
88
|
+
/**
|
|
89
|
+
* Construct signed distance from a point on the planar curve to its center of curvature (in xy only).
|
|
90
|
+
* * Positive distance means the center is to the left of the curve at fraction.
|
|
91
|
+
* * Negative distance means the center is to the right of the curve at fraction.
|
|
92
|
+
* * Zero distance means curve is linear at fraction.
|
|
87
93
|
*/
|
|
88
94
|
fractionToSignedXYRadiusOfCurvature(fraction) {
|
|
89
95
|
const plane = this.fractionToPointAnd2Derivatives(fraction);
|
|
@@ -108,7 +114,7 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
108
114
|
return ray.fractionToPoint(distance);
|
|
109
115
|
}
|
|
110
116
|
/**
|
|
111
|
-
*
|
|
117
|
+
* Return the length of the curve.
|
|
112
118
|
* * Curve length is always positive.
|
|
113
119
|
*/
|
|
114
120
|
curveLength() {
|
|
@@ -117,9 +123,9 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
117
123
|
return context.getSum();
|
|
118
124
|
}
|
|
119
125
|
/**
|
|
120
|
-
* Returns a (high accuracy) length of the curve between fractional positions
|
|
126
|
+
* Returns a (high accuracy) length of the curve between fractional positions.
|
|
121
127
|
* * Curve length is always positive.
|
|
122
|
-
* * Default implementation applies a generic
|
|
128
|
+
* * Default implementation applies a generic Gaussian integration.
|
|
123
129
|
* * Most curve classes (certainly LineSegment, LineString, Arc) are expected to provide efficient implementations.
|
|
124
130
|
*/
|
|
125
131
|
curveLengthBetweenFractions(fraction0, fraction1) {
|
|
@@ -127,7 +133,7 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
127
133
|
return 0.0;
|
|
128
134
|
const scale = this.getFractionToDistanceScale();
|
|
129
135
|
if (scale !== undefined) {
|
|
130
|
-
// We are in luck! simple proportions determine it all
|
|
136
|
+
// We are in luck! simple proportions determine it all !!!
|
|
131
137
|
// (for example, a LineSegment3d or a circular arc)
|
|
132
138
|
const totalLength = this.curveLength();
|
|
133
139
|
return Math.abs((fraction1 - fraction0) * totalLength);
|
|
@@ -138,14 +144,14 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
138
144
|
}
|
|
139
145
|
/**
|
|
140
146
|
* Returns a (high accuracy) range of the curve between fractional positions
|
|
141
|
-
* * Default implementation returns
|
|
147
|
+
* * Default implementation returns the range of the curve from clonePartialCurve.
|
|
142
148
|
*/
|
|
143
149
|
rangeBetweenFractions(fraction0, fraction1, transform) {
|
|
144
150
|
return this.rangeBetweenFractionsByClone(fraction0, fraction1, transform);
|
|
145
151
|
}
|
|
146
152
|
/**
|
|
147
153
|
* Returns a (high accuracy) range of the curve between fractional positions
|
|
148
|
-
* * Default implementation returns
|
|
154
|
+
* * Default implementation returns the range of the curve from clonePartialCurve
|
|
149
155
|
*/
|
|
150
156
|
rangeBetweenFractionsByClone(fraction0, fraction1, transform) {
|
|
151
157
|
if (fraction0 === fraction1)
|
|
@@ -159,12 +165,17 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
159
165
|
* Returns an approximate range based on a fixed number of evaluations
|
|
160
166
|
* * Default implementation returns a range determined by evaluating a specified number of points on the curve.
|
|
161
167
|
* * Optional evaluate again at interval midpoints and extrapolate any increase
|
|
162
|
-
* * For a smooth curve, Richardson extrapolation suggests each subdivision moves 3/4 of the way to final. So
|
|
163
|
-
*
|
|
168
|
+
* * For a smooth curve, Richardson extrapolation suggests each subdivision moves 3/4 of the way to final. So
|
|
169
|
+
* extrapolationFactor of 1/3 gets speculatively moves closer to the tight range, and larger multipliers increase
|
|
170
|
+
* confidence in being safely larger.
|
|
171
|
+
* * This function is faster version to compute the range of a portion of a curve (because some curves can be
|
|
172
|
+
* expensive to compute the partial curve and/or to compute the partial curve's range.
|
|
164
173
|
* @param fraction0 start fraction for evaluation
|
|
165
174
|
* @param fraction1 end fraction for evaluation
|
|
166
175
|
* @param count number of points to evaluate
|
|
167
|
-
* @param
|
|
176
|
+
* @param transform optional transform to be applied to the curve
|
|
177
|
+
* @param extrapolationFactor if positive, evaluate again at interval midpoints and apply this fraction multiplier
|
|
178
|
+
* to any increase in size.
|
|
168
179
|
*/
|
|
169
180
|
rangeBetweenFractionsByCount(fraction0, fraction1, count, transform, extrapolationFactor = 0.0) {
|
|
170
181
|
const range = Range3d.createNull();
|
|
@@ -189,8 +200,8 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
189
200
|
evaluateSteps(fraction0 + globalFractionStep, globalFractionStep, interiorCount);
|
|
190
201
|
}
|
|
191
202
|
if (extrapolationFactor > 0.0) {
|
|
192
|
-
// Evaluate at midpoints. Where this makes the range larger, apply extrapolationFactor to move it to safer
|
|
193
|
-
// same interior step, but shift to interval midpoints
|
|
203
|
+
// Evaluate at midpoints. Where this makes the range larger, apply extrapolationFactor to move it to safer
|
|
204
|
+
// excess value. same interior step, but shift to interval midpoints.
|
|
194
205
|
const baseRange = range.clone();
|
|
195
206
|
const interiorCount1 = interiorCount + 1;
|
|
196
207
|
const localFraction0 = 0.5 / interiorCount1; // we only evaluate at new midpoints.
|
|
@@ -201,13 +212,13 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
201
212
|
return range;
|
|
202
213
|
}
|
|
203
214
|
/**
|
|
204
|
-
*
|
|
205
|
-
* * Run an integration (with a default gaussian quadrature) with a fixed fractional step
|
|
215
|
+
* Run an integration (with a default Gaussian quadrature) with a fixed fractional step
|
|
206
216
|
* * This is typically called by specific curve type implementations of curveLengthBetweenFractions.
|
|
207
|
-
*
|
|
217
|
+
* * For example, in Arc3d implementation of curveLengthBetweenFractions:
|
|
208
218
|
* * If the Arc3d is true circular, it the arc is true circular, use the direct `arcLength = radius * sweepRadians`
|
|
209
|
-
* * If the Arc3d is not true circular, call this method with an interval count appropriate to eccentricity and
|
|
210
|
-
*
|
|
219
|
+
* * If the Arc3d is not true circular, call this method with an interval count appropriate to eccentricity and
|
|
220
|
+
* sweepRadians.
|
|
221
|
+
* @returns Returns the curve length via an integral estimated by numerical quadrature between the fractional positions.
|
|
211
222
|
* @param fraction0 start fraction for integration
|
|
212
223
|
* @param fraction1 end fraction for integration
|
|
213
224
|
* @param numInterval number of quadrature intervals
|
|
@@ -223,33 +234,39 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
223
234
|
return Math.abs(context.getSum());
|
|
224
235
|
}
|
|
225
236
|
/**
|
|
226
|
-
*
|
|
227
|
-
* * (Attempt to) find a position on the curve at a signed distance from start fraction.
|
|
237
|
+
* (Attempt to) find a position on the curve at a signed distance from start fraction.
|
|
228
238
|
* * Return the position as a CurveLocationDetail.
|
|
229
239
|
* * In the `CurveLocationDetail`, record:
|
|
230
240
|
* * `fraction` = fractional position
|
|
231
241
|
* * `point` = coordinates of the point
|
|
232
|
-
* * `a` = (signed!) distance moved. If `allowExtension` is false and the move reached the start or end of the
|
|
242
|
+
* * `a` = (signed!) distance moved. If `allowExtension` is false and the move reached the start or end of the
|
|
243
|
+
* curve, this distance is smaller than the requested signedDistance.
|
|
233
244
|
* * `curveSearchStatus` indicates one of:
|
|
234
245
|
* * `error` (unusual) computation failed not supported for this curve.
|
|
235
246
|
* * `success` full movement completed
|
|
236
247
|
* * `stoppedAtBoundary` partial movement completed. This can be due to either
|
|
237
248
|
* * `allowExtension` parameter sent as `false`
|
|
238
249
|
* * the curve type (e.g. bspline) does not support extended range.
|
|
239
|
-
* * if `allowExtension` is true, movement may still end at the startPoint or end point for curves that do not support
|
|
240
|
-
*
|
|
250
|
+
* * if `allowExtension` is true, movement may still end at the startPoint or end point for curves that do not support
|
|
251
|
+
* extended geometry (specifically bsplines)
|
|
252
|
+
* * if the curve returns a value (i.e. not `undefined`) for `curve.getFractionToDistanceScale()`, the base class
|
|
253
|
+
* carries out the computation
|
|
241
254
|
* and returns a final location.
|
|
242
255
|
* * LineSegment3d relies on this.
|
|
243
|
-
* * If the curve does not implement the computation or the curve has zero length, the returned `CurveLocationDetail`
|
|
256
|
+
* * If the curve does not implement the computation or the curve has zero length, the returned `CurveLocationDetail`
|
|
257
|
+
* has
|
|
244
258
|
* * `fraction` = the value of `startFraction`
|
|
245
259
|
* * `point` = result of `curve.fractionToPoint(startFraction)`
|
|
246
260
|
* * `a` = 0
|
|
247
261
|
* * `curveStartState` = `CurveSearchStatus.error`
|
|
248
262
|
* @param startFraction fractional position where the move starts
|
|
249
263
|
* @param signedDistance distance to move. Negative distance is backwards in the fraction space
|
|
250
|
-
* @param allowExtension if true,
|
|
264
|
+
* @param allowExtension if true, allow the move to go beyond the startPoint or endpoint of the curve. If false,
|
|
265
|
+
* do not allow movement beyond the startPoint or endpoint
|
|
251
266
|
* @param result optional result.
|
|
252
|
-
* @returns A CurveLocationDetail annotated as above.
|
|
267
|
+
* @returns A CurveLocationDetail annotated as above. Note that if the curve does not support the calculation, there is
|
|
268
|
+
* still a result which contains the point at the input startFraction, with failure indicated in the `curveStartState`
|
|
269
|
+
* member
|
|
253
270
|
*/
|
|
254
271
|
moveSignedDistanceFromFraction(startFraction, signedDistance, allowExtension, result) {
|
|
255
272
|
const scale = this.getFractionToDistanceScale();
|
|
@@ -269,13 +286,14 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
269
286
|
* Generic algorithm to search for point at signed distance from a fractional startPoint.
|
|
270
287
|
* * This will work for well for smooth curves.
|
|
271
288
|
* * Curves with tangent or other low-order-derivative discontinuities may need to implement specialized algorithms.
|
|
272
|
-
* * We need to find an endFraction which is the end-of-interval (usually upper) limit of integration of the tangent
|
|
289
|
+
* * We need to find an endFraction which is the end-of-interval (usually upper) limit of integration of the tangent
|
|
290
|
+
* magnitude from startFraction to endFraction
|
|
273
291
|
* * That integral is a function of endFraction.
|
|
274
292
|
* * The derivative of that integral with respect to end fraction is the tangent magnitude at end fraction.
|
|
275
293
|
* * Use that function and (easily evaluated!) derivative for a Newton iteration
|
|
276
|
-
* * TO ALL WHO HAVE FUZZY MEMORIES OF CALCULUS CLASS: "The derivative of the integral wrt upper limit is the value
|
|
277
|
-
*
|
|
278
|
-
*
|
|
294
|
+
* * TO ALL WHO HAVE FUZZY MEMORIES OF CALCULUS CLASS: "The derivative of the integral wrt upper limit is the value
|
|
295
|
+
* of the integrand there" is the fundamental theorem of integral calculus !!! The fundamental theorem is not just
|
|
296
|
+
* an abstraction !!! It is being used here in its barest possible form !!!
|
|
279
297
|
* * See https://en.wikipedia.org/wiki/Fundamental_theorem_of_calculus
|
|
280
298
|
* @param startFraction
|
|
281
299
|
* @param signedDistance
|
|
@@ -356,20 +374,25 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
356
374
|
return result;
|
|
357
375
|
}
|
|
358
376
|
/**
|
|
359
|
-
* * Returns true if the curve
|
|
377
|
+
* * Returns true if the curve can be easily extended past its start/end point (i.e., beyond the usual
|
|
378
|
+
* fraction space [0,1]). Otherwise, returns false.
|
|
360
379
|
* * Base class default implementation returns false.
|
|
361
|
-
* * These
|
|
380
|
+
* * These classes (and perhaps others in the future) will return true:
|
|
362
381
|
* * LineSegment3d
|
|
363
382
|
* * LineString3d
|
|
364
383
|
* * Arc3d
|
|
365
384
|
*/
|
|
366
|
-
get isExtensibleFractionSpace() {
|
|
367
|
-
|
|
368
|
-
|
|
385
|
+
get isExtensibleFractionSpace() {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Search for a point on the curve that is closest to the spacePoint.
|
|
369
390
|
* * If the space point is exactly on the curve, this is the reverse of fractionToPoint.
|
|
370
|
-
* * Since CurvePrimitive should always have start and end available as candidate points, this method should always
|
|
391
|
+
* * Since CurvePrimitive should always have start and end available as candidate points, this method should always
|
|
392
|
+
* succeed
|
|
371
393
|
* @param spacePoint point in space
|
|
372
|
-
* @param extend true to extend the curve (if possible), false for no extend, single CurveExtendOptions (for both
|
|
394
|
+
* @param extend true to extend the curve (if possible), false for no extend, single CurveExtendOptions (for both
|
|
395
|
+
* directions), or array of distinct CurveExtendOptions for start and end.
|
|
373
396
|
* @returns Returns a CurveLocationDetail structure that holds the details of the close point.
|
|
374
397
|
*/
|
|
375
398
|
closestPoint(spacePoint, extend) {
|
|
@@ -380,14 +403,16 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
380
403
|
/**
|
|
381
404
|
* Find intervals of this curvePrimitive that are interior to a clipper
|
|
382
405
|
* @param clipper clip structure (e.g. clip planes)
|
|
383
|
-
* @param announce (optional) function to be called announcing fractional intervals
|
|
406
|
+
* @param announce (optional) function to be called announcing fractional intervals
|
|
407
|
+
* `announce(fraction0, fraction1, curvePrimitive)`
|
|
384
408
|
* @returns true if any "in" segments are announced.
|
|
385
409
|
*/
|
|
386
410
|
announceClipIntervals(_clipper, _announce) {
|
|
387
411
|
// DEFAULT IMPLEMENTATION -- no interior parts
|
|
388
412
|
return false;
|
|
389
413
|
}
|
|
390
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* Return (if possible) a curve primitive which is a portion of this curve.
|
|
391
416
|
* @param _fractionA [in] start fraction
|
|
392
417
|
* @param _fractionB [in] end fraction
|
|
393
418
|
*/
|
|
@@ -395,8 +420,8 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
395
420
|
return undefined;
|
|
396
421
|
}
|
|
397
422
|
/**
|
|
398
|
-
*
|
|
399
|
-
*
|
|
423
|
+
* If the curve primitive has distance-along-curve strictly proportional to curve fraction, return the scale factor.
|
|
424
|
+
* If distance-along-the-curve is not proportional, return undefined.
|
|
400
425
|
* * When defined, the scale factor is always the length of the curve.
|
|
401
426
|
* * This scale factor is typically available for these curve types:
|
|
402
427
|
* * * All `LineSegment3d`
|
|
@@ -407,12 +432,14 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
407
432
|
* * * bspline and bezier curves
|
|
408
433
|
* @returns scale factor or undefined
|
|
409
434
|
*/
|
|
410
|
-
getFractionToDistanceScale() {
|
|
435
|
+
getFractionToDistanceScale() {
|
|
436
|
+
return undefined;
|
|
437
|
+
}
|
|
411
438
|
/**
|
|
412
|
-
* Compute intersections with a plane.
|
|
439
|
+
* Compute intersections of the curve with a plane.
|
|
413
440
|
* * The intersections are appended to the result array.
|
|
414
|
-
* * The base class implementation emits strokes to an AppendPlaneIntersectionStrokeHandler object, which uses a
|
|
415
|
-
*
|
|
441
|
+
* * The base class implementation emits strokes to an AppendPlaneIntersectionStrokeHandler object, which uses a
|
|
442
|
+
* Newton iteration to get high-accuracy intersection points within strokes.
|
|
416
443
|
* * Derived classes should override this default implementation if there are easy analytic solutions.
|
|
417
444
|
* * Derived classes are free to implement extended intersections (e.g. arc!!!)
|
|
418
445
|
* @param plane The plane to be intersected.
|
|
@@ -429,8 +456,8 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
429
456
|
* Examine contents of an array of CurveLocationDetail.
|
|
430
457
|
* Filter the intersections according to the parameters.
|
|
431
458
|
* @param allowExtend if false, remove points on the extension.
|
|
432
|
-
* @param applySnappedCoordinates if true, change the stored fractions and coordinates to exact end values.
|
|
433
|
-
*
|
|
459
|
+
* @param applySnappedCoordinates if true, change the stored fractions and coordinates to exact end values.
|
|
460
|
+
* Otherwise use the exact values only for purpose of updating the curveIntervalRole.
|
|
434
461
|
* @param startEndFractionTolerance if nonzero, adjust fraction to 0 or 1 with this tolerance.
|
|
435
462
|
* @param startEndXYZTolerance if nonzero, adjust to endpoint with this tolerance.
|
|
436
463
|
* @internal
|
|
@@ -493,12 +520,16 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
493
520
|
if (acceptIndex < n0)
|
|
494
521
|
details.length = acceptIndex;
|
|
495
522
|
}
|
|
496
|
-
/**
|
|
497
|
-
startPoint(result) {
|
|
498
|
-
|
|
499
|
-
|
|
523
|
+
/** Return the startPoint of the primitive. The default implementation returns fractionToPoint(0.0) */
|
|
524
|
+
startPoint(result) {
|
|
525
|
+
return this.fractionToPoint(0.0, result);
|
|
526
|
+
}
|
|
527
|
+
/** Return the end point of the primitive. The default implementation returns fractionToPoint(1.0) */
|
|
528
|
+
endPoint(result) {
|
|
529
|
+
return this.fractionToPoint(1.0, result);
|
|
530
|
+
}
|
|
500
531
|
/**
|
|
501
|
-
*
|
|
532
|
+
* Attach StrokeCountMap structure to this primitive (and recursively to any children)
|
|
502
533
|
* * Base class implementation (here) gets the simple count from computeStrokeCountForOptions and attaches it.
|
|
503
534
|
* * LineString3d, arc3d, BezierCurve3d, BezierCurve3dH accept that default.
|
|
504
535
|
* * Subdivided primitives (linestring, bspline curve) implement themselves and attach a StrokeCountMap containing the
|
|
@@ -506,7 +537,8 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
506
537
|
* * For CurvePrimitiveWithDistanceIndex, the top level gets (only) a total count, and each child gets
|
|
507
538
|
* its own StrokeCountMap with appropriate structure.
|
|
508
539
|
* @param options StrokeOptions that determine count
|
|
509
|
-
* @param parentStrokeMap optional map from parent. Its count, curveLength, and a1 values are increased with count
|
|
540
|
+
* @param parentStrokeMap optional map from parent. Its count, curveLength, and a1 values are increased with count
|
|
541
|
+
* and distance from this primitive.
|
|
510
542
|
* @return sum of `a0+this.curveLength()`, for use as `a0` of successor in chain.
|
|
511
543
|
*/
|
|
512
544
|
computeAndAttachRecursiveStrokeCounts(options, parentMap) {
|
|
@@ -515,8 +547,9 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
515
547
|
CurvePrimitive.installStrokeCountMap(this, StrokeCountMap.createWithCurvePrimitive(this, n, a, 0, a), parentMap);
|
|
516
548
|
}
|
|
517
549
|
/**
|
|
518
|
-
*
|
|
519
|
-
* * Base class implementation (here) gets the simple count from computeStrokeCountForOptions and strokes at
|
|
550
|
+
* Evaluate strokes at fractions indicated in a StrokeCountMap.
|
|
551
|
+
* * Base class implementation (here) gets the simple count from computeStrokeCountForOptions and strokes at
|
|
552
|
+
* uniform fractions.
|
|
520
553
|
* * LineString3d, arc3d, BezierCurve3d, BezierCurve3dH accept that default.
|
|
521
554
|
* * Subdivided primitives (linestring, bspline curve) implement themselves and evaluate within components.
|
|
522
555
|
* * CurvePrimitiveWithDistanceIndex recurses to its children.
|
|
@@ -536,7 +569,7 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
536
569
|
return linestring.numPoints() - numPoint0;
|
|
537
570
|
}
|
|
538
571
|
/**
|
|
539
|
-
*
|
|
572
|
+
* Final install step to save curveMap in curve. If parentMap is given, update its length, count, and a1 fields
|
|
540
573
|
* @param curve curve to receive the annotation
|
|
541
574
|
* @param map
|
|
542
575
|
* @param parentMap
|
|
@@ -550,8 +583,10 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
550
583
|
* Return an array containing only the curve primitives.
|
|
551
584
|
* * This DEFAULT implementation simply pushes `this` to the collectorArray.
|
|
552
585
|
* @param collectorArray array to receive primitives (pushed -- the array is not cleared)
|
|
553
|
-
* @param smallestPossiblePrimitives if true, a [[CurvePrimitiveWithDistanceIndex]] recurses on its (otherwise hidden)
|
|
554
|
-
*
|
|
586
|
+
* @param smallestPossiblePrimitives if true, a [[CurvePrimitiveWithDistanceIndex]] recurses on its (otherwise hidden)
|
|
587
|
+
* children. If false, it returns only itself.
|
|
588
|
+
* @param explodeLinestrings if true, push a [[LineSegment3d]] for each segment of a [[LineString3d]]. If false,
|
|
589
|
+
* push only the [[LineString3d]].
|
|
555
590
|
*/
|
|
556
591
|
collectCurvePrimitivesGo(collectorArray, _smallestPossiblePrimitives, _explodeLinestrings = false) {
|
|
557
592
|
collectorArray.push(this);
|
|
@@ -559,18 +594,23 @@ export class CurvePrimitive extends GeometryQuery {
|
|
|
559
594
|
/**
|
|
560
595
|
* Return an array containing only the curve primitives.
|
|
561
596
|
* * This DEFAULT implementation captures the optional collector and calls [[collectCurvePrimitivesGo]].
|
|
562
|
-
* @param collectorArray optional array to receive primitives. If present, new primitives are ADDED (without
|
|
563
|
-
*
|
|
597
|
+
* @param collectorArray optional array to receive primitives. If present, new primitives are ADDED (without
|
|
598
|
+
* clearing the array.)
|
|
599
|
+
* @param smallestPossiblePrimitives if false, CurvePrimitiveWithDistanceIndex returns only itself. If true,
|
|
600
|
+
* it recurses to its (otherwise hidden) children.
|
|
564
601
|
*/
|
|
565
602
|
collectCurvePrimitives(collectorArray, smallestPossiblePrimitives = false, explodeLinestrings = false) {
|
|
566
603
|
const results = collectorArray === undefined ? [] : collectorArray;
|
|
567
604
|
this.collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings);
|
|
568
605
|
return results;
|
|
569
606
|
}
|
|
570
|
-
/**
|
|
607
|
+
/**
|
|
608
|
+
* Project instance geometry (via dispatch) onto the line of the given ray, and return the extreme fractional
|
|
609
|
+
* parameters of projection.
|
|
571
610
|
* @param ray ray onto which the instance is projected. A `Vector3d` is treated as a `Ray3d` with zero origin.
|
|
572
611
|
* @param lowHigh optional receiver for output
|
|
573
|
-
* @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the
|
|
612
|
+
* @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the
|
|
613
|
+
* end of the ray.
|
|
574
614
|
*/
|
|
575
615
|
projectedParameterRange(_ray, _lowHigh) {
|
|
576
616
|
return undefined; // common implementation delegated to subclasses to avoid circular dependency
|