@itwin/core-geometry 5.3.0-dev.2 → 5.3.0-dev.23
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 +21 -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.js.map +1 -1
- package/lib/cjs/curve/Arc3d.d.ts +15 -1
- package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
- package/lib/cjs/curve/Arc3d.js +36 -9
- package/lib/cjs/curve/Arc3d.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/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/cjs/curve/CurveCollection.js.map +1 -1
- package/lib/cjs/curve/CurveCurve.js.map +1 -1
- package/lib/cjs/curve/CurveExtendMode.js.map +1 -1
- package/lib/cjs/curve/CurveFactory.d.ts +25 -8
- package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
- package/lib/cjs/curve/CurveFactory.js +51 -55
- package/lib/cjs/curve/CurveFactory.js.map +1 -1
- package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
- package/lib/cjs/curve/CurveOps.d.ts +2 -5
- package/lib/cjs/curve/CurveOps.d.ts.map +1 -1
- package/lib/cjs/curve/CurveOps.js +2 -5
- package/lib/cjs/curve/CurveOps.js.map +1 -1
- package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
- package/lib/cjs/curve/CurveProcessor.js.map +1 -1
- package/lib/cjs/curve/CurveTypes.js.map +1 -1
- package/lib/cjs/curve/CurveWireMomentsXYZ.js.map +1 -1
- package/lib/cjs/curve/GeometryQuery.js.map +1 -1
- package/lib/cjs/curve/LineSegment3d.js.map +1 -1
- package/lib/cjs/curve/LineString3d.js.map +1 -1
- package/lib/cjs/curve/Loop.js.map +1 -1
- package/lib/cjs/curve/OffsetOptions.js.map +1 -1
- package/lib/cjs/curve/ParityRegion.js.map +1 -1
- package/lib/cjs/curve/Path.js.map +1 -1
- package/lib/cjs/curve/PointString3d.js.map +1 -1
- 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.d.ts +50 -15
- package/lib/cjs/curve/Query/PlanarSubdivision.d.ts.map +1 -1
- package/lib/cjs/curve/Query/PlanarSubdivision.js +102 -84
- 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.js.map +1 -1
- package/lib/cjs/curve/RegionMomentsXY.js.map +1 -1
- package/lib/cjs/curve/RegionOps.d.ts +44 -25
- package/lib/cjs/curve/RegionOps.d.ts.map +1 -1
- package/lib/cjs/curve/RegionOps.js +74 -39
- package/lib/cjs/curve/RegionOps.js.map +1 -1
- package/lib/cjs/curve/RegionOpsClassificationSweeps.d.ts.map +1 -1
- package/lib/cjs/curve/RegionOpsClassificationSweeps.js +8 -8
- package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -1
- package/lib/cjs/curve/StrokeOptions.js.map +1 -1
- package/lib/cjs/curve/UnionRegion.js.map +1 -1
- package/lib/cjs/curve/internalContexts/AnnounceTangentStrokeHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
- package/lib/cjs/curve/internalContexts/ChainCollectorContext.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/CurveCurveCloseApproachXY.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.d.ts +1 -0
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.d.ts.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js +102 -92
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
- package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.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/EllipticalArcApproximationContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
- 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.js.map +1 -1
- package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
- package/lib/cjs/curve/internalContexts/TransferWithSplitArcs.js.map +1 -1
- package/lib/cjs/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
- package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.d.ts +10 -13
- package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js +23 -22
- package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/ClothoidSeries.d.ts +10 -6
- package/lib/cjs/curve/spiral/ClothoidSeries.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/ClothoidSeries.js +36 -19
- package/lib/cjs/curve/spiral/ClothoidSeries.js.map +1 -1
- package/lib/cjs/curve/spiral/CubicEvaluator.d.ts +7 -6
- package/lib/cjs/curve/spiral/CubicEvaluator.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/CubicEvaluator.js +29 -14
- package/lib/cjs/curve/spiral/CubicEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/CzechSpiralEvaluator.d.ts +34 -44
- package/lib/cjs/curve/spiral/CzechSpiralEvaluator.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js +47 -53
- package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.d.ts +2 -2
- package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js +17 -7
- package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/DirectSpiral3d.d.ts +112 -104
- package/lib/cjs/curve/spiral/DirectSpiral3d.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/DirectSpiral3d.js +143 -117
- package/lib/cjs/curve/spiral/DirectSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.d.ts +71 -53
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.js +99 -66
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.d.ts +8 -12
- package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js +11 -13
- package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/NormalizedTransition.d.ts +36 -29
- package/lib/cjs/curve/spiral/NormalizedTransition.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/NormalizedTransition.js +62 -40
- package/lib/cjs/curve/spiral/NormalizedTransition.js.map +1 -1
- package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.d.ts +13 -18
- package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js +21 -24
- package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
- package/lib/cjs/curve/spiral/TransitionConditionalProperties.d.ts +41 -27
- package/lib/cjs/curve/spiral/TransitionConditionalProperties.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/TransitionConditionalProperties.js +50 -33
- package/lib/cjs/curve/spiral/TransitionConditionalProperties.js.map +1 -1
- package/lib/cjs/curve/spiral/TransitionSpiral3d.d.ts +45 -34
- package/lib/cjs/curve/spiral/TransitionSpiral3d.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/TransitionSpiral3d.js +56 -38
- package/lib/cjs/curve/spiral/TransitionSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/XYCurveEvaluator.d.ts +27 -21
- package/lib/cjs/curve/spiral/XYCurveEvaluator.d.ts.map +1 -1
- package/lib/cjs/curve/spiral/XYCurveEvaluator.js +23 -18
- 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.d.ts +98 -99
- package/lib/cjs/geometry3d/GrowableXYArray.d.ts.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYArray.js +123 -111
- package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYZArray.d.ts +137 -143
- package/lib/cjs/geometry3d/GrowableXYZArray.d.ts.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYZArray.js +167 -161
- package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedCollectionInterval.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.d.ts +51 -34
- package/lib/cjs/geometry3d/IndexedXYCollection.d.ts.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.js +16 -6
- package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts +87 -93
- package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYZCollection.js +41 -38
- package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
- package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
- 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.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.d.ts +2 -2
- package/lib/cjs/geometry3d/PolylineOps.js +2 -2
- package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
- package/lib/cjs/geometry3d/Range.js.map +1 -1
- package/lib/cjs/geometry3d/Ray2d.js.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.d.ts.map +1 -1
- package/lib/cjs/numerics/ClusterableArray.js +2 -2
- 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/SmallSystem.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/IndexedPolyfaceWalker.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/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/MinimumValueTester.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/RangeTreeNode.js.map +1 -1
- package/lib/cjs/polyface/RangeTree/RangeTreeSearchHandlers.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/serialization/SerializationHelpers.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.d.ts +15 -7
- package/lib/cjs/topology/Merging.d.ts.map +1 -1
- package/lib/cjs/topology/Merging.js +15 -10
- 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/Voronoi.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.js.map +1 -1
- package/lib/esm/curve/Arc3d.d.ts +15 -1
- package/lib/esm/curve/Arc3d.d.ts.map +1 -1
- package/lib/esm/curve/Arc3d.js +36 -9
- package/lib/esm/curve/Arc3d.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/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/esm/curve/CurveCollection.js.map +1 -1
- package/lib/esm/curve/CurveCurve.js.map +1 -1
- package/lib/esm/curve/CurveExtendMode.js.map +1 -1
- package/lib/esm/curve/CurveFactory.d.ts +25 -8
- package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
- package/lib/esm/curve/CurveFactory.js +51 -55
- package/lib/esm/curve/CurveFactory.js.map +1 -1
- package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
- package/lib/esm/curve/CurveOps.d.ts +2 -5
- package/lib/esm/curve/CurveOps.d.ts.map +1 -1
- package/lib/esm/curve/CurveOps.js +2 -5
- package/lib/esm/curve/CurveOps.js.map +1 -1
- package/lib/esm/curve/CurvePrimitive.js.map +1 -1
- package/lib/esm/curve/CurveProcessor.js.map +1 -1
- package/lib/esm/curve/CurveTypes.js.map +1 -1
- package/lib/esm/curve/CurveWireMomentsXYZ.js.map +1 -1
- package/lib/esm/curve/GeometryQuery.js.map +1 -1
- package/lib/esm/curve/LineSegment3d.js.map +1 -1
- package/lib/esm/curve/LineString3d.js.map +1 -1
- package/lib/esm/curve/Loop.js.map +1 -1
- package/lib/esm/curve/OffsetOptions.js.map +1 -1
- package/lib/esm/curve/ParityRegion.js.map +1 -1
- package/lib/esm/curve/Path.js.map +1 -1
- package/lib/esm/curve/PointString3d.js.map +1 -1
- 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.d.ts +50 -15
- package/lib/esm/curve/Query/PlanarSubdivision.d.ts.map +1 -1
- package/lib/esm/curve/Query/PlanarSubdivision.js +102 -84
- 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.js.map +1 -1
- package/lib/esm/curve/RegionMomentsXY.js.map +1 -1
- package/lib/esm/curve/RegionOps.d.ts +44 -25
- package/lib/esm/curve/RegionOps.d.ts.map +1 -1
- package/lib/esm/curve/RegionOps.js +72 -37
- package/lib/esm/curve/RegionOps.js.map +1 -1
- package/lib/esm/curve/RegionOpsClassificationSweeps.d.ts.map +1 -1
- package/lib/esm/curve/RegionOpsClassificationSweeps.js +8 -8
- package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -1
- package/lib/esm/curve/StrokeOptions.js.map +1 -1
- package/lib/esm/curve/UnionRegion.js.map +1 -1
- package/lib/esm/curve/internalContexts/AnnounceTangentStrokeHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
- package/lib/esm/curve/internalContexts/ChainCollectorContext.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/CurveCurveCloseApproachXY.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.d.ts +1 -0
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.d.ts.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js +102 -92
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
- package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.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/EllipticalArcApproximationContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
- 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.js.map +1 -1
- package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
- package/lib/esm/curve/internalContexts/TransferWithSplitArcs.js.map +1 -1
- package/lib/esm/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.d.ts +10 -13
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.d.ts.map +1 -1
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js +23 -22
- package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/ClothoidSeries.d.ts +10 -6
- package/lib/esm/curve/spiral/ClothoidSeries.d.ts.map +1 -1
- package/lib/esm/curve/spiral/ClothoidSeries.js +36 -19
- package/lib/esm/curve/spiral/ClothoidSeries.js.map +1 -1
- package/lib/esm/curve/spiral/CubicEvaluator.d.ts +7 -6
- package/lib/esm/curve/spiral/CubicEvaluator.d.ts.map +1 -1
- package/lib/esm/curve/spiral/CubicEvaluator.js +29 -14
- package/lib/esm/curve/spiral/CubicEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.d.ts +34 -44
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.d.ts.map +1 -1
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.js +47 -53
- package/lib/esm/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.d.ts +2 -2
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.d.ts.map +1 -1
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js +17 -7
- package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/DirectSpiral3d.d.ts +112 -104
- package/lib/esm/curve/spiral/DirectSpiral3d.d.ts.map +1 -1
- package/lib/esm/curve/spiral/DirectSpiral3d.js +143 -117
- package/lib/esm/curve/spiral/DirectSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/IntegratedSpiral3d.d.ts +71 -53
- package/lib/esm/curve/spiral/IntegratedSpiral3d.d.ts.map +1 -1
- package/lib/esm/curve/spiral/IntegratedSpiral3d.js +99 -66
- package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.d.ts +8 -12
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.d.ts.map +1 -1
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js +11 -13
- package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/NormalizedTransition.d.ts +36 -29
- package/lib/esm/curve/spiral/NormalizedTransition.d.ts.map +1 -1
- package/lib/esm/curve/spiral/NormalizedTransition.js +62 -40
- package/lib/esm/curve/spiral/NormalizedTransition.js.map +1 -1
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.d.ts +13 -18
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.d.ts.map +1 -1
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js +21 -24
- package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
- package/lib/esm/curve/spiral/TransitionConditionalProperties.d.ts +41 -27
- package/lib/esm/curve/spiral/TransitionConditionalProperties.d.ts.map +1 -1
- package/lib/esm/curve/spiral/TransitionConditionalProperties.js +50 -33
- package/lib/esm/curve/spiral/TransitionConditionalProperties.js.map +1 -1
- package/lib/esm/curve/spiral/TransitionSpiral3d.d.ts +45 -34
- package/lib/esm/curve/spiral/TransitionSpiral3d.d.ts.map +1 -1
- package/lib/esm/curve/spiral/TransitionSpiral3d.js +56 -38
- package/lib/esm/curve/spiral/TransitionSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/XYCurveEvaluator.d.ts +27 -21
- package/lib/esm/curve/spiral/XYCurveEvaluator.d.ts.map +1 -1
- package/lib/esm/curve/spiral/XYCurveEvaluator.js +23 -18
- 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.d.ts +98 -99
- package/lib/esm/geometry3d/GrowableXYArray.d.ts.map +1 -1
- package/lib/esm/geometry3d/GrowableXYArray.js +124 -112
- package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -1
- package/lib/esm/geometry3d/GrowableXYZArray.d.ts +137 -143
- package/lib/esm/geometry3d/GrowableXYZArray.d.ts.map +1 -1
- package/lib/esm/geometry3d/GrowableXYZArray.js +167 -161
- package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -1
- package/lib/esm/geometry3d/IndexedCollectionInterval.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts +51 -34
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.js +14 -5
- package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYZCollection.d.ts +87 -93
- package/lib/esm/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
- package/lib/esm/geometry3d/IndexedXYZCollection.js +41 -38
- package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
- package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
- 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.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.d.ts +2 -2
- package/lib/esm/geometry3d/PolylineOps.js +2 -2
- package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
- package/lib/esm/geometry3d/Range.js.map +1 -1
- package/lib/esm/geometry3d/Ray2d.js.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.d.ts.map +1 -1
- package/lib/esm/numerics/ClusterableArray.js +2 -2
- 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/SmallSystem.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/IndexedPolyfaceWalker.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/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
- package/lib/esm/polyface/RangeTree/MinimumValueTester.js.map +1 -1
- package/lib/esm/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
- package/lib/esm/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
- package/lib/esm/polyface/RangeTree/RangeTreeNode.js.map +1 -1
- package/lib/esm/polyface/RangeTree/RangeTreeSearchHandlers.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/serialization/SerializationHelpers.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.d.ts +15 -7
- package/lib/esm/topology/Merging.d.ts.map +1 -1
- package/lib/esm/topology/Merging.js +15 -10
- 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/Voronoi.js.map +1 -1
- package/lib/esm/topology/XYParitySearchContext.js.map +1 -1
- package/package.json +3 -3
|
@@ -7,45 +7,41 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Geometry } from "../Geometry";
|
|
9
9
|
import { GrowableXYZArray } from "./GrowableXYZArray";
|
|
10
|
-
import { IndexedXYCollection } from "./IndexedXYCollection";
|
|
10
|
+
import { IndexedReadWriteXYCollection, IndexedXYCollection } from "./IndexedXYCollection";
|
|
11
11
|
import { Point2d, Vector2d } from "./Point2dVector2d";
|
|
12
12
|
import { Point3d } from "./Point3dVector3d";
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* `GrowableXYArray` manages a (possibly growing) Float64Array to pack xy coordinates.
|
|
14
15
|
* @public
|
|
15
16
|
*/
|
|
16
|
-
export class GrowableXYArray extends
|
|
17
|
-
/**
|
|
18
|
-
* array of packed xy xy xy components
|
|
19
|
-
*/
|
|
17
|
+
export class GrowableXYArray extends IndexedReadWriteXYCollection {
|
|
18
|
+
/** Array of packed xy xy xy components. */
|
|
20
19
|
_data;
|
|
21
|
-
/**
|
|
22
|
-
* Number of xy tuples (not floats) in the array
|
|
23
|
-
*/
|
|
20
|
+
/** Number of xy tuples (not floats) in the array. */
|
|
24
21
|
_xyInUse;
|
|
25
|
-
/**
|
|
26
|
-
* capacity in xy tuples. (not floats)
|
|
27
|
-
*/
|
|
22
|
+
/** Capacity in xy tuples. (not floats). */
|
|
28
23
|
_xyCapacity;
|
|
29
|
-
/**
|
|
30
|
-
* multiplier used by ensureCapacity to expand requested reallocation size
|
|
31
|
-
*/
|
|
24
|
+
/** Multiplier used by ensureCapacity to expand requested reallocation size. */
|
|
32
25
|
_growthFactor;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param
|
|
26
|
+
/**
|
|
27
|
+
* Construct a new GrowablePoint2d array.
|
|
28
|
+
* @param numPoints initial capacity in xy tuples (default 8).
|
|
29
|
+
* @param growthFactor used by ensureCapacity to expand requested reallocation size (default 1.5).
|
|
30
|
+
* @param data optional pre-existing Float64Array to use as the backing memory. If supplied, numPoints is ignored.
|
|
36
31
|
*/
|
|
37
|
-
constructor(numPoints = 8, growthFactor) {
|
|
32
|
+
constructor(numPoints = 8, growthFactor, data) {
|
|
38
33
|
super();
|
|
39
|
-
this._data = new Float64Array(numPoints * 2); // 2 values per point
|
|
34
|
+
this._data = data || new Float64Array(numPoints * 2); // 2 values per point
|
|
40
35
|
this._xyInUse = 0;
|
|
41
|
-
this._xyCapacity = numPoints;
|
|
36
|
+
this._xyCapacity = data ? data.length / 2 : numPoints;
|
|
42
37
|
this._growthFactor = (undefined !== growthFactor && growthFactor >= 1.0) ? growthFactor : 1.5;
|
|
43
38
|
}
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @param
|
|
47
|
-
* @param
|
|
48
|
-
* @
|
|
39
|
+
/**
|
|
40
|
+
* Copy xy points from source array. Does not reallocate or change active point count.
|
|
41
|
+
* @param source array to copy from.
|
|
42
|
+
* @param sourceCount copy the first sourceCount points; all points if undefined.
|
|
43
|
+
* @param destOffset copy to instance array starting at this point index; zero if undefined.
|
|
44
|
+
* @return count and offset of points copied.
|
|
49
45
|
*/
|
|
50
46
|
copyData(source, sourceCount, destOffset) {
|
|
51
47
|
// validate inputs and convert from points to entries
|
|
@@ -74,30 +70,45 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
74
70
|
return { count: myCount / 2, offset: myOffset / 2 };
|
|
75
71
|
}
|
|
76
72
|
/** The number of points in use. When the length is increased, the array is padded with zeroes. */
|
|
77
|
-
get length() {
|
|
78
|
-
|
|
73
|
+
get length() {
|
|
74
|
+
return this._xyInUse;
|
|
75
|
+
}
|
|
76
|
+
set length(newLength) {
|
|
77
|
+
this.resize(newLength, true);
|
|
78
|
+
}
|
|
79
79
|
/** Return the number of float64 in use. */
|
|
80
|
-
get float64Length() {
|
|
81
|
-
|
|
80
|
+
get float64Length() {
|
|
81
|
+
return this._xyInUse * 2;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Return the raw packed data.
|
|
82
85
|
* * Note that the length of the returned Float64Array is a count of doubles, and includes the excess capacity
|
|
83
86
|
*/
|
|
84
|
-
float64Data() {
|
|
85
|
-
|
|
87
|
+
float64Data() {
|
|
88
|
+
return this._data;
|
|
89
|
+
}
|
|
90
|
+
/** If necessary, increase the capacity to a new pointCount. Current coordinates and point count (length) are unchanged. */
|
|
86
91
|
ensureCapacity(pointCapacity, applyGrowthFactor = true) {
|
|
87
92
|
if (pointCapacity > this._xyCapacity) {
|
|
88
93
|
if (applyGrowthFactor)
|
|
89
|
-
pointCapacity
|
|
94
|
+
pointCapacity = Math.trunc(pointCapacity * this._growthFactor);
|
|
90
95
|
const prevData = this._data;
|
|
91
|
-
this._data
|
|
96
|
+
if (this._data.buffer instanceof ArrayBuffer)
|
|
97
|
+
this._data = new Float64Array(new ArrayBuffer(pointCapacity * 2 * this._data.BYTES_PER_ELEMENT));
|
|
98
|
+
else
|
|
99
|
+
this._data = new Float64Array(new SharedArrayBuffer(pointCapacity * 2 * this._data.BYTES_PER_ELEMENT));
|
|
92
100
|
this.copyData(prevData, this._xyInUse);
|
|
93
101
|
this._xyCapacity = pointCapacity;
|
|
94
102
|
}
|
|
95
103
|
}
|
|
96
104
|
/**
|
|
97
|
-
*
|
|
98
|
-
* * If pointCount is
|
|
99
|
-
*
|
|
100
|
-
*
|
|
105
|
+
* Resize the internal storage to hold a new number of points.
|
|
106
|
+
* * If pointCount is less than current length, just reset current length to pointCount, effectively trimming active
|
|
107
|
+
* points but preserving original capacity.
|
|
108
|
+
* * If pointCount is greater than current length, reallocate to exactly pointCount, copy existing points, and
|
|
109
|
+
* optionally pad excess with zero.
|
|
110
|
+
* @param pointCount new number of active points in array.
|
|
111
|
+
* @param padWithZero when increasing point count, whether to zero out new points (default false).
|
|
101
112
|
*/
|
|
102
113
|
resize(pointCount, padWithZero) {
|
|
103
114
|
if (pointCount >= 0 && pointCount < this._xyInUse)
|
|
@@ -109,17 +120,15 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
109
120
|
this._xyInUse = pointCount;
|
|
110
121
|
}
|
|
111
122
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Make a copy of the (active) points in this array.
|
|
114
|
-
* (The clone does NOT get excess capacity)
|
|
115
|
-
*/
|
|
123
|
+
/** Make a copy of the (active) points in this array (the clone does NOT get excess capacity). */
|
|
116
124
|
clone() {
|
|
117
125
|
const newPoints = new GrowableXYArray(this.length);
|
|
118
126
|
newPoints.copyData(this._data, this.length);
|
|
119
127
|
newPoints._xyInUse = this.length;
|
|
120
128
|
return newPoints;
|
|
121
129
|
}
|
|
122
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* Create an array by copying data from various point formats.
|
|
123
132
|
* Valid inputs are:
|
|
124
133
|
* * Point2d
|
|
125
134
|
* * Point3d
|
|
@@ -129,7 +138,9 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
129
138
|
* * A GrowableXYArray
|
|
130
139
|
* * Any json object satisfying Point3d.isXAndY
|
|
131
140
|
* * A Float64Array of doubles, interpreted as xyxy
|
|
132
|
-
* * An array of any of the above
|
|
141
|
+
* * An array of any of the above.
|
|
142
|
+
* @param data source points.
|
|
143
|
+
* @param result optional pre-allocated GrowableXYArray to clear and fill.
|
|
133
144
|
*/
|
|
134
145
|
static create(data, result) {
|
|
135
146
|
if (result) {
|
|
@@ -142,23 +153,32 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
142
153
|
result.pushFrom(data);
|
|
143
154
|
return result;
|
|
144
155
|
}
|
|
145
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* Create a new GrowableXYArray capturing the provided data. The data is not copied, just referenced.
|
|
158
|
+
* @param data source data to capture.
|
|
159
|
+
* @returns a new GrowableXYArray object that references the provided data.
|
|
160
|
+
*/
|
|
161
|
+
static createCapture(data) {
|
|
162
|
+
return new GrowableXYArray(0, undefined, data);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Restructure MultiLineStringDataVariant as array of GrowableXYZArray
|
|
146
166
|
* @deprecated in 4.2.0 - will not be removed until after 2026-06-13. Moved to GrowableXYZArray class.
|
|
147
167
|
*/
|
|
148
168
|
static createArrayOfGrowableXYZArray(data) {
|
|
149
169
|
return GrowableXYZArray.createArrayOfGrowableXYZArray(data);
|
|
150
170
|
}
|
|
151
|
-
/**
|
|
171
|
+
/** Push a point to the end of the array. */
|
|
152
172
|
push(toPush) {
|
|
153
173
|
this.pushXY(toPush.x, toPush.y);
|
|
154
174
|
}
|
|
155
|
-
/**
|
|
175
|
+
/** Push all points of an array. */
|
|
156
176
|
pushAll(points) {
|
|
157
177
|
this.ensureCapacity(this._xyInUse + points.length, false);
|
|
158
178
|
for (const p of points)
|
|
159
179
|
this.push(p);
|
|
160
180
|
}
|
|
161
|
-
/**
|
|
181
|
+
/** Push all points of an array. */
|
|
162
182
|
pushAllXYAndZ(points) {
|
|
163
183
|
this.ensureCapacity(this._xyInUse + points.length, false);
|
|
164
184
|
if (points instanceof GrowableXYZArray) {
|
|
@@ -172,7 +192,8 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
172
192
|
this.pushXY(p.x, p.y);
|
|
173
193
|
}
|
|
174
194
|
}
|
|
175
|
-
/**
|
|
195
|
+
/**
|
|
196
|
+
* Push copies of points from variant sources.
|
|
176
197
|
* Valid inputs are:
|
|
177
198
|
* * Point2d
|
|
178
199
|
* * Point3d
|
|
@@ -181,7 +202,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
181
202
|
* * A GrowableXYZArray
|
|
182
203
|
* * Any json object satisfying Point3d.isXAndY
|
|
183
204
|
* * A Float64Array of doubles, interpreted as xyxy
|
|
184
|
-
* * An array of any of the above
|
|
205
|
+
* * An array of any of the above.
|
|
185
206
|
*/
|
|
186
207
|
pushFrom(p) {
|
|
187
208
|
if (p instanceof Point3d) {
|
|
@@ -203,7 +224,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
203
224
|
this.pushXY(p[0], p[1]);
|
|
204
225
|
}
|
|
205
226
|
else if (Array.isArray(p)) {
|
|
206
|
-
// direct recursion re-wraps p and goes infinite
|
|
227
|
+
// direct recursion re-wraps p and goes infinite; unroll here.
|
|
207
228
|
for (const q of p)
|
|
208
229
|
this.pushFrom(q);
|
|
209
230
|
}
|
|
@@ -219,7 +240,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
219
240
|
}
|
|
220
241
|
/**
|
|
221
242
|
* Replicate numWrap xy values from the front of the array as new values at the end.
|
|
222
|
-
* @param numWrap number of xy values to replicate
|
|
243
|
+
* @param numWrap number of xy values to replicate.
|
|
223
244
|
*/
|
|
224
245
|
pushWrap(numWrap) {
|
|
225
246
|
if (this._xyInUse >= numWrap) {
|
|
@@ -238,16 +259,17 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
238
259
|
this._data[index + 1] = y;
|
|
239
260
|
this._xyInUse++;
|
|
240
261
|
}
|
|
241
|
-
/**
|
|
262
|
+
/**
|
|
263
|
+
* Remove one point from the back.
|
|
242
264
|
* * NOTE that (in the manner of std::vector native) this is "just" removing the point -- no point is NOT returned.
|
|
243
|
-
* * Use `back ()` to get the last x,y assembled into a `Point2d
|
|
265
|
+
* * Use `back ()` to get the last x,y assembled into a `Point2d`.
|
|
244
266
|
*/
|
|
245
267
|
pop() {
|
|
246
268
|
if (this._xyInUse > 0)
|
|
247
269
|
this._xyInUse--;
|
|
248
270
|
}
|
|
249
271
|
/**
|
|
250
|
-
* Test if index is valid for an xy (point or vector) within this array
|
|
272
|
+
* Test if index is valid for an xy (point or vector) within this array.
|
|
251
273
|
* @param index xy index to test.
|
|
252
274
|
*/
|
|
253
275
|
isIndexValid(index) {
|
|
@@ -255,38 +277,34 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
255
277
|
return false;
|
|
256
278
|
return true;
|
|
257
279
|
}
|
|
258
|
-
/**
|
|
259
|
-
* Clear all xy data, but leave capacity unchanged.
|
|
260
|
-
*/
|
|
280
|
+
/** Clear all xy data, but leave capacity unchanged. */
|
|
261
281
|
clear() {
|
|
262
282
|
this._xyInUse = 0;
|
|
263
283
|
}
|
|
264
284
|
/**
|
|
265
|
-
* Get a point by index, strongly typed as a Point2d
|
|
266
|
-
* @param pointIndex index to access
|
|
267
|
-
* @param result optional result
|
|
285
|
+
* Get a point by index, strongly typed as a `Point2d`. This is unchecked. Use atPoint2dIndex to have validity test.
|
|
286
|
+
* @param pointIndex index to access.
|
|
287
|
+
* @param result optional result.
|
|
268
288
|
*/
|
|
269
289
|
getPoint2dAtUncheckedPointIndex(pointIndex, result) {
|
|
270
290
|
const index = 2 * pointIndex;
|
|
271
291
|
return Point2d.create(this._data[index], this._data[index + 1], result);
|
|
272
292
|
}
|
|
273
293
|
/**
|
|
274
|
-
* Get x coordinate by point index, with no index checking
|
|
275
|
-
* @param pointIndex index to access
|
|
294
|
+
* Get x coordinate by point index, with no index checking.
|
|
295
|
+
* @param pointIndex index to access.
|
|
276
296
|
*/
|
|
277
297
|
getXAtUncheckedPointIndex(pointIndex) {
|
|
278
298
|
return this._data[2 * pointIndex];
|
|
279
299
|
}
|
|
280
300
|
/**
|
|
281
|
-
* Get y coordinate by point index, with no index checking
|
|
282
|
-
* @param pointIndex index to access
|
|
301
|
+
* Get y coordinate by point index, with no index checking.
|
|
302
|
+
* @param pointIndex index to access.
|
|
283
303
|
*/
|
|
284
304
|
getYAtUncheckedPointIndex(pointIndex) {
|
|
285
305
|
return this._data[2 * pointIndex + 1];
|
|
286
306
|
}
|
|
287
|
-
/**
|
|
288
|
-
* Gather all points as a Point2d[]
|
|
289
|
-
*/
|
|
307
|
+
/** Gather all points as a Point2d[]. */
|
|
290
308
|
getPoint2dArray() {
|
|
291
309
|
const n = 2 * this._xyInUse;
|
|
292
310
|
const result = [];
|
|
@@ -295,7 +313,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
295
313
|
result.push(Point2d.create(data[i], data[i + 1]));
|
|
296
314
|
return result;
|
|
297
315
|
}
|
|
298
|
-
/**
|
|
316
|
+
/** Copy xy into strongly typed Point2d. */
|
|
299
317
|
getPoint2dAtCheckedPointIndex(pointIndex, result) {
|
|
300
318
|
if (this.isIndexValid(pointIndex)) {
|
|
301
319
|
const index = 2 * pointIndex;
|
|
@@ -303,7 +321,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
303
321
|
}
|
|
304
322
|
return undefined;
|
|
305
323
|
}
|
|
306
|
-
/**
|
|
324
|
+
/** Copy xy into strongly typed Vector2d. */
|
|
307
325
|
getVector2dAtCheckedVectorIndex(vectorIndex, result) {
|
|
308
326
|
if (this.isIndexValid(vectorIndex)) {
|
|
309
327
|
const index = 2 * vectorIndex;
|
|
@@ -313,9 +331,9 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
313
331
|
}
|
|
314
332
|
/**
|
|
315
333
|
* Read coordinates from source array, place them at index within this array.
|
|
316
|
-
* @param destIndex point index where coordinates are to be placed in this array
|
|
317
|
-
* @param source source array
|
|
318
|
-
* @param sourceIndex point index in source array
|
|
334
|
+
* @param destIndex point index where coordinates are to be placed in this array.
|
|
335
|
+
* @param source source array.
|
|
336
|
+
* @param sourceIndex point index in source array.
|
|
319
337
|
* @returns true if destIndex and sourceIndex are both valid.
|
|
320
338
|
*/
|
|
321
339
|
transferFromGrowableXYArray(destIndex, source, sourceIndex) {
|
|
@@ -329,13 +347,13 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
329
347
|
return false;
|
|
330
348
|
}
|
|
331
349
|
/**
|
|
332
|
-
*
|
|
333
|
-
* @param source source array
|
|
334
|
-
* @param sourceIndex xy index within the source. If undefined, push entire contents of source
|
|
350
|
+
* Push coordinates from the source array to the end of this array.
|
|
351
|
+
* @param source source array.
|
|
352
|
+
* @param sourceIndex xy index within the source. If undefined, push entire contents of source.
|
|
335
353
|
* @returns number of points pushed.
|
|
336
354
|
*/
|
|
337
355
|
pushFromGrowableXYArray(source, sourceIndex) {
|
|
338
|
-
// full array push
|
|
356
|
+
// full array push
|
|
339
357
|
if (sourceIndex === undefined) {
|
|
340
358
|
const numXYAdd = source.length;
|
|
341
359
|
this.ensureCapacity(this.length + numXYAdd, false);
|
|
@@ -343,7 +361,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
343
361
|
this._xyInUse += numXYAdd;
|
|
344
362
|
return numXYAdd;
|
|
345
363
|
}
|
|
346
|
-
// single point push
|
|
364
|
+
// single point push
|
|
347
365
|
if (source.isIndexValid(sourceIndex)) {
|
|
348
366
|
const j = sourceIndex * 2;
|
|
349
367
|
this.pushXY(source._data[j], source._data[j + 1]);
|
|
@@ -352,8 +370,8 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
352
370
|
return 0;
|
|
353
371
|
}
|
|
354
372
|
/**
|
|
355
|
-
* * Compute a point at fractional coordinate between points i and j of source
|
|
356
|
-
* *
|
|
373
|
+
* * Compute a point at fractional coordinate between points i and j of source.
|
|
374
|
+
* * Push onto this array.
|
|
357
375
|
*/
|
|
358
376
|
pushInterpolatedFromGrowableXYArray(source, i, fraction, j) {
|
|
359
377
|
if (source.isIndexValid(i) && source.isIndexValid(j)) {
|
|
@@ -366,7 +384,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
366
384
|
}
|
|
367
385
|
/**
|
|
368
386
|
* Create an array of xy points from source xyz points.
|
|
369
|
-
* @param source source array of xyz
|
|
387
|
+
* @param source source array of xyz.
|
|
370
388
|
* @param transform optional transform to apply to xyz points.
|
|
371
389
|
* @param dest optional result.
|
|
372
390
|
*/
|
|
@@ -394,17 +412,13 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
394
412
|
}
|
|
395
413
|
return dest;
|
|
396
414
|
}
|
|
397
|
-
/**
|
|
398
|
-
* Return the first point, or undefined if the array is empty.
|
|
399
|
-
*/
|
|
415
|
+
/** Return the first point, or undefined if the array is empty. */
|
|
400
416
|
front(result) {
|
|
401
417
|
if (this._xyInUse === 0)
|
|
402
418
|
return undefined;
|
|
403
419
|
return this.getPoint2dAtUncheckedPointIndex(0, result);
|
|
404
420
|
}
|
|
405
|
-
/**
|
|
406
|
-
* Return the last point, or undefined if the array is empty.
|
|
407
|
-
*/
|
|
421
|
+
/** Return the last point, or undefined if the array is empty. */
|
|
408
422
|
back(result) {
|
|
409
423
|
if (this._xyInUse < 1)
|
|
410
424
|
return undefined;
|
|
@@ -412,8 +426,8 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
412
426
|
}
|
|
413
427
|
/**
|
|
414
428
|
* Set the coordinates of a single point.
|
|
415
|
-
* @param pointIndex index of point to set
|
|
416
|
-
* @param value coordinates to set
|
|
429
|
+
* @param pointIndex index of point to set.
|
|
430
|
+
* @param value coordinates to set.
|
|
417
431
|
*/
|
|
418
432
|
setAtCheckedPointIndex(pointIndex, value) {
|
|
419
433
|
if (!this.isIndexValid(pointIndex))
|
|
@@ -425,9 +439,9 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
425
439
|
}
|
|
426
440
|
/**
|
|
427
441
|
* Set the coordinates of a single point given as coordinates.
|
|
428
|
-
* @param pointIndex index of point to set
|
|
429
|
-
* @param x x coordinate
|
|
430
|
-
* @param y y coordinate
|
|
442
|
+
* @param pointIndex index of point to set.
|
|
443
|
+
* @param x x coordinate.
|
|
444
|
+
* @param y y coordinate.
|
|
431
445
|
*/
|
|
432
446
|
setXYAtCheckedPointIndex(pointIndex, x, y) {
|
|
433
447
|
if (!this.isIndexValid(pointIndex))
|
|
@@ -437,9 +451,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
437
451
|
this._data[index + 1] = y;
|
|
438
452
|
return true;
|
|
439
453
|
}
|
|
440
|
-
/**
|
|
441
|
-
* Copy all points into a simple array of Point3d with given z.
|
|
442
|
-
*/
|
|
454
|
+
/** Copy all points into a simple array of Point3d with given z. */
|
|
443
455
|
getPoint3dArray(z = 0) {
|
|
444
456
|
const n = 2 * this._xyInUse;
|
|
445
457
|
const result = [];
|
|
@@ -448,7 +460,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
448
460
|
result.push(Point3d.create(data[i], data[i + 1], z));
|
|
449
461
|
return result;
|
|
450
462
|
}
|
|
451
|
-
/**
|
|
463
|
+
/** Reverse the order of points. */
|
|
452
464
|
reverseInPlace() {
|
|
453
465
|
const n = this.length;
|
|
454
466
|
let j0, j1;
|
|
@@ -467,7 +479,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
467
479
|
data[j1] = a;
|
|
468
480
|
}
|
|
469
481
|
}
|
|
470
|
-
/**
|
|
482
|
+
/** Multiply each point by the transform, replace values. */
|
|
471
483
|
multiplyTransformInPlace(transform) {
|
|
472
484
|
const data = this._data;
|
|
473
485
|
const nDouble = this.float64Length;
|
|
@@ -484,7 +496,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
484
496
|
data[i + 1] = coffs[3] * x + coffs[4] * y + y0;
|
|
485
497
|
}
|
|
486
498
|
}
|
|
487
|
-
/**
|
|
499
|
+
/** Multiply each xy (as a vector) by matrix, replace values. */
|
|
488
500
|
multiplyMatrix3dInPlace(matrix) {
|
|
489
501
|
const data = this._data;
|
|
490
502
|
const nDouble = this.float64Length;
|
|
@@ -498,7 +510,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
498
510
|
data[i + 1] = coffs[3] * x + coffs[4] * y;
|
|
499
511
|
}
|
|
500
512
|
}
|
|
501
|
-
/**
|
|
513
|
+
/** Multiply each point by the transform, replace values. */
|
|
502
514
|
tryTransformInverseInPlace(transform) {
|
|
503
515
|
const data = this._data;
|
|
504
516
|
const nDouble = this.float64Length;
|
|
@@ -533,7 +545,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
533
545
|
rangeToExtend.extendXY(data[i], data[i + 1]);
|
|
534
546
|
}
|
|
535
547
|
}
|
|
536
|
-
/**
|
|
548
|
+
/** Sum the lengths of segments between points. */
|
|
537
549
|
sumLengths() {
|
|
538
550
|
let sum = 0.0;
|
|
539
551
|
const n = 2 * (this._xyInUse - 1); // Length already takes into account what specifically is in use
|
|
@@ -544,7 +556,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
544
556
|
}
|
|
545
557
|
/**
|
|
546
558
|
* Multiply each x,y by the scale factor.
|
|
547
|
-
* @param factor
|
|
559
|
+
* @param factor scale factor.
|
|
548
560
|
*/
|
|
549
561
|
scaleInPlace(factor) {
|
|
550
562
|
if (this._data) {
|
|
@@ -553,7 +565,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
553
565
|
this._data[i] = this._data[i] * factor;
|
|
554
566
|
}
|
|
555
567
|
}
|
|
556
|
-
/** Compute a point at fractional coordinate between points i and j */
|
|
568
|
+
/** Compute a point at fractional coordinate between points i and j. */
|
|
557
569
|
interpolate(i, fraction, j, result) {
|
|
558
570
|
if (this.isIndexValid(i) && this.isIndexValid(j)) {
|
|
559
571
|
const fraction0 = 1.0 - fraction;
|
|
@@ -564,10 +576,10 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
564
576
|
}
|
|
565
577
|
return undefined;
|
|
566
578
|
}
|
|
567
|
-
/** Sum the signed areas of the projection to xy plane */
|
|
579
|
+
/** Sum the signed areas of the projection to xy plane. */
|
|
568
580
|
areaXY() {
|
|
569
581
|
let area = 0.0;
|
|
570
|
-
const n = 2 * this._xyInUse; // float count
|
|
582
|
+
const n = 2 * this._xyInUse; // float count
|
|
571
583
|
if (n > 4) {
|
|
572
584
|
const x0 = this._data[n - 2];
|
|
573
585
|
const y0 = this._data[n - 1];
|
|
@@ -583,7 +595,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
583
595
|
}
|
|
584
596
|
return 0.5 * area;
|
|
585
597
|
}
|
|
586
|
-
/** Compute a vector from index origin i to indexed target j
|
|
598
|
+
/** Compute a vector from index origin i to indexed target j. */
|
|
587
599
|
vectorIndexIndex(i, j, result) {
|
|
588
600
|
if (!this.isIndexValid(i) || !this.isIndexValid(j))
|
|
589
601
|
return undefined;
|
|
@@ -592,7 +604,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
592
604
|
j = 2 * j;
|
|
593
605
|
return Vector2d.create(data[j] - data[i], data[j + 1] - data[i + 1], result);
|
|
594
606
|
}
|
|
595
|
-
/** Compute a vector from origin to indexed target j */
|
|
607
|
+
/** Compute a vector from origin to indexed target j. */
|
|
596
608
|
vectorXAndYIndex(origin, j, result) {
|
|
597
609
|
if (this.isIndexValid(j)) {
|
|
598
610
|
const data = this._data;
|
|
@@ -601,7 +613,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
601
613
|
}
|
|
602
614
|
return undefined;
|
|
603
615
|
}
|
|
604
|
-
/** Compute the cross product of vectors from from indexed origin to indexed targets i and j */
|
|
616
|
+
/** Compute the cross product of vectors from from indexed origin to indexed targets i and j. */
|
|
605
617
|
crossProductIndexIndexIndex(originIndex, targetAIndex, targetBIndex) {
|
|
606
618
|
if (this.isIndexValid(originIndex) && this.isIndexValid(targetAIndex) && this.isIndexValid(targetBIndex)) {
|
|
607
619
|
const i = originIndex * 2;
|
|
@@ -612,7 +624,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
612
624
|
}
|
|
613
625
|
return undefined;
|
|
614
626
|
}
|
|
615
|
-
/** Compute the cross product of vectors from from origin to indexed targets i and j */
|
|
627
|
+
/** Compute the cross product of vectors from from origin to indexed targets i and j. */
|
|
616
628
|
crossProductXAndYIndexIndex(origin, targetAIndex, targetBIndex) {
|
|
617
629
|
if (this.isIndexValid(targetAIndex) && this.isIndexValid(targetBIndex)) {
|
|
618
630
|
const j = targetAIndex * 2;
|
|
@@ -652,7 +664,7 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
652
664
|
// if both are null it is equal, otherwise unequal
|
|
653
665
|
return (!dataA && !dataB);
|
|
654
666
|
}
|
|
655
|
-
/** Return an array of block indices sorted per compareLexicalBlock function */
|
|
667
|
+
/** Return an array of block indices sorted per compareLexicalBlock function. */
|
|
656
668
|
sortIndicesLexical() {
|
|
657
669
|
const n = this._xyInUse;
|
|
658
670
|
// let numCompare = 0;
|
|
@@ -678,13 +690,13 @@ export class GrowableXYArray extends IndexedXYCollection {
|
|
|
678
690
|
if (ax < bx)
|
|
679
691
|
return -1;
|
|
680
692
|
}
|
|
681
|
-
return ia - ib; // so original order is maintained among duplicates
|
|
693
|
+
return ia - ib; // so original order is maintained among duplicates
|
|
682
694
|
}
|
|
683
|
-
/** Access a single double at offset within a block.
|
|
695
|
+
/** Access a single double at offset within a block. This has no index checking. */
|
|
684
696
|
component(pointIndex, componentIndex) {
|
|
685
697
|
return this._data[2 * pointIndex + componentIndex];
|
|
686
698
|
}
|
|
687
|
-
/** Toleranced equality test */
|
|
699
|
+
/** Toleranced equality test. */
|
|
688
700
|
isAlmostEqual(other, tolerance = Geometry.smallMetricDistance) {
|
|
689
701
|
const numXY = this._xyInUse;
|
|
690
702
|
if (other._xyInUse !== numXY)
|