@itwin/core-geometry 5.1.0-dev.22 → 5.1.0-dev.26

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.
Files changed (463) hide show
  1. package/lib/cjs/Constant.js.map +1 -1
  2. package/lib/cjs/Geometry.js.map +1 -1
  3. package/lib/cjs/bspline/AkimaCurve3d.js.map +1 -1
  4. package/lib/cjs/bspline/BSpline1dNd.js.map +1 -1
  5. package/lib/cjs/bspline/BSplineCurve.js.map +1 -1
  6. package/lib/cjs/bspline/BSplineCurve3dH.js.map +1 -1
  7. package/lib/cjs/bspline/BSplineCurveOps.js.map +1 -1
  8. package/lib/cjs/bspline/BSplineSurface.js.map +1 -1
  9. package/lib/cjs/bspline/Bezier1dNd.js.map +1 -1
  10. package/lib/cjs/bspline/BezierCurve3d.js.map +1 -1
  11. package/lib/cjs/bspline/BezierCurve3dH.js.map +1 -1
  12. package/lib/cjs/bspline/BezierCurveBase.js.map +1 -1
  13. package/lib/cjs/bspline/InterpolationCurve3d.js.map +1 -1
  14. package/lib/cjs/bspline/KnotVector.js.map +1 -1
  15. package/lib/cjs/bspline/SurfaceLocationDetail.js.map +1 -1
  16. package/lib/cjs/clipping/AlternatingConvexClipTree.js.map +1 -1
  17. package/lib/cjs/clipping/BooleanClipFactory.js.map +1 -1
  18. package/lib/cjs/clipping/BooleanClipNode.js.map +1 -1
  19. package/lib/cjs/clipping/ClipPlane.js.map +1 -1
  20. package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
  21. package/lib/cjs/clipping/ClipUtils.js.map +1 -1
  22. package/lib/cjs/clipping/ClipVector.js.map +1 -1
  23. package/lib/cjs/clipping/ConvexClipPlaneSet.js.map +1 -1
  24. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  25. package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
  26. package/lib/cjs/core-geometry.js.map +1 -1
  27. package/lib/cjs/curve/Arc3d.js.map +1 -1
  28. package/lib/cjs/curve/ConstructCurveBetweenCurves.js.map +1 -1
  29. package/lib/cjs/curve/CoordinateXYZ.js.map +1 -1
  30. package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
  31. package/lib/cjs/curve/CurveCollection.d.ts +31 -1
  32. package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
  33. package/lib/cjs/curve/CurveCollection.js +65 -0
  34. package/lib/cjs/curve/CurveCollection.js.map +1 -1
  35. package/lib/cjs/curve/CurveCurve.js.map +1 -1
  36. package/lib/cjs/curve/CurveExtendMode.js.map +1 -1
  37. package/lib/cjs/curve/CurveFactory.js.map +1 -1
  38. package/lib/cjs/curve/CurveLocationDetail.d.ts +24 -24
  39. package/lib/cjs/curve/CurveLocationDetail.d.ts.map +1 -1
  40. package/lib/cjs/curve/CurveLocationDetail.js +24 -24
  41. package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
  42. package/lib/cjs/curve/CurveOps.js.map +1 -1
  43. package/lib/cjs/curve/CurvePrimitive.d.ts +2 -2
  44. package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
  45. package/lib/cjs/curve/CurveProcessor.js.map +1 -1
  46. package/lib/cjs/curve/CurveTypes.js.map +1 -1
  47. package/lib/cjs/curve/CurveWireMomentsXYZ.js.map +1 -1
  48. package/lib/cjs/curve/GeometryQuery.js.map +1 -1
  49. package/lib/cjs/curve/LineSegment3d.js.map +1 -1
  50. package/lib/cjs/curve/LineString3d.js.map +1 -1
  51. package/lib/cjs/curve/Loop.js.map +1 -1
  52. package/lib/cjs/curve/OffsetOptions.js.map +1 -1
  53. package/lib/cjs/curve/ParityRegion.js.map +1 -1
  54. package/lib/cjs/curve/Path.js.map +1 -1
  55. package/lib/cjs/curve/PointString3d.js.map +1 -1
  56. package/lib/cjs/curve/ProxyCurve.js.map +1 -1
  57. package/lib/cjs/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
  58. package/lib/cjs/curve/Query/CurveSplitContext.js.map +1 -1
  59. package/lib/cjs/curve/Query/CylindricalRange.js.map +1 -1
  60. package/lib/cjs/curve/Query/InOutTests.js.map +1 -1
  61. package/lib/cjs/curve/Query/PlanarSubdivision.js.map +1 -1
  62. package/lib/cjs/curve/Query/StrokeCountChain.js.map +1 -1
  63. package/lib/cjs/curve/Query/StrokeCountMap.js.map +1 -1
  64. package/lib/cjs/curve/RegionMomentsXY.js.map +1 -1
  65. package/lib/cjs/curve/RegionOps.js.map +1 -1
  66. package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -1
  67. package/lib/cjs/curve/StrokeOptions.js.map +1 -1
  68. package/lib/cjs/curve/UnionRegion.js.map +1 -1
  69. package/lib/cjs/curve/internalContexts/AnnounceTangentStrokeHandler.js.map +1 -1
  70. package/lib/cjs/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
  71. package/lib/cjs/curve/internalContexts/ChainCollectorContext.js.map +1 -1
  72. package/lib/cjs/curve/internalContexts/CloneCurvesContext.js.map +1 -1
  73. package/lib/cjs/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -1
  74. package/lib/cjs/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
  75. package/lib/cjs/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
  76. package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
  77. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
  78. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
  79. package/lib/cjs/curve/internalContexts/CurveLengthContext.js.map +1 -1
  80. package/lib/cjs/curve/internalContexts/CurveOffsetXYHandler.js.map +1 -1
  81. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
  82. package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
  83. package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -1
  84. package/lib/cjs/curve/internalContexts/NewtonRtoRStrokeHandler.js.map +1 -1
  85. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  86. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  87. package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
  88. package/lib/cjs/curve/internalContexts/TransferWithSplitArcs.js.map +1 -1
  89. package/lib/cjs/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
  90. package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
  91. package/lib/cjs/curve/spiral/ClothoidSeries.js.map +1 -1
  92. package/lib/cjs/curve/spiral/CubicEvaluator.js.map +1 -1
  93. package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
  94. package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
  95. package/lib/cjs/curve/spiral/DirectSpiral3d.js.map +1 -1
  96. package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  97. package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
  98. package/lib/cjs/curve/spiral/NormalizedTransition.js.map +1 -1
  99. package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
  100. package/lib/cjs/curve/spiral/TransitionConditionalProperties.js.map +1 -1
  101. package/lib/cjs/curve/spiral/TransitionSpiral3d.js.map +1 -1
  102. package/lib/cjs/curve/spiral/XYCurveEvaluator.js.map +1 -1
  103. package/lib/cjs/geometry3d/Angle.js.map +1 -1
  104. package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
  105. package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
  106. package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
  107. package/lib/cjs/geometry3d/CoincidentGeometryOps.js.map +1 -1
  108. package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
  109. package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
  110. package/lib/cjs/geometry3d/FrustumAnimation.js.map +1 -1
  111. package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -1
  112. package/lib/cjs/geometry3d/GrowableBlockedArray.js.map +1 -1
  113. package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -1
  114. package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -1
  115. package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -1
  116. package/lib/cjs/geometry3d/IndexedCollectionInterval.js.map +1 -1
  117. package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
  118. package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
  119. package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
  120. package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
  121. package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -1
  122. package/lib/cjs/geometry3d/Plane3d.js.map +1 -1
  123. package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
  124. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  125. package/lib/cjs/geometry3d/Point2dArrayCarrier.js.map +1 -1
  126. package/lib/cjs/geometry3d/Point2dVector2d.js.map +1 -1
  127. package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
  128. package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
  129. package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
  130. package/lib/cjs/geometry3d/PointStreaming.js.map +1 -1
  131. package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
  132. package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
  133. package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
  134. package/lib/cjs/geometry3d/Range.js.map +1 -1
  135. package/lib/cjs/geometry3d/Ray2d.js.map +1 -1
  136. package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
  137. package/lib/cjs/geometry3d/ReusableObjectCache.js.map +1 -1
  138. package/lib/cjs/geometry3d/Segment1d.js.map +1 -1
  139. package/lib/cjs/geometry3d/SortablePolygon.js.map +1 -1
  140. package/lib/cjs/geometry3d/Transform.js.map +1 -1
  141. package/lib/cjs/geometry3d/UVSurfaceOps.js.map +1 -1
  142. package/lib/cjs/geometry3d/XYZProps.js.map +1 -1
  143. package/lib/cjs/geometry3d/YawPitchRollAngles.js.map +1 -1
  144. package/lib/cjs/geometry4d/Map4d.js.map +1 -1
  145. package/lib/cjs/geometry4d/Matrix4d.js.map +1 -1
  146. package/lib/cjs/geometry4d/MomentData.js.map +1 -1
  147. package/lib/cjs/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
  148. package/lib/cjs/geometry4d/Point4d.js.map +1 -1
  149. package/lib/cjs/numerics/BandedSystem.js.map +1 -1
  150. package/lib/cjs/numerics/BezierPolynomials.js.map +1 -1
  151. package/lib/cjs/numerics/ClusterableArray.js.map +1 -1
  152. package/lib/cjs/numerics/Complex.js.map +1 -1
  153. package/lib/cjs/numerics/ConvexPolygon2d.js.map +1 -1
  154. package/lib/cjs/numerics/Newton.js.map +1 -1
  155. package/lib/cjs/numerics/PascalCoefficients.js.map +1 -1
  156. package/lib/cjs/numerics/PolarData.js.map +1 -1
  157. package/lib/cjs/numerics/Polynomials.js.map +1 -1
  158. package/lib/cjs/numerics/Quadrature.js.map +1 -1
  159. package/lib/cjs/numerics/Range1dArray.js.map +1 -1
  160. package/lib/cjs/numerics/SmallSystem.js.map +1 -1
  161. package/lib/cjs/numerics/TriDiagonalSystem.js.map +1 -1
  162. package/lib/cjs/numerics/UnionFind.js.map +1 -1
  163. package/lib/cjs/numerics/UsageSums.js.map +1 -1
  164. package/lib/cjs/polyface/AuxData.js.map +1 -1
  165. package/lib/cjs/polyface/BoxTopology.js.map +1 -1
  166. package/lib/cjs/polyface/FacetFaceData.js.map +1 -1
  167. package/lib/cjs/polyface/FacetLocationDetail.js.map +1 -1
  168. package/lib/cjs/polyface/FacetOrientation.js.map +1 -1
  169. package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
  170. package/lib/cjs/polyface/IndexedEdgeMatcher.js.map +1 -1
  171. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  172. package/lib/cjs/polyface/IndexedPolyfaceWalker.js.map +1 -1
  173. package/lib/cjs/polyface/Polyface.js.map +1 -1
  174. package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
  175. package/lib/cjs/polyface/PolyfaceClip.js.map +1 -1
  176. package/lib/cjs/polyface/PolyfaceData.js.map +1 -1
  177. package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
  178. package/lib/cjs/polyface/RangeLengthData.js.map +1 -1
  179. package/lib/cjs/polyface/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
  180. package/lib/cjs/polyface/RangeTree/MinimumValueTester.js.map +1 -1
  181. package/lib/cjs/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
  182. package/lib/cjs/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
  183. package/lib/cjs/polyface/RangeTree/RangeTreeNode.js.map +1 -1
  184. package/lib/cjs/polyface/RangeTree/RangeTreeSearchHandlers.js.map +1 -1
  185. package/lib/cjs/polyface/TaggedNumericData.js.map +1 -1
  186. package/lib/cjs/polyface/TriangleCandidate.js.map +1 -1
  187. package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
  188. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
  189. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
  190. package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
  191. package/lib/cjs/polyface/multiclip/OffsetMeshContext.js.map +1 -1
  192. package/lib/cjs/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
  193. package/lib/cjs/polyface/multiclip/RangeSearch.js.map +1 -1
  194. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  195. package/lib/cjs/polyface/multiclip/XYPointBuckets.js.map +1 -1
  196. package/lib/cjs/serialization/BGFBAccessors.js.map +1 -1
  197. package/lib/cjs/serialization/BGFBReader.js.map +1 -1
  198. package/lib/cjs/serialization/BGFBWriter.js.map +1 -1
  199. package/lib/cjs/serialization/BentleyGeometryFlatBuffer.js.map +1 -1
  200. package/lib/cjs/serialization/DeepCompare.js.map +1 -1
  201. package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
  202. package/lib/cjs/serialization/IModelJsonSchema.js.map +1 -1
  203. package/lib/cjs/serialization/SerializationHelpers.js.map +1 -1
  204. package/lib/cjs/solid/Box.js.map +1 -1
  205. package/lib/cjs/solid/Cone.js.map +1 -1
  206. package/lib/cjs/solid/LinearSweep.js.map +1 -1
  207. package/lib/cjs/solid/RotationalSweep.js.map +1 -1
  208. package/lib/cjs/solid/RuledSweep.js.map +1 -1
  209. package/lib/cjs/solid/SolidPrimitive.js.map +1 -1
  210. package/lib/cjs/solid/Sphere.js.map +1 -1
  211. package/lib/cjs/solid/SweepContour.js.map +1 -1
  212. package/lib/cjs/solid/TorusPipe.js.map +1 -1
  213. package/lib/cjs/topology/ChainMerge.js.map +1 -1
  214. package/lib/cjs/topology/Graph.js.map +1 -1
  215. package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
  216. package/lib/cjs/topology/HalfEdgeGraphSearch.js.map +1 -1
  217. package/lib/cjs/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  218. package/lib/cjs/topology/HalfEdgeGraphValidation.js.map +1 -1
  219. package/lib/cjs/topology/HalfEdgeMarkSet.js.map +1 -1
  220. package/lib/cjs/topology/HalfEdgeNodeXYZUV.js.map +1 -1
  221. package/lib/cjs/topology/HalfEdgePointInGraphSearch.js.map +1 -1
  222. package/lib/cjs/topology/HalfEdgePositionDetail.js.map +1 -1
  223. package/lib/cjs/topology/HalfEdgePriorityQueue.js.map +1 -1
  224. package/lib/cjs/topology/InsertAndRetriangulateContext.js.map +1 -1
  225. package/lib/cjs/topology/MaskManager.js.map +1 -1
  226. package/lib/cjs/topology/Merging.js.map +1 -1
  227. package/lib/cjs/topology/RegularizeFace.js.map +1 -1
  228. package/lib/cjs/topology/SignedDataSummary.js.map +1 -1
  229. package/lib/cjs/topology/SpaceTriangulation.js.map +1 -1
  230. package/lib/cjs/topology/Triangulation.js.map +1 -1
  231. package/lib/cjs/topology/XYParitySearchContext.js.map +1 -1
  232. package/lib/esm/Constant.js.map +1 -1
  233. package/lib/esm/Geometry.js.map +1 -1
  234. package/lib/esm/bspline/AkimaCurve3d.js.map +1 -1
  235. package/lib/esm/bspline/BSpline1dNd.js.map +1 -1
  236. package/lib/esm/bspline/BSplineCurve.js.map +1 -1
  237. package/lib/esm/bspline/BSplineCurve3dH.js.map +1 -1
  238. package/lib/esm/bspline/BSplineCurveOps.js.map +1 -1
  239. package/lib/esm/bspline/BSplineSurface.js.map +1 -1
  240. package/lib/esm/bspline/Bezier1dNd.js.map +1 -1
  241. package/lib/esm/bspline/BezierCurve3d.js.map +1 -1
  242. package/lib/esm/bspline/BezierCurve3dH.js.map +1 -1
  243. package/lib/esm/bspline/BezierCurveBase.js.map +1 -1
  244. package/lib/esm/bspline/InterpolationCurve3d.js.map +1 -1
  245. package/lib/esm/bspline/KnotVector.js.map +1 -1
  246. package/lib/esm/bspline/SurfaceLocationDetail.js.map +1 -1
  247. package/lib/esm/clipping/AlternatingConvexClipTree.js.map +1 -1
  248. package/lib/esm/clipping/BooleanClipFactory.js.map +1 -1
  249. package/lib/esm/clipping/BooleanClipNode.js.map +1 -1
  250. package/lib/esm/clipping/ClipPlane.js.map +1 -1
  251. package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
  252. package/lib/esm/clipping/ClipUtils.js.map +1 -1
  253. package/lib/esm/clipping/ClipVector.js.map +1 -1
  254. package/lib/esm/clipping/ConvexClipPlaneSet.js.map +1 -1
  255. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  256. package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
  257. package/lib/esm/core-geometry.js.map +1 -1
  258. package/lib/esm/curve/Arc3d.js.map +1 -1
  259. package/lib/esm/curve/ConstructCurveBetweenCurves.js.map +1 -1
  260. package/lib/esm/curve/CoordinateXYZ.js.map +1 -1
  261. package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
  262. package/lib/esm/curve/CurveCollection.d.ts +31 -1
  263. package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
  264. package/lib/esm/curve/CurveCollection.js +65 -0
  265. package/lib/esm/curve/CurveCollection.js.map +1 -1
  266. package/lib/esm/curve/CurveCurve.js.map +1 -1
  267. package/lib/esm/curve/CurveExtendMode.js.map +1 -1
  268. package/lib/esm/curve/CurveFactory.js.map +1 -1
  269. package/lib/esm/curve/CurveLocationDetail.d.ts +24 -24
  270. package/lib/esm/curve/CurveLocationDetail.d.ts.map +1 -1
  271. package/lib/esm/curve/CurveLocationDetail.js +24 -24
  272. package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
  273. package/lib/esm/curve/CurveOps.js.map +1 -1
  274. package/lib/esm/curve/CurvePrimitive.d.ts +2 -2
  275. package/lib/esm/curve/CurvePrimitive.js.map +1 -1
  276. package/lib/esm/curve/CurveProcessor.js.map +1 -1
  277. package/lib/esm/curve/CurveTypes.js.map +1 -1
  278. package/lib/esm/curve/CurveWireMomentsXYZ.js.map +1 -1
  279. package/lib/esm/curve/GeometryQuery.js.map +1 -1
  280. package/lib/esm/curve/LineSegment3d.js.map +1 -1
  281. package/lib/esm/curve/LineString3d.js.map +1 -1
  282. package/lib/esm/curve/Loop.js.map +1 -1
  283. package/lib/esm/curve/OffsetOptions.js.map +1 -1
  284. package/lib/esm/curve/ParityRegion.js.map +1 -1
  285. package/lib/esm/curve/Path.js.map +1 -1
  286. package/lib/esm/curve/PointString3d.js.map +1 -1
  287. package/lib/esm/curve/ProxyCurve.js.map +1 -1
  288. package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
  289. package/lib/esm/curve/Query/CurveSplitContext.js.map +1 -1
  290. package/lib/esm/curve/Query/CylindricalRange.js.map +1 -1
  291. package/lib/esm/curve/Query/InOutTests.js.map +1 -1
  292. package/lib/esm/curve/Query/PlanarSubdivision.js.map +1 -1
  293. package/lib/esm/curve/Query/StrokeCountChain.js.map +1 -1
  294. package/lib/esm/curve/Query/StrokeCountMap.js.map +1 -1
  295. package/lib/esm/curve/RegionMomentsXY.js.map +1 -1
  296. package/lib/esm/curve/RegionOps.js.map +1 -1
  297. package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -1
  298. package/lib/esm/curve/StrokeOptions.js.map +1 -1
  299. package/lib/esm/curve/UnionRegion.js.map +1 -1
  300. package/lib/esm/curve/internalContexts/AnnounceTangentStrokeHandler.js.map +1 -1
  301. package/lib/esm/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
  302. package/lib/esm/curve/internalContexts/ChainCollectorContext.js.map +1 -1
  303. package/lib/esm/curve/internalContexts/CloneCurvesContext.js.map +1 -1
  304. package/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -1
  305. package/lib/esm/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
  306. package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
  307. package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
  308. package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
  309. package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
  310. package/lib/esm/curve/internalContexts/CurveLengthContext.js.map +1 -1
  311. package/lib/esm/curve/internalContexts/CurveOffsetXYHandler.js.map +1 -1
  312. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
  313. package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
  314. package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -1
  315. package/lib/esm/curve/internalContexts/NewtonRtoRStrokeHandler.js.map +1 -1
  316. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  317. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  318. package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
  319. package/lib/esm/curve/internalContexts/TransferWithSplitArcs.js.map +1 -1
  320. package/lib/esm/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
  321. package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
  322. package/lib/esm/curve/spiral/ClothoidSeries.js.map +1 -1
  323. package/lib/esm/curve/spiral/CubicEvaluator.js.map +1 -1
  324. package/lib/esm/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
  325. package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
  326. package/lib/esm/curve/spiral/DirectSpiral3d.js.map +1 -1
  327. package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  328. package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
  329. package/lib/esm/curve/spiral/NormalizedTransition.js.map +1 -1
  330. package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
  331. package/lib/esm/curve/spiral/TransitionConditionalProperties.js.map +1 -1
  332. package/lib/esm/curve/spiral/TransitionSpiral3d.js.map +1 -1
  333. package/lib/esm/curve/spiral/XYCurveEvaluator.js.map +1 -1
  334. package/lib/esm/geometry3d/Angle.js.map +1 -1
  335. package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
  336. package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
  337. package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
  338. package/lib/esm/geometry3d/CoincidentGeometryOps.js.map +1 -1
  339. package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
  340. package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
  341. package/lib/esm/geometry3d/FrustumAnimation.js.map +1 -1
  342. package/lib/esm/geometry3d/GeometryHandler.js.map +1 -1
  343. package/lib/esm/geometry3d/GrowableBlockedArray.js.map +1 -1
  344. package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -1
  345. package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -1
  346. package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -1
  347. package/lib/esm/geometry3d/IndexedCollectionInterval.js.map +1 -1
  348. package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
  349. package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
  350. package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
  351. package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
  352. package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -1
  353. package/lib/esm/geometry3d/Plane3d.js.map +1 -1
  354. package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
  355. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  356. package/lib/esm/geometry3d/Point2dArrayCarrier.js.map +1 -1
  357. package/lib/esm/geometry3d/Point2dVector2d.js.map +1 -1
  358. package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
  359. package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
  360. package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
  361. package/lib/esm/geometry3d/PointStreaming.js.map +1 -1
  362. package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
  363. package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
  364. package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
  365. package/lib/esm/geometry3d/Range.js.map +1 -1
  366. package/lib/esm/geometry3d/Ray2d.js.map +1 -1
  367. package/lib/esm/geometry3d/Ray3d.js.map +1 -1
  368. package/lib/esm/geometry3d/ReusableObjectCache.js.map +1 -1
  369. package/lib/esm/geometry3d/Segment1d.js.map +1 -1
  370. package/lib/esm/geometry3d/SortablePolygon.js.map +1 -1
  371. package/lib/esm/geometry3d/Transform.js.map +1 -1
  372. package/lib/esm/geometry3d/UVSurfaceOps.js.map +1 -1
  373. package/lib/esm/geometry3d/XYZProps.js.map +1 -1
  374. package/lib/esm/geometry3d/YawPitchRollAngles.js.map +1 -1
  375. package/lib/esm/geometry4d/Map4d.js.map +1 -1
  376. package/lib/esm/geometry4d/Matrix4d.js.map +1 -1
  377. package/lib/esm/geometry4d/MomentData.js.map +1 -1
  378. package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
  379. package/lib/esm/geometry4d/Point4d.js.map +1 -1
  380. package/lib/esm/numerics/BandedSystem.js.map +1 -1
  381. package/lib/esm/numerics/BezierPolynomials.js.map +1 -1
  382. package/lib/esm/numerics/ClusterableArray.js.map +1 -1
  383. package/lib/esm/numerics/Complex.js.map +1 -1
  384. package/lib/esm/numerics/ConvexPolygon2d.js.map +1 -1
  385. package/lib/esm/numerics/Newton.js.map +1 -1
  386. package/lib/esm/numerics/PascalCoefficients.js.map +1 -1
  387. package/lib/esm/numerics/PolarData.js.map +1 -1
  388. package/lib/esm/numerics/Polynomials.js.map +1 -1
  389. package/lib/esm/numerics/Quadrature.js.map +1 -1
  390. package/lib/esm/numerics/Range1dArray.js.map +1 -1
  391. package/lib/esm/numerics/SmallSystem.js.map +1 -1
  392. package/lib/esm/numerics/TriDiagonalSystem.js.map +1 -1
  393. package/lib/esm/numerics/UnionFind.js.map +1 -1
  394. package/lib/esm/numerics/UsageSums.js.map +1 -1
  395. package/lib/esm/polyface/AuxData.js.map +1 -1
  396. package/lib/esm/polyface/BoxTopology.js.map +1 -1
  397. package/lib/esm/polyface/FacetFaceData.js.map +1 -1
  398. package/lib/esm/polyface/FacetLocationDetail.js.map +1 -1
  399. package/lib/esm/polyface/FacetOrientation.js.map +1 -1
  400. package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
  401. package/lib/esm/polyface/IndexedEdgeMatcher.js.map +1 -1
  402. package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  403. package/lib/esm/polyface/IndexedPolyfaceWalker.js.map +1 -1
  404. package/lib/esm/polyface/Polyface.js.map +1 -1
  405. package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
  406. package/lib/esm/polyface/PolyfaceClip.js.map +1 -1
  407. package/lib/esm/polyface/PolyfaceData.js.map +1 -1
  408. package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
  409. package/lib/esm/polyface/RangeLengthData.js.map +1 -1
  410. package/lib/esm/polyface/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
  411. package/lib/esm/polyface/RangeTree/MinimumValueTester.js.map +1 -1
  412. package/lib/esm/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
  413. package/lib/esm/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
  414. package/lib/esm/polyface/RangeTree/RangeTreeNode.js.map +1 -1
  415. package/lib/esm/polyface/RangeTree/RangeTreeSearchHandlers.js.map +1 -1
  416. package/lib/esm/polyface/TaggedNumericData.js.map +1 -1
  417. package/lib/esm/polyface/TriangleCandidate.js.map +1 -1
  418. package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
  419. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
  420. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
  421. package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
  422. package/lib/esm/polyface/multiclip/OffsetMeshContext.js.map +1 -1
  423. package/lib/esm/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
  424. package/lib/esm/polyface/multiclip/RangeSearch.js.map +1 -1
  425. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  426. package/lib/esm/polyface/multiclip/XYPointBuckets.js.map +1 -1
  427. package/lib/esm/serialization/BGFBAccessors.js.map +1 -1
  428. package/lib/esm/serialization/BGFBReader.js.map +1 -1
  429. package/lib/esm/serialization/BGFBWriter.js.map +1 -1
  430. package/lib/esm/serialization/BentleyGeometryFlatBuffer.js.map +1 -1
  431. package/lib/esm/serialization/DeepCompare.js.map +1 -1
  432. package/lib/esm/serialization/GeometrySamples.js.map +1 -1
  433. package/lib/esm/serialization/IModelJsonSchema.js.map +1 -1
  434. package/lib/esm/serialization/SerializationHelpers.js.map +1 -1
  435. package/lib/esm/solid/Box.js.map +1 -1
  436. package/lib/esm/solid/Cone.js.map +1 -1
  437. package/lib/esm/solid/LinearSweep.js.map +1 -1
  438. package/lib/esm/solid/RotationalSweep.js.map +1 -1
  439. package/lib/esm/solid/RuledSweep.js.map +1 -1
  440. package/lib/esm/solid/SolidPrimitive.js.map +1 -1
  441. package/lib/esm/solid/Sphere.js.map +1 -1
  442. package/lib/esm/solid/SweepContour.js.map +1 -1
  443. package/lib/esm/solid/TorusPipe.js.map +1 -1
  444. package/lib/esm/topology/ChainMerge.js.map +1 -1
  445. package/lib/esm/topology/Graph.js.map +1 -1
  446. package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
  447. package/lib/esm/topology/HalfEdgeGraphSearch.js.map +1 -1
  448. package/lib/esm/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  449. package/lib/esm/topology/HalfEdgeGraphValidation.js.map +1 -1
  450. package/lib/esm/topology/HalfEdgeMarkSet.js.map +1 -1
  451. package/lib/esm/topology/HalfEdgeNodeXYZUV.js.map +1 -1
  452. package/lib/esm/topology/HalfEdgePointInGraphSearch.js.map +1 -1
  453. package/lib/esm/topology/HalfEdgePositionDetail.js.map +1 -1
  454. package/lib/esm/topology/HalfEdgePriorityQueue.js.map +1 -1
  455. package/lib/esm/topology/InsertAndRetriangulateContext.js.map +1 -1
  456. package/lib/esm/topology/MaskManager.js.map +1 -1
  457. package/lib/esm/topology/Merging.js.map +1 -1
  458. package/lib/esm/topology/RegularizeFace.js.map +1 -1
  459. package/lib/esm/topology/SignedDataSummary.js.map +1 -1
  460. package/lib/esm/topology/SpaceTriangulation.js.map +1 -1
  461. package/lib/esm/topology/Triangulation.js.map +1 -1
  462. package/lib/esm/topology/XYParitySearchContext.js.map +1 -1
  463. package/package.json +3 -3
@@ -37,19 +37,19 @@ export declare enum CurveSearchStatus {
37
37
  * @public
38
38
  */
39
39
  export declare class CurveLocationDetail {
40
- /** The curve being evaluated */
40
+ /** The curve being evaluated. */
41
41
  curve?: CurvePrimitive;
42
- /** Optional ray */
42
+ /** Optional ray. */
43
43
  ray?: Ray3d;
44
- /** The fractional position along the curve */
44
+ /** The fractional position along the curve. */
45
45
  fraction: number;
46
- /** Detail condition of the role this point has in some context */
46
+ /** Detail condition of the role this point has in some context. */
47
47
  intervalRole?: CurveIntervalRole;
48
- /** The point on the curve */
48
+ /** The point on the curve. */
49
49
  point: Point3d;
50
- /** A vector (e.g. tangent vector) in context */
50
+ /** A vector (e.g. tangent vector) in context. */
51
51
  vectorInCurveLocationDetail?: Vector3d;
52
- /** A context-specific numeric value. (e.g. a distance) */
52
+ /** A context-specific numeric value (e.g., a distance). */
53
53
  a: number;
54
54
  /**
55
55
  * Optional CurveLocationDetail with more detail of location. For instance, a detail for fractional position
@@ -59,26 +59,26 @@ export declare class CurveLocationDetail {
59
59
  childDetail?: CurveLocationDetail;
60
60
  /**
61
61
  * A status indicator for certain searches.
62
- * * e.g. CurvePrimitive.moveSignedDistanceFromFraction
62
+ * * e.g., CurvePrimitive.moveSignedDistanceFromFraction.
63
63
  */
64
64
  curveSearchStatus?: CurveSearchStatus;
65
- /** (Optional) second fraction, e.g. end of interval of coincident curves */
65
+ /** (Optional) second fraction, e.g. end of interval of coincident curves. */
66
66
  fraction1?: number;
67
- /** (Optional) second point, e.g. end of interval of coincident curves */
67
+ /** (Optional) second point, e.g. end of interval of coincident curves. */
68
68
  point1?: Point3d;
69
69
  /** A context-specific temporary point, e.g. for intermediate calculations. */
70
70
  pointQ: Point3d;
71
71
  /** Constructor */
72
72
  constructor();
73
- /** Set the (optional) intervalRole field */
73
+ /** Set the (optional) intervalRole field. */
74
74
  setIntervalRole(value: CurveIntervalRole): void;
75
- /** Set the (optional) fraction1 and point1, using direct assignment (capture!) to point1 */
75
+ /** Set the (optional) fraction1 and point1, using direct assignment (capture!) to point1. */
76
76
  captureFraction1Point1(fraction1: number, point1: Point3d): void;
77
- /** Test if this pair has fraction1 defined */
77
+ /** Test if this pair has fraction1 defined. */
78
78
  get hasFraction1(): boolean;
79
- /** Test if this is an isolated point. This is true if intervalRole is any of (undefined, isolated, isolatedAtVertex) */
79
+ /** Test if this is an isolated point. This is true if intervalRole is any of (undefined, isolated, isolatedAtVertex). */
80
80
  get isIsolated(): boolean;
81
- /** Return the fraction delta. (0 if no fraction1) */
81
+ /** Return the fraction delta. (0 if no fraction1). */
82
82
  get fractionDelta(): number;
83
83
  /**
84
84
  * If (fraction1, point1) are defined, make them the primary (and only) data.
@@ -88,7 +88,7 @@ export declare class CurveLocationDetail {
88
88
  /** Make (fraction, point) the primary (and only) data. */
89
89
  collapseToStart(): void;
90
90
  /**
91
- * Return a complete copy, WITH CAVEATS . . .
91
+ * Return a complete copy, WITH CAVEATS.
92
92
  * * curve member is copied as a reference.
93
93
  * * point and vector members are cloned.
94
94
  */
@@ -96,9 +96,9 @@ export declare class CurveLocationDetail {
96
96
  /**
97
97
  * Updated in this instance.
98
98
  * * Note that if caller omits `vector` and `a`, those fields are updated to the call-list defaults (NOT left as-is)
99
- * * point and vector updates are by data copy (not capture of pointers)
100
- * @param fraction (required) fraction to install
101
- * @param point (required) point to install
99
+ * * point and vector updates are by data copy (not capture of pointers).
100
+ * @param fraction (required) fraction to install.
101
+ * @param point (required) point to install.
102
102
  * @param vector (optional) vector to install.
103
103
  * @param a (optional) numeric value to install.
104
104
  */
@@ -106,9 +106,9 @@ export declare class CurveLocationDetail {
106
106
  /**
107
107
  * Updated in this instance.
108
108
  * * Note that if caller omits a`, that field is updated to the call-list default (NOT left as-is)
109
- * * point and vector updates are by data copy (not capture of the ray members)
110
- * @param fraction (required) fraction to install
111
- * @param ray (required) point and vector to install
109
+ * * point and vector updates are by data copy (not capture of the ray members).
110
+ * @param fraction (required) fraction to install.
111
+ * @param ray (required) point and vector to install.
112
112
  * @param a (optional) numeric value to install.
113
113
  */
114
114
  setFR(fraction: number, ray: Ray3d, a?: number): void;
@@ -122,7 +122,7 @@ export declare class CurveLocationDetail {
122
122
  static createCurveFractionPoint(curve: CurvePrimitive | undefined, fraction: number, point: Point3d, result?: CurveLocationDetail): CurveLocationDetail;
123
123
  /** Create a new detail with only ray, fraction, and point. */
124
124
  static createRayFractionPoint(ray: Ray3d, fraction: number, point: Point3d, result?: CurveLocationDetail): CurveLocationDetail;
125
- /** Create with CurvePrimitive pointer, fraction, and point coordinates */
125
+ /** Create with CurvePrimitive pointer, fraction, and point coordinates. */
126
126
  static createCurveFractionPointDistanceCurveSearchStatus(curve: CurvePrimitive | undefined, fraction: number, point: Point3d, distance: number, status: CurveSearchStatus, result?: CurveLocationDetail): CurveLocationDetail;
127
127
  /** Create with curveSearchStatus affected by allowExtension. */
128
128
  static createConditionalMoveSignedDistance(allowExtension: boolean, curve: CurvePrimitive, startFraction: number, endFraction: number, requestedSignedDistance: number, result?: CurveLocationDetail): CurveLocationDetail;
@@ -140,7 +140,7 @@ export declare class CurveLocationDetail {
140
140
  * @param fraction candidate fraction
141
141
  * @param point candidate point
142
142
  * @param a candidate distance
143
- * @returns true if the given distance is smaller (and hence this detail was updated.)
143
+ * @returns true if the given distance is smaller (and hence this detail was updated)
144
144
  */
145
145
  updateIfCloserCurveFractionPointDistance(curve: CurvePrimitive, fraction: number, point: Point3d, a: number): boolean;
146
146
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"CurveLocationDetail.d.ts","sourceRoot":"","sources":["../../../src/curve/CurveLocationDetail.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAClE,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,EAAE,uBAAuB,GAC3F,uBAAuB;IAM1B;;;OAGG;WACW,4BAA4B,CACxC,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,uBAAuB,GAC9G,uBAAuB;IAY1B,uDAAuD;IAChD,KAAK,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,uBAAuB;IAOvE,+BAA+B;IACxB,WAAW;IAKlB;;;;;;;;;OASG;WACW,wBAAwB,CAAC,KAAK,EAAE,uBAAuB,EAAE,EAAE,MAAM,GAAE,MAAU,GAAG,uBAAuB,EAAE;IAgBvH;;;;;OAKG;IACI,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO;CAG1D;AAED;;;;GAIG;AACH,qBAAa,4BAA4B;IACvC,8BAA8B;IACvB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IACpC,+BAA+B;IACxB,KAAK,EAAE,mBAAmB,EAAE,CAAC;;CAKrC"}
@@ -57,19 +57,19 @@ function optionalUpdate(source, result) {
57
57
  * @public
58
58
  */
59
59
  class CurveLocationDetail {
60
- /** The curve being evaluated */
60
+ /** The curve being evaluated. */
61
61
  curve;
62
- /** Optional ray */
62
+ /** Optional ray. */
63
63
  ray;
64
- /** The fractional position along the curve */
64
+ /** The fractional position along the curve. */
65
65
  fraction;
66
- /** Detail condition of the role this point has in some context */
66
+ /** Detail condition of the role this point has in some context. */
67
67
  intervalRole;
68
- /** The point on the curve */
68
+ /** The point on the curve. */
69
69
  point;
70
- /** A vector (e.g. tangent vector) in context */
70
+ /** A vector (e.g. tangent vector) in context. */
71
71
  vectorInCurveLocationDetail;
72
- /** A context-specific numeric value. (e.g. a distance) */
72
+ /** A context-specific numeric value (e.g., a distance). */
73
73
  a;
74
74
  /**
75
75
  * Optional CurveLocationDetail with more detail of location. For instance, a detail for fractional position
@@ -79,12 +79,12 @@ class CurveLocationDetail {
79
79
  childDetail;
80
80
  /**
81
81
  * A status indicator for certain searches.
82
- * * e.g. CurvePrimitive.moveSignedDistanceFromFraction
82
+ * * e.g., CurvePrimitive.moveSignedDistanceFromFraction.
83
83
  */
84
84
  curveSearchStatus;
85
- /** (Optional) second fraction, e.g. end of interval of coincident curves */
85
+ /** (Optional) second fraction, e.g. end of interval of coincident curves. */
86
86
  fraction1;
87
- /** (Optional) second point, e.g. end of interval of coincident curves */
87
+ /** (Optional) second point, e.g. end of interval of coincident curves. */
88
88
  point1;
89
89
  /** A context-specific temporary point, e.g. for intermediate calculations. */
90
90
  pointQ;
@@ -95,26 +95,26 @@ class CurveLocationDetail {
95
95
  this.point = Point3dVector3d_1.Point3d.createZero();
96
96
  this.a = 0.0;
97
97
  }
98
- /** Set the (optional) intervalRole field */
98
+ /** Set the (optional) intervalRole field. */
99
99
  setIntervalRole(value) {
100
100
  this.intervalRole = value;
101
101
  }
102
- /** Set the (optional) fraction1 and point1, using direct assignment (capture!) to point1 */
102
+ /** Set the (optional) fraction1 and point1, using direct assignment (capture!) to point1. */
103
103
  captureFraction1Point1(fraction1, point1) {
104
104
  this.fraction1 = fraction1;
105
105
  this.point1 = point1;
106
106
  }
107
- /** Test if this pair has fraction1 defined */
107
+ /** Test if this pair has fraction1 defined. */
108
108
  get hasFraction1() {
109
109
  return this.fraction1 !== undefined;
110
110
  }
111
- /** Test if this is an isolated point. This is true if intervalRole is any of (undefined, isolated, isolatedAtVertex) */
111
+ /** Test if this is an isolated point. This is true if intervalRole is any of (undefined, isolated, isolatedAtVertex). */
112
112
  get isIsolated() {
113
113
  return this.intervalRole === undefined
114
114
  || this.intervalRole === CurveIntervalRole.isolated
115
115
  || this.intervalRole === CurveIntervalRole.isolatedAtVertex;
116
116
  }
117
- /** Return the fraction delta. (0 if no fraction1) */
117
+ /** Return the fraction delta. (0 if no fraction1). */
118
118
  get fractionDelta() {
119
119
  return this.fraction1 !== undefined ? this.fraction1 - this.fraction : 0.0;
120
120
  }
@@ -135,7 +135,7 @@ class CurveLocationDetail {
135
135
  this.point1 = undefined;
136
136
  }
137
137
  /**
138
- * Return a complete copy, WITH CAVEATS . . .
138
+ * Return a complete copy, WITH CAVEATS.
139
139
  * * curve member is copied as a reference.
140
140
  * * point and vector members are cloned.
141
141
  */
@@ -157,9 +157,9 @@ class CurveLocationDetail {
157
157
  /**
158
158
  * Updated in this instance.
159
159
  * * Note that if caller omits `vector` and `a`, those fields are updated to the call-list defaults (NOT left as-is)
160
- * * point and vector updates are by data copy (not capture of pointers)
161
- * @param fraction (required) fraction to install
162
- * @param point (required) point to install
160
+ * * point and vector updates are by data copy (not capture of pointers).
161
+ * @param fraction (required) fraction to install.
162
+ * @param point (required) point to install.
163
163
  * @param vector (optional) vector to install.
164
164
  * @param a (optional) numeric value to install.
165
165
  */
@@ -172,9 +172,9 @@ class CurveLocationDetail {
172
172
  /**
173
173
  * Updated in this instance.
174
174
  * * Note that if caller omits a`, that field is updated to the call-list default (NOT left as-is)
175
- * * point and vector updates are by data copy (not capture of the ray members)
176
- * @param fraction (required) fraction to install
177
- * @param ray (required) point and vector to install
175
+ * * point and vector updates are by data copy (not capture of the ray members).
176
+ * @param fraction (required) fraction to install.
177
+ * @param ray (required) point and vector to install.
178
178
  * @param a (optional) numeric value to install.
179
179
  */
180
180
  setFR(fraction, ray, a = 0) {
@@ -214,7 +214,7 @@ class CurveLocationDetail {
214
214
  result.point.setFromPoint3d(point);
215
215
  return result;
216
216
  }
217
- /** Create with CurvePrimitive pointer, fraction, and point coordinates */
217
+ /** Create with CurvePrimitive pointer, fraction, and point coordinates. */
218
218
  static createCurveFractionPointDistanceCurveSearchStatus(curve, fraction, point, distance, status, result) {
219
219
  result = result ? result : new CurveLocationDetail();
220
220
  result.curve = curve;
@@ -310,7 +310,7 @@ class CurveLocationDetail {
310
310
  * @param fraction candidate fraction
311
311
  * @param point candidate point
312
312
  * @param a candidate distance
313
- * @returns true if the given distance is smaller (and hence this detail was updated.)
313
+ * @returns true if the given distance is smaller (and hence this detail was updated)
314
314
  */
315
315
  updateIfCloserCurveFractionPointDistance(curve, fraction, point, a) {
316
316
  if (this.a < a)
@@ -1 +1 @@
1
- {"version":3,"file":"CurveLocationDetail.js","sourceRoot":"","sources":["../../../src/curve/CurveLocationDetail.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,0CAAmD;AACnD,mEAAkE;AAKlE;;;GAGG;AACH,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,+DAA+D;IAC/D,iEAAY,CAAA;IACZ,2CAA2C;IAC3C,iFAAoB,CAAA;IACpB,2CAA2C;IAC3C,4EAAkB,CAAA;IAClB,gDAAgD;IAChD,kFAAqB,CAAA;IACrB,qCAAqC;IACrC,wEAAgB,CAAA;AAClB,CAAC,EAXW,iBAAiB,iCAAjB,iBAAiB,QAW5B;AAED;;;GAGG;AACH,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,0CAA0C;IAC1C,2DAAK,CAAA;IACL,iCAAiC;IACjC,+DAAW,CAAA;IACX,4FAA4F;IAC5F,mFAAqB,CAAA;AACvB,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAED;;;;;;GAMG;AACH,SAAS,cAAc,CAA0B,MAAqB,EAAE,MAAqB;IAC3F,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACnD,CAAC;AAED;;;;;GAKG;AACH,MAAa,mBAAmB;IAC9B,gCAAgC;IACzB,KAAK,CAAkB;IAC9B,mBAAmB;IACZ,GAAG,CAAS;IACnB,8CAA8C;IACvC,QAAQ,CAAS;IACxB,kEAAkE;IAC3D,YAAY,CAAqB;IACxC,6BAA6B;IACtB,KAAK,CAAU;IACtB,gDAAgD;IACzC,2BAA2B,CAAY;IAC9C,0DAA0D;IACnD,CAAC,CAAS;IACjB;;;;OAIG;IACI,WAAW,CAAuB;IACzC;;;OAGG;IACI,iBAAiB,CAAqB;IAC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YACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAE,yBAAyB;QAC3C,CAAC,CACF,CAAC;IACJ,CAAC;IACD;;;;;OAKG;IACI,mBAAmB,CAAC,SAAoB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;IACpG,CAAC;CACF;AA3FD,0DA2FC;AAED;;;;GAIG;AACH,MAAa,4BAA4B;IACvC,8BAA8B;IACvB,KAAK,CAAwB;IACpC,+BAA+B;IACxB,KAAK,CAAwB;IACpC;QACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IAClB,CAAC;CACF;AATD,oEASC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Curve\n */\nimport { Geometry, ICloneable } from \"../Geometry\";\nimport { Point3d, Vector3d } from \"../geometry3d/Point3dVector3d\";\nimport { Ray3d } from \"../geometry3d/Ray3d\";\nimport { Transform } from \"../geometry3d/Transform\";\nimport { CurvePrimitive } from \"./CurvePrimitive\";\n\n/**\n * An enumeration of special conditions being described by a CurveLocationDetail.\n * @public\n */\nexport enum CurveIntervalRole {\n /** This point is an isolated point NOT at a primary vertex. */\n isolated = 0,\n /** This point is an isolated vertex hit */\n isolatedAtVertex = 1,\n /** This is the beginning of an interval */\n intervalStart = 10,\n /** This is an interior point of an interval. */\n intervalInterior = 11,\n /** This is the end of an interval */\n intervalEnd = 12,\n}\n\n/**\n * Return code for CurvePrimitive method `moveSignedDistanceFromFraction`\n * @public\n */\nexport enum CurveSearchStatus {\n /** Unimplemented or zero length curve */\n error,\n /** Complete success of search */\n success = 1,\n /** Search ended prematurely (e.g. at incomplete distance moved) at start or end of curve */\n stoppedAtBoundary = 2,\n}\n\n/**\n * Use to update a cloneable object when source and/or prior result are possibly undefined.\n * * Any undefined source returns undefined.\n * * For defined source, reuse optional result if available.\n * @param source optional source\n * @param result optional result\n */\nfunction optionalUpdate<T extends ICloneable<T>>(source: T | undefined, result: T | undefined): T | undefined {\n return source ? source.clone(result) : undefined;\n}\n\n/**\n * CurveLocationDetail carries point and parameter data about a point evaluated on a curve.\n * * These are returned by a variety of queries.\n * * Particular contents can vary among the queries.\n * @public\n */\nexport class CurveLocationDetail {\n /** The curve being evaluated */\n public curve?: CurvePrimitive;\n /** Optional ray */\n public ray?: Ray3d;\n /** The fractional position along the curve */\n public fraction: number;\n /** Detail condition of the role this point has in some context */\n public intervalRole?: CurveIntervalRole;\n /** The point on the curve */\n public point: Point3d;\n /** A vector (e.g. tangent vector) in context */\n public vectorInCurveLocationDetail?: Vector3d;\n /** A context-specific numeric value. (e.g. a distance) */\n public a: number;\n /**\n * Optional CurveLocationDetail with more detail of location. For instance, a detail for fractional position\n * within a CurveChainWithDistanceIndex returns fraction and distance along the chain as its primary data and\n * further detail of the particular curve within the chain in the childDetail.\n */\n public childDetail?: CurveLocationDetail;\n /**\n * A status indicator for certain searches.\n * * e.g. CurvePrimitive.moveSignedDistanceFromFraction\n */\n public curveSearchStatus?: CurveSearchStatus;\n /** (Optional) second fraction, e.g. end of interval of coincident curves */\n public fraction1?: number;\n /** (Optional) second point, e.g. end of interval of coincident curves */\n public point1?: Point3d;\n /** A context-specific temporary point, e.g. for intermediate calculations. */\n public pointQ: Point3d;\n /** Constructor */\n public constructor() {\n this.pointQ = Point3d.createZero();\n this.fraction = 0;\n this.point = Point3d.createZero();\n this.a = 0.0;\n }\n /** Set the (optional) intervalRole field */\n public setIntervalRole(value: CurveIntervalRole): void {\n this.intervalRole = value;\n }\n /** Set the (optional) fraction1 and point1, using direct assignment (capture!) to point1 */\n public captureFraction1Point1(fraction1: number, point1: Point3d): void {\n this.fraction1 = fraction1;\n this.point1 = point1;\n }\n /** Test if this pair has fraction1 defined */\n public get hasFraction1(): boolean {\n return this.fraction1 !== undefined;\n }\n /** Test if this is an isolated point. This is true if intervalRole is any of (undefined, isolated, isolatedAtVertex) */\n public get isIsolated(): boolean {\n return this.intervalRole === undefined\n || this.intervalRole === CurveIntervalRole.isolated\n || this.intervalRole === CurveIntervalRole.isolatedAtVertex;\n }\n /** Return the fraction delta. (0 if no fraction1) */\n public get fractionDelta(): number {\n return this.fraction1 !== undefined ? this.fraction1 - this.fraction : 0.0;\n }\n /**\n * If (fraction1, point1) are defined, make them the primary (and only) data.\n * * No action if undefined.\n */\n public collapseToEnd() {\n if (this.fraction1 !== undefined)\n this.fraction = this.fraction1;\n if (this.point1)\n this.point = this.point1;\n this.collapseToStart();\n }\n /** Make (fraction, point) the primary (and only) data. */\n public collapseToStart() {\n this.fraction1 = undefined;\n this.point1 = undefined;\n }\n /**\n * Return a complete copy, WITH CAVEATS . . .\n * * curve member is copied as a reference.\n * * point and vector members are cloned.\n */\n public clone(result?: CurveLocationDetail): CurveLocationDetail {\n if (result === this)\n return result;\n result = result ? result : new CurveLocationDetail();\n result.curve = this.curve;\n result.fraction = this.fraction;\n result.fraction1 = this.fraction1;\n result.point1 = optionalUpdate<Point3d>(this.point1, result.point1);\n result.point.setFromPoint3d(this.point);\n result.vectorInCurveLocationDetail = optionalUpdate<Vector3d>(this.vectorInCurveLocationDetail, result.vectorInCurveLocationDetail);\n result.a = this.a;\n result.childDetail = optionalUpdate<CurveLocationDetail>(this.childDetail, result.childDetail);\n result.curveSearchStatus = this.curveSearchStatus;\n return result;\n }\n /**\n * Updated in this instance.\n * * Note that if caller omits `vector` and `a`, those fields are updated to the call-list defaults (NOT left as-is)\n * * point and vector updates are by data copy (not capture of pointers)\n * @param fraction (required) fraction to install\n * @param point (required) point to install\n * @param vector (optional) vector to install.\n * @param a (optional) numeric value to install.\n */\n public setFP(fraction: number, point: Point3d, vector?: Vector3d, a: number = 0.0): void {\n this.fraction = fraction;\n this.point.setFromPoint3d(point);\n this.vectorInCurveLocationDetail = optionalUpdate<Vector3d>(vector, this.vectorInCurveLocationDetail);\n this.a = a;\n }\n /**\n * Updated in this instance.\n * * Note that if caller omits a`, that field is updated to the call-list default (NOT left as-is)\n * * point and vector updates are by data copy (not capture of the ray members)\n * @param fraction (required) fraction to install\n * @param ray (required) point and vector to install\n * @param a (optional) numeric value to install.\n */\n public setFR(fraction: number, ray: Ray3d, a: number = 0): void {\n return this.setFP(fraction, ray.origin, ray.direction, a);\n }\n /** Set the CurvePrimitive pointer, leaving all other properties untouched. */\n public setCurve(curve: CurvePrimitive) {\n this.curve = curve;\n }\n /** Record the distance from the CurveLocationDetail's point to the parameter point. */\n public setDistanceTo(point: Point3d) {\n this.a = this.point.distance(point);\n }\n /** Create with a CurvePrimitive pointer but no coordinate data. */\n public static create(curve?: CurvePrimitive, result?: CurveLocationDetail): CurveLocationDetail {\n result = result ? result : new CurveLocationDetail();\n result.curve = curve;\n return result;\n }\n /** Create a new detail using CurvePrimitive pointer, fraction, and point coordinates. */\n public static createCurveFractionPoint(\n curve: CurvePrimitive | undefined, fraction: number, point: Point3d, result?: CurveLocationDetail,\n ): CurveLocationDetail {\n result = result ? result : new CurveLocationDetail();\n result.curve = curve;\n result.fraction = fraction;\n result.point.setFromPoint3d(point);\n result.vectorInCurveLocationDetail = undefined;\n result.a = 0.0;\n result.childDetail = undefined;\n result.curveSearchStatus = undefined;\n return result;\n }\n /** Create a new detail with only ray, fraction, and point. */\n public static createRayFractionPoint(\n ray: Ray3d, fraction: number, point: Point3d, result?: CurveLocationDetail,\n ): CurveLocationDetail {\n result = result ? result : new CurveLocationDetail();\n result.fraction = fraction;\n result.ray = ray;\n result.point.setFromPoint3d(point);\n return result;\n }\n /** Create with CurvePrimitive pointer, fraction, and point coordinates */\n public static createCurveFractionPointDistanceCurveSearchStatus(\n curve: CurvePrimitive | undefined,\n fraction: number,\n point: Point3d,\n distance: number,\n status: CurveSearchStatus,\n result?: CurveLocationDetail,\n ): CurveLocationDetail {\n result = result ? result : new CurveLocationDetail();\n result.curve = curve;\n result.fraction = fraction;\n result.point.setFromPoint3d(point);\n result.vectorInCurveLocationDetail = undefined;\n result.a = distance;\n result.childDetail = undefined;\n result.curveSearchStatus = status;\n return result;\n }\n /** Create with curveSearchStatus affected by allowExtension. */\n public static createConditionalMoveSignedDistance(\n allowExtension: boolean,\n curve: CurvePrimitive,\n startFraction: number,\n endFraction: number,\n requestedSignedDistance: number,\n result?: CurveLocationDetail,\n ): CurveLocationDetail {\n let a = requestedSignedDistance;\n let status = CurveSearchStatus.success;\n if (!allowExtension && !Geometry.isIn01(endFraction)) {\n // cap the movement at the endpoint\n if (endFraction < 0.0) {\n a = - curve.curveLengthBetweenFractions(startFraction, 0.0);\n endFraction = 0.0;\n status = CurveSearchStatus.stoppedAtBoundary;\n } else if (endFraction > 1.0) {\n endFraction = 1.0;\n a = curve.curveLengthBetweenFractions(startFraction, 1.0);\n status = CurveSearchStatus.stoppedAtBoundary;\n }\n }\n result = result ? result : new CurveLocationDetail();\n result.curve = curve;\n result.fraction = endFraction;\n curve.fractionToPoint(endFraction, result.point);\n result.vectorInCurveLocationDetail = undefined;\n result.a = a;\n result.childDetail = undefined;\n result.curveSearchStatus = status;\n return result;\n }\n /** Create with CurvePrimitive pointer and fraction for evaluation. */\n public static createCurveEvaluatedFraction(\n curve: CurvePrimitive, fraction: number, result?: CurveLocationDetail,\n ): CurveLocationDetail {\n result = result ? result : new CurveLocationDetail();\n result.curve = curve;\n result.fraction = fraction;\n curve.fractionToPoint(fraction, result.point);\n result.vectorInCurveLocationDetail = undefined;\n result.a = 0.0;\n result.childDetail = undefined;\n result.curveSearchStatus = undefined;\n return result;\n }\n /** Create with CurvePrimitive pointer and fraction for evaluation. */\n public static createCurveEvaluatedFractionPointAndDerivative(\n curve: CurvePrimitive, fraction: number, result?: CurveLocationDetail,\n ): CurveLocationDetail {\n result = result ? result : new CurveLocationDetail();\n result.curve = curve;\n result.fraction = fraction;\n const ray = curve.fractionToPointAndDerivative(fraction);\n result.point.setFromPoint3d(ray.origin);\n result.vectorInCurveLocationDetail = ray.direction;\n result.a = 0.0;\n result.childDetail = undefined;\n result.curveSearchStatus = undefined;\n return result;\n }\n /** Create with CurvePrimitive pointer and 2 fractions for evaluation. */\n public static createCurveEvaluatedFractionFraction(\n curve: CurvePrimitive, fraction0: number, fraction1: number, result?: CurveLocationDetail,\n ): CurveLocationDetail {\n result = result ? result : new CurveLocationDetail();\n result.curve = curve;\n result.fraction = fraction0;\n curve.fractionToPoint(fraction0, result.point);\n result.fraction1 = fraction1;\n result.point1 = curve.fractionToPoint(fraction1, result.point1);\n result.vectorInCurveLocationDetail = undefined;\n result.a = 0.0;\n result.childDetail = undefined;\n result.curveSearchStatus = undefined;\n return result;\n }\n /** Create with CurvePrimitive pointer, fraction, and point coordinates. */\n public static createCurveFractionPointDistance(\n curve: CurvePrimitive,\n fraction: number,\n point: Point3d,\n a: number,\n result?: CurveLocationDetail,\n ): CurveLocationDetail {\n result = result ? result : new CurveLocationDetail();\n result.curve = curve;\n result.fraction = fraction;\n result.point.setFromPoint3d(point);\n result.vectorInCurveLocationDetail = undefined;\n result.a = a;\n result.childDetail = undefined;\n result.curveSearchStatus = undefined;\n return result;\n }\n /**\n * Update or create if closer than current contents.\n * @param curve candidate curve\n * @param fraction candidate fraction\n * @param point candidate point\n * @param a candidate distance\n * @returns true if the given distance is smaller (and hence this detail was updated.)\n */\n public updateIfCloserCurveFractionPointDistance(\n curve: CurvePrimitive, fraction: number, point: Point3d, a: number,\n ): boolean {\n if (this.a < a)\n return false;\n CurveLocationDetail.createCurveFractionPointDistance(curve, fraction, point, a, this);\n return true;\n }\n /**\n * Exchange the (fraction,fraction1) and (point, point1) pairs.\n * * (Skip each swap if its \"1\" value is undefined)\n */\n public swapFractionsAndPoints(): void {\n if (this.fraction1 !== undefined) {\n const f = this.fraction;\n this.fraction = this.fraction1;\n this.fraction1 = f;\n }\n if (this.point1 !== undefined) {\n const p = this.point;\n this.point = this.point1;\n this.point1 = p;\n }\n }\n /**\n * Return the fraction where f falls between fraction and fraction1.\n * * ASSUME fraction1 defined\n */\n public inverseInterpolateFraction(f: number, defaultFraction: number = 0): number {\n const a = Geometry.inverseInterpolate01(this.fraction, this.fraction1!, f);\n if (a === undefined)\n return defaultFraction;\n return a;\n }\n /**\n * Return the detail with smaller `a` value -- detailA returned if equal.\n * @param detailA first candidate\n * @param detailB second candidate\n */\n public static chooseSmallerA(\n detailA: CurveLocationDetail | undefined, detailB: CurveLocationDetail | undefined,\n ): CurveLocationDetail | undefined {\n if (detailA) {\n if (!detailB)\n return detailA;\n return detailA.a <= detailB.a ? detailA : detailB;\n }\n return detailB;\n }\n /** Compare only the curve and fraction of this detail with `other`. */\n public isSameCurveAndFraction(other: CurveLocationDetail | {curve: CurvePrimitive, fraction: number}): boolean {\n return this.curve === other.curve && Geometry.isAlmostEqualNumber(this.fraction, other.fraction);\n }\n /**\n * Transform the detail in place.\n * * All numerical properties are transformed directly, except:\n * * when `curve` is defined, `point` and `point1` are reset by evaluating the transformed curve at `fraction` and `fraction1`\n * * these properties are untouched: `a`, `fraction`, `fraction1`, `pointQ`\n * @param transform the transform to apply\n * @return true if and only if the transformation was successful. If false, the instance is in an indeterminate\n * state and should not be used.\n */\n public tryTransformInPlace(transform: Transform): boolean {\n if (this.curve && !this.curve.tryTransformInPlace(transform))\n return false;\n if (this.ray)\n this.ray.transformInPlace(transform);\n if (this.curve)\n this.curve.fractionToPoint(this.fraction, this.point);\n else\n transform.multiplyXYAndZInPlace(this.point);\n if (this.vectorInCurveLocationDetail)\n transform.multiplyVectorInPlace(this.vectorInCurveLocationDetail);\n if (this.childDetail && this.childDetail !== this && !this.childDetail.tryTransformInPlace(transform))\n return false;\n if (this.point1) {\n if (this.curve && this.fraction1)\n this.curve.fractionToPoint(this.fraction1, this.point1);\n else\n transform.multiplyXYAndZInPlace(this.point1);\n }\n return true;\n }\n}\n\n/**\n * Enumeration of configurations for intersections and min/max distance-between-curve\n * @public\n */\nexport enum CurveCurveApproachType {\n /** Intersection at a single point */\n Intersection = 0,\n /** Distinct points on the two curves, with each curve's tangent perpendicular to the chord between the points */\n PerpendicularChord = 1,\n /** Completely coincident geometry */\n CoincidentGeometry = 2,\n /** Completely parallel geometry. */\n ParallelGeometry = 3,\n}\n\n/**\n * A pair of CurveLocationDetail.\n * @public\n */\nexport class CurveLocationDetailPair {\n /** The first of the two details. */\n public detailA: CurveLocationDetail;\n /** The second of the two details. */\n public detailB: CurveLocationDetail;\n /**\n * Enumeration of how the detail pairs relate.\n * * This is set only by certain closeApproach calculations.\n */\n public approachType?: CurveCurveApproachType;\n\n public constructor(detailA?: CurveLocationDetail, detailB?: CurveLocationDetail) {\n this.detailA = detailA ? detailA : new CurveLocationDetail();\n this.detailB = detailB ? detailB : new CurveLocationDetail();\n }\n /** Create a curve detail pair using references to two CurveLocationDetails */\n public static createCapture(\n detailA: CurveLocationDetail, detailB: CurveLocationDetail, result?: CurveLocationDetailPair,\n ): CurveLocationDetailPair {\n result = result ? result : new CurveLocationDetailPair();\n result.detailA = detailA;\n result.detailB = detailB;\n return result;\n }\n /**\n * Create a curve detail pair using references to two CurveLocationDetails.\n * * optionally install in reversed positions\n */\n public static createCaptureOptionalReverse(\n detailA: CurveLocationDetail, detailB: CurveLocationDetail, reversed: boolean, result?: CurveLocationDetailPair,\n ): CurveLocationDetailPair {\n result = result ? result : new CurveLocationDetailPair();\n if (reversed) {\n result.detailA = detailA;\n result.detailB = detailB;\n\n } else {\n result.detailA = detailA;\n result.detailB = detailB;\n }\n return result;\n }\n /** Make a deep copy of this CurveLocationDetailPair */\n public clone(result?: CurveLocationDetailPair): CurveLocationDetailPair {\n result = result ? result : new CurveLocationDetailPair();\n result.detailA = this.detailA.clone();\n result.detailB = this.detailB.clone();\n result.approachType = this.approachType;\n return result;\n }\n /** Swap the details of A, B */\n public swapDetails() {\n const q = this.detailA;\n this.detailA = this.detailB;\n this.detailB = q;\n }\n /**\n * Mutate the input array by removing the second of two adjacent duplicate pairs.\n * * Ignores details representing coincident intervals (e.g., for which `fraction1` is defined).\n * * Comparison is performed by [[CurveLocationDetail.isSameCurveAndFraction]].\n * * No sorting is performed.\n * @param pairs array to de-duplicate in place\n * @param index0 look for duplicates in the tail of the array starting at index0\n * @return reference to input array\n * @internal\n */\n public static removeAdjacentDuplicates(pairs: CurveLocationDetailPair[], index0: number = 0): CurveLocationDetailPair[] {\n return pairs.flatMap(\n (pair: CurveLocationDetailPair, i: number, arr: CurveLocationDetailPair[]) => {\n if (i >= index0 && i > 0) {\n if (!pair.detailA.hasFraction1 && !pair.detailB.hasFraction1) {\n if (pair.detailA.isSameCurveAndFraction(arr[i - 1].detailA)) {\n if (pair.detailB.isSameCurveAndFraction(arr[i - 1].detailB)) {\n return []; // remove the i_th pair\n }\n }\n }\n }\n return [pair]; // preserve the i_th pair\n },\n );\n }\n /**\n * Transform the details in place.\n * @param transform the transform to apply\n * @return true if and only if the transformation was successful on both details.\n * If false, the instance is in an indeterminate state and should not be used.\n */\n public tryTransformInPlace(transform: Transform): boolean {\n return this.detailA.tryTransformInPlace(transform) && this.detailB.tryTransformInPlace(transform);\n }\n}\n\n/**\n * Data bundle for a pair of arrays of CurveLocationDetail structures.\n * @deprecated in 4.x. Use CurveLocationDetailPair[] instead.\n * @public\n */\nexport class CurveLocationDetailArrayPair {\n /** First array of details. */\n public dataA: CurveLocationDetail[];\n /** Second array of details. */\n public dataB: CurveLocationDetail[];\n public constructor() {\n this.dataA = [];\n this.dataB = [];\n }\n}\n"]}
1
+ {"version":3,"file":"CurveLocationDetail.js","sourceRoot":"","sources":["../../../src/curve/CurveLocationDetail.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,0CAAmD;AACnD,mEAAkE;AAKlE;;;GAGG;AACH,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,+DAA+D;IAC/D,iEAAY,CAAA;IACZ,2CAA2C;IAC3C,iFAAo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B,KAAK,CAAwB;IACpC,+BAA+B;IACxB,KAAK,CAAwB;IACpC;QACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IAClB,CAAC;CACF;AATD,oEASC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Curve\r\n */\r\nimport { Geometry, ICloneable } from \"../Geometry\";\r\nimport { Point3d, Vector3d } from \"../geometry3d/Point3dVector3d\";\r\nimport { Ray3d } from \"../geometry3d/Ray3d\";\r\nimport { Transform } from \"../geometry3d/Transform\";\r\nimport { CurvePrimitive } from \"./CurvePrimitive\";\r\n\r\n/**\r\n * An enumeration of special conditions being described by a CurveLocationDetail.\r\n * @public\r\n */\r\nexport enum CurveIntervalRole {\r\n /** This point is an isolated point NOT at a primary vertex. */\r\n isolated = 0,\r\n /** This point is an isolated vertex hit */\r\n isolatedAtVertex = 1,\r\n /** This is the beginning of an interval */\r\n intervalStart = 10,\r\n /** This is an interior point of an interval. */\r\n intervalInterior = 11,\r\n /** This is the end of an interval */\r\n intervalEnd = 12,\r\n}\r\n\r\n/**\r\n * Return code for CurvePrimitive method `moveSignedDistanceFromFraction`\r\n * @public\r\n */\r\nexport enum CurveSearchStatus {\r\n /** Unimplemented or zero length curve */\r\n error,\r\n /** Complete success of search */\r\n success = 1,\r\n /** Search ended prematurely (e.g. at incomplete distance moved) at start or end of curve */\r\n stoppedAtBoundary = 2,\r\n}\r\n\r\n/**\r\n * Use to update a cloneable object when source and/or prior result are possibly undefined.\r\n * * Any undefined source returns undefined.\r\n * * For defined source, reuse optional result if available.\r\n * @param source optional source\r\n * @param result optional result\r\n */\r\nfunction optionalUpdate<T extends ICloneable<T>>(source: T | undefined, result: T | undefined): T | undefined {\r\n return source ? source.clone(result) : undefined;\r\n}\r\n\r\n/**\r\n * CurveLocationDetail carries point and parameter data about a point evaluated on a curve.\r\n * * These are returned by a variety of queries.\r\n * * Particular contents can vary among the queries.\r\n * @public\r\n */\r\nexport class CurveLocationDetail {\r\n /** The curve being evaluated. */\r\n public curve?: CurvePrimitive;\r\n /** Optional ray. */\r\n public ray?: Ray3d;\r\n /** The fractional position along the curve. */\r\n public fraction: number;\r\n /** Detail condition of the role this point has in some context. */\r\n public intervalRole?: CurveIntervalRole;\r\n /** The point on the curve. */\r\n public point: Point3d;\r\n /** A vector (e.g. tangent vector) in context. */\r\n public vectorInCurveLocationDetail?: Vector3d;\r\n /** A context-specific numeric value (e.g., a distance). */\r\n public a: number;\r\n /**\r\n * Optional CurveLocationDetail with more detail of location. For instance, a detail for fractional position\r\n * within a CurveChainWithDistanceIndex returns fraction and distance along the chain as its primary data and\r\n * further detail of the particular curve within the chain in the childDetail.\r\n */\r\n public childDetail?: CurveLocationDetail;\r\n /**\r\n * A status indicator for certain searches.\r\n * * e.g., CurvePrimitive.moveSignedDistanceFromFraction.\r\n */\r\n public curveSearchStatus?: CurveSearchStatus;\r\n /** (Optional) second fraction, e.g. end of interval of coincident curves. */\r\n public fraction1?: number;\r\n /** (Optional) second point, e.g. end of interval of coincident curves. */\r\n public point1?: Point3d;\r\n /** A context-specific temporary point, e.g. for intermediate calculations. */\r\n public pointQ: Point3d;\r\n /** Constructor */\r\n public constructor() {\r\n this.pointQ = Point3d.createZero();\r\n this.fraction = 0;\r\n this.point = Point3d.createZero();\r\n this.a = 0.0;\r\n }\r\n /** Set the (optional) intervalRole field. */\r\n public setIntervalRole(value: CurveIntervalRole): void {\r\n this.intervalRole = value;\r\n }\r\n /** Set the (optional) fraction1 and point1, using direct assignment (capture!) to point1. */\r\n public captureFraction1Point1(fraction1: number, point1: Point3d): void {\r\n this.fraction1 = fraction1;\r\n this.point1 = point1;\r\n }\r\n /** Test if this pair has fraction1 defined. */\r\n public get hasFraction1(): boolean {\r\n return this.fraction1 !== undefined;\r\n }\r\n /** Test if this is an isolated point. This is true if intervalRole is any of (undefined, isolated, isolatedAtVertex). */\r\n public get isIsolated(): boolean {\r\n return this.intervalRole === undefined\r\n || this.intervalRole === CurveIntervalRole.isolated\r\n || this.intervalRole === CurveIntervalRole.isolatedAtVertex;\r\n }\r\n /** Return the fraction delta. (0 if no fraction1). */\r\n public get fractionDelta(): number {\r\n return this.fraction1 !== undefined ? this.fraction1 - this.fraction : 0.0;\r\n }\r\n /**\r\n * If (fraction1, point1) are defined, make them the primary (and only) data.\r\n * * No action if undefined.\r\n */\r\n public collapseToEnd() {\r\n if (this.fraction1 !== undefined)\r\n this.fraction = this.fraction1;\r\n if (this.point1)\r\n this.point = this.point1;\r\n this.collapseToStart();\r\n }\r\n /** Make (fraction, point) the primary (and only) data. */\r\n public collapseToStart() {\r\n this.fraction1 = undefined;\r\n this.point1 = undefined;\r\n }\r\n /**\r\n * Return a complete copy, WITH CAVEATS.\r\n * * curve member is copied as a reference.\r\n * * point and vector members are cloned.\r\n */\r\n public clone(result?: CurveLocationDetail): CurveLocationDetail {\r\n if (result === this)\r\n return result;\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = this.curve;\r\n result.fraction = this.fraction;\r\n result.fraction1 = this.fraction1;\r\n result.point1 = optionalUpdate<Point3d>(this.point1, result.point1);\r\n result.point.setFromPoint3d(this.point);\r\n result.vectorInCurveLocationDetail = optionalUpdate<Vector3d>(this.vectorInCurveLocationDetail, result.vectorInCurveLocationDetail);\r\n result.a = this.a;\r\n result.childDetail = optionalUpdate<CurveLocationDetail>(this.childDetail, result.childDetail);\r\n result.curveSearchStatus = this.curveSearchStatus;\r\n return result;\r\n }\r\n /**\r\n * Updated in this instance.\r\n * * Note that if caller omits `vector` and `a`, those fields are updated to the call-list defaults (NOT left as-is)\r\n * * point and vector updates are by data copy (not capture of pointers).\r\n * @param fraction (required) fraction to install.\r\n * @param point (required) point to install.\r\n * @param vector (optional) vector to install.\r\n * @param a (optional) numeric value to install.\r\n */\r\n public setFP(fraction: number, point: Point3d, vector?: Vector3d, a: number = 0.0): void {\r\n this.fraction = fraction;\r\n this.point.setFromPoint3d(point);\r\n this.vectorInCurveLocationDetail = optionalUpdate<Vector3d>(vector, this.vectorInCurveLocationDetail);\r\n this.a = a;\r\n }\r\n /**\r\n * Updated in this instance.\r\n * * Note that if caller omits a`, that field is updated to the call-list default (NOT left as-is)\r\n * * point and vector updates are by data copy (not capture of the ray members).\r\n * @param fraction (required) fraction to install.\r\n * @param ray (required) point and vector to install.\r\n * @param a (optional) numeric value to install.\r\n */\r\n public setFR(fraction: number, ray: Ray3d, a: number = 0): void {\r\n return this.setFP(fraction, ray.origin, ray.direction, a);\r\n }\r\n /** Set the CurvePrimitive pointer, leaving all other properties untouched. */\r\n public setCurve(curve: CurvePrimitive) {\r\n this.curve = curve;\r\n }\r\n /** Record the distance from the CurveLocationDetail's point to the parameter point. */\r\n public setDistanceTo(point: Point3d) {\r\n this.a = this.point.distance(point);\r\n }\r\n /** Create with a CurvePrimitive pointer but no coordinate data. */\r\n public static create(curve?: CurvePrimitive, result?: CurveLocationDetail): CurveLocationDetail {\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = curve;\r\n return result;\r\n }\r\n /** Create a new detail using CurvePrimitive pointer, fraction, and point coordinates. */\r\n public static createCurveFractionPoint(\r\n curve: CurvePrimitive | undefined, fraction: number, point: Point3d, result?: CurveLocationDetail,\r\n ): CurveLocationDetail {\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = curve;\r\n result.fraction = fraction;\r\n result.point.setFromPoint3d(point);\r\n result.vectorInCurveLocationDetail = undefined;\r\n result.a = 0.0;\r\n result.childDetail = undefined;\r\n result.curveSearchStatus = undefined;\r\n return result;\r\n }\r\n /** Create a new detail with only ray, fraction, and point. */\r\n public static createRayFractionPoint(\r\n ray: Ray3d, fraction: number, point: Point3d, result?: CurveLocationDetail,\r\n ): CurveLocationDetail {\r\n result = result ? result : new CurveLocationDetail();\r\n result.fraction = fraction;\r\n result.ray = ray;\r\n result.point.setFromPoint3d(point);\r\n return result;\r\n }\r\n /** Create with CurvePrimitive pointer, fraction, and point coordinates. */\r\n public static createCurveFractionPointDistanceCurveSearchStatus(\r\n curve: CurvePrimitive | undefined,\r\n fraction: number,\r\n point: Point3d,\r\n distance: number,\r\n status: CurveSearchStatus,\r\n result?: CurveLocationDetail,\r\n ): CurveLocationDetail {\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = curve;\r\n result.fraction = fraction;\r\n result.point.setFromPoint3d(point);\r\n result.vectorInCurveLocationDetail = undefined;\r\n result.a = distance;\r\n result.childDetail = undefined;\r\n result.curveSearchStatus = status;\r\n return result;\r\n }\r\n /** Create with curveSearchStatus affected by allowExtension. */\r\n public static createConditionalMoveSignedDistance(\r\n allowExtension: boolean,\r\n curve: CurvePrimitive,\r\n startFraction: number,\r\n endFraction: number,\r\n requestedSignedDistance: number,\r\n result?: CurveLocationDetail,\r\n ): CurveLocationDetail {\r\n let a = requestedSignedDistance;\r\n let status = CurveSearchStatus.success;\r\n if (!allowExtension && !Geometry.isIn01(endFraction)) {\r\n // cap the movement at the endpoint\r\n if (endFraction < 0.0) {\r\n a = - curve.curveLengthBetweenFractions(startFraction, 0.0);\r\n endFraction = 0.0;\r\n status = CurveSearchStatus.stoppedAtBoundary;\r\n } else if (endFraction > 1.0) {\r\n endFraction = 1.0;\r\n a = curve.curveLengthBetweenFractions(startFraction, 1.0);\r\n status = CurveSearchStatus.stoppedAtBoundary;\r\n }\r\n }\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = curve;\r\n result.fraction = endFraction;\r\n curve.fractionToPoint(endFraction, result.point);\r\n result.vectorInCurveLocationDetail = undefined;\r\n result.a = a;\r\n result.childDetail = undefined;\r\n result.curveSearchStatus = status;\r\n return result;\r\n }\r\n /** Create with CurvePrimitive pointer and fraction for evaluation. */\r\n public static createCurveEvaluatedFraction(\r\n curve: CurvePrimitive, fraction: number, result?: CurveLocationDetail,\r\n ): CurveLocationDetail {\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = curve;\r\n result.fraction = fraction;\r\n curve.fractionToPoint(fraction, result.point);\r\n result.vectorInCurveLocationDetail = undefined;\r\n result.a = 0.0;\r\n result.childDetail = undefined;\r\n result.curveSearchStatus = undefined;\r\n return result;\r\n }\r\n /** Create with CurvePrimitive pointer and fraction for evaluation. */\r\n public static createCurveEvaluatedFractionPointAndDerivative(\r\n curve: CurvePrimitive, fraction: number, result?: CurveLocationDetail,\r\n ): CurveLocationDetail {\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = curve;\r\n result.fraction = fraction;\r\n const ray = curve.fractionToPointAndDerivative(fraction);\r\n result.point.setFromPoint3d(ray.origin);\r\n result.vectorInCurveLocationDetail = ray.direction;\r\n result.a = 0.0;\r\n result.childDetail = undefined;\r\n result.curveSearchStatus = undefined;\r\n return result;\r\n }\r\n /** Create with CurvePrimitive pointer and 2 fractions for evaluation. */\r\n public static createCurveEvaluatedFractionFraction(\r\n curve: CurvePrimitive, fraction0: number, fraction1: number, result?: CurveLocationDetail,\r\n ): CurveLocationDetail {\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = curve;\r\n result.fraction = fraction0;\r\n curve.fractionToPoint(fraction0, result.point);\r\n result.fraction1 = fraction1;\r\n result.point1 = curve.fractionToPoint(fraction1, result.point1);\r\n result.vectorInCurveLocationDetail = undefined;\r\n result.a = 0.0;\r\n result.childDetail = undefined;\r\n result.curveSearchStatus = undefined;\r\n return result;\r\n }\r\n /** Create with CurvePrimitive pointer, fraction, and point coordinates. */\r\n public static createCurveFractionPointDistance(\r\n curve: CurvePrimitive,\r\n fraction: number,\r\n point: Point3d,\r\n a: number,\r\n result?: CurveLocationDetail,\r\n ): CurveLocationDetail {\r\n result = result ? result : new CurveLocationDetail();\r\n result.curve = curve;\r\n result.fraction = fraction;\r\n result.point.setFromPoint3d(point);\r\n result.vectorInCurveLocationDetail = undefined;\r\n result.a = a;\r\n result.childDetail = undefined;\r\n result.curveSearchStatus = undefined;\r\n return result;\r\n }\r\n /**\r\n * Update or create if closer than current contents.\r\n * @param curve candidate curve\r\n * @param fraction candidate fraction\r\n * @param point candidate point\r\n * @param a candidate distance\r\n * @returns true if the given distance is smaller (and hence this detail was updated)\r\n */\r\n public updateIfCloserCurveFractionPointDistance(\r\n curve: CurvePrimitive, fraction: number, point: Point3d, a: number,\r\n ): boolean {\r\n if (this.a < a)\r\n return false;\r\n CurveLocationDetail.createCurveFractionPointDistance(curve, fraction, point, a, this);\r\n return true;\r\n }\r\n /**\r\n * Exchange the (fraction,fraction1) and (point, point1) pairs.\r\n * * (Skip each swap if its \"1\" value is undefined)\r\n */\r\n public swapFractionsAndPoints(): void {\r\n if (this.fraction1 !== undefined) {\r\n const f = this.fraction;\r\n this.fraction = this.fraction1;\r\n this.fraction1 = f;\r\n }\r\n if (this.point1 !== undefined) {\r\n const p = this.point;\r\n this.point = this.point1;\r\n this.point1 = p;\r\n }\r\n }\r\n /**\r\n * Return the fraction where f falls between fraction and fraction1.\r\n * * ASSUME fraction1 defined\r\n */\r\n public inverseInterpolateFraction(f: number, defaultFraction: number = 0): number {\r\n const a = Geometry.inverseInterpolate01(this.fraction, this.fraction1!, f);\r\n if (a === undefined)\r\n return defaultFraction;\r\n return a;\r\n }\r\n /**\r\n * Return the detail with smaller `a` value -- detailA returned if equal.\r\n * @param detailA first candidate\r\n * @param detailB second candidate\r\n */\r\n public static chooseSmallerA(\r\n detailA: CurveLocationDetail | undefined, detailB: CurveLocationDetail | undefined,\r\n ): CurveLocationDetail | undefined {\r\n if (detailA) {\r\n if (!detailB)\r\n return detailA;\r\n return detailA.a <= detailB.a ? detailA : detailB;\r\n }\r\n return detailB;\r\n }\r\n /** Compare only the curve and fraction of this detail with `other`. */\r\n public isSameCurveAndFraction(other: CurveLocationDetail | { curve: CurvePrimitive, fraction: number }): boolean {\r\n return this.curve === other.curve && Geometry.isAlmostEqualNumber(this.fraction, other.fraction);\r\n }\r\n /**\r\n * Transform the detail in place.\r\n * * All numerical properties are transformed directly, except:\r\n * * when `curve` is defined, `point` and `point1` are reset by evaluating the transformed curve at `fraction` and `fraction1`\r\n * * these properties are untouched: `a`, `fraction`, `fraction1`, `pointQ`\r\n * @param transform the transform to apply\r\n * @return true if and only if the transformation was successful. If false, the instance is in an indeterminate\r\n * state and should not be used.\r\n */\r\n public tryTransformInPlace(transform: Transform): boolean {\r\n if (this.curve && !this.curve.tryTransformInPlace(transform))\r\n return false;\r\n if (this.ray)\r\n this.ray.transformInPlace(transform);\r\n if (this.curve)\r\n this.curve.fractionToPoint(this.fraction, this.point);\r\n else\r\n transform.multiplyXYAndZInPlace(this.point);\r\n if (this.vectorInCurveLocationDetail)\r\n transform.multiplyVectorInPlace(this.vectorInCurveLocationDetail);\r\n if (this.childDetail && this.childDetail !== this && !this.childDetail.tryTransformInPlace(transform))\r\n return false;\r\n if (this.point1) {\r\n if (this.curve && this.fraction1)\r\n this.curve.fractionToPoint(this.fraction1, this.point1);\r\n else\r\n transform.multiplyXYAndZInPlace(this.point1);\r\n }\r\n return true;\r\n }\r\n}\r\n\r\n/**\r\n * Enumeration of configurations for intersections and min/max distance-between-curve\r\n * @public\r\n */\r\nexport enum CurveCurveApproachType {\r\n /** Intersection at a single point */\r\n Intersection = 0,\r\n /** Distinct points on the two curves, with each curve's tangent perpendicular to the chord between the points */\r\n PerpendicularChord = 1,\r\n /** Completely coincident geometry */\r\n CoincidentGeometry = 2,\r\n /** Completely parallel geometry. */\r\n ParallelGeometry = 3,\r\n}\r\n\r\n/**\r\n * A pair of CurveLocationDetail.\r\n * @public\r\n */\r\nexport class CurveLocationDetailPair {\r\n /** The first of the two details. */\r\n public detailA: CurveLocationDetail;\r\n /** The second of the two details. */\r\n public detailB: CurveLocationDetail;\r\n /**\r\n * Enumeration of how the detail pairs relate.\r\n * * This is set only by certain closeApproach calculations.\r\n */\r\n public approachType?: CurveCurveApproachType;\r\n\r\n public constructor(detailA?: CurveLocationDetail, detailB?: CurveLocationDetail) {\r\n this.detailA = detailA ? detailA : new CurveLocationDetail();\r\n this.detailB = detailB ? detailB : new CurveLocationDetail();\r\n }\r\n /** Create a curve detail pair using references to two CurveLocationDetails */\r\n public static createCapture(\r\n detailA: CurveLocationDetail, detailB: CurveLocationDetail, result?: CurveLocationDetailPair,\r\n ): CurveLocationDetailPair {\r\n result = result ? result : new CurveLocationDetailPair();\r\n result.detailA = detailA;\r\n result.detailB = detailB;\r\n return result;\r\n }\r\n /**\r\n * Create a curve detail pair using references to two CurveLocationDetails.\r\n * * optionally install in reversed positions\r\n */\r\n public static createCaptureOptionalReverse(\r\n detailA: CurveLocationDetail, detailB: CurveLocationDetail, reversed: boolean, result?: CurveLocationDetailPair,\r\n ): CurveLocationDetailPair {\r\n result = result ? result : new CurveLocationDetailPair();\r\n if (reversed) {\r\n result.detailA = detailA;\r\n result.detailB = detailB;\r\n\r\n } else {\r\n result.detailA = detailA;\r\n result.detailB = detailB;\r\n }\r\n return result;\r\n }\r\n /** Make a deep copy of this CurveLocationDetailPair */\r\n public clone(result?: CurveLocationDetailPair): CurveLocationDetailPair {\r\n result = result ? result : new CurveLocationDetailPair();\r\n result.detailA = this.detailA.clone();\r\n result.detailB = this.detailB.clone();\r\n result.approachType = this.approachType;\r\n return result;\r\n }\r\n /** Swap the details of A, B */\r\n public swapDetails() {\r\n const q = this.detailA;\r\n this.detailA = this.detailB;\r\n this.detailB = q;\r\n }\r\n /**\r\n * Mutate the input array by removing the second of two adjacent duplicate pairs.\r\n * * Ignores details representing coincident intervals (e.g., for which `fraction1` is defined).\r\n * * Comparison is performed by [[CurveLocationDetail.isSameCurveAndFraction]].\r\n * * No sorting is performed.\r\n * @param pairs array to de-duplicate in place\r\n * @param index0 look for duplicates in the tail of the array starting at index0\r\n * @return reference to input array\r\n * @internal\r\n */\r\n public static removeAdjacentDuplicates(pairs: CurveLocationDetailPair[], index0: number = 0): CurveLocationDetailPair[] {\r\n return pairs.flatMap(\r\n (pair: CurveLocationDetailPair, i: number, arr: CurveLocationDetailPair[]) => {\r\n if (i >= index0 && i > 0) {\r\n if (!pair.detailA.hasFraction1 && !pair.detailB.hasFraction1) {\r\n if (pair.detailA.isSameCurveAndFraction(arr[i - 1].detailA)) {\r\n if (pair.detailB.isSameCurveAndFraction(arr[i - 1].detailB)) {\r\n return []; // remove the i_th pair\r\n }\r\n }\r\n }\r\n }\r\n return [pair]; // preserve the i_th pair\r\n },\r\n );\r\n }\r\n /**\r\n * Transform the details in place.\r\n * @param transform the transform to apply\r\n * @return true if and only if the transformation was successful on both details.\r\n * If false, the instance is in an indeterminate state and should not be used.\r\n */\r\n public tryTransformInPlace(transform: Transform): boolean {\r\n return this.detailA.tryTransformInPlace(transform) && this.detailB.tryTransformInPlace(transform);\r\n }\r\n}\r\n\r\n/**\r\n * Data bundle for a pair of arrays of CurveLocationDetail structures.\r\n * @deprecated in 4.x. Use CurveLocationDetailPair[] instead.\r\n * @public\r\n */\r\nexport class CurveLocationDetailArrayPair {\r\n /** First array of details. */\r\n public dataA: CurveLocationDetail[];\r\n /** Second array of details. */\r\n public dataB: CurveLocationDetail[];\r\n public constructor() {\r\n this.dataA = [];\r\n this.dataB = [];\r\n }\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CurveOps.js","sourceRoot":"","sources":["../../../src/curve/CurveOps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,0CAAuC;AAEvC,uDAAiE;AACjE,qDAAkD;AAElD,gFAA6E;AAC7E,kFAAsF;AAEtF,iCAA8B;AAE9B,iCAA8B;AAG9B;;;GAGG;AACH,MAAa,QAAQ;IACnB,8GAA8G;IACvG,MAAM,CAAC,UAAU,CAAC,MAA6B;QACpD,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,MAAM,YAAY,+BAAc,EAAE,CAAC;YACrC,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QAChC,CAAC;aAAM,IAAI,MAAM,YAAY,iCA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C;IACvE,CAAC;CACF;AAjID,4BAiIC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module Curve\n */\n\nimport { Geometry } from \"../Geometry\";\nimport { Range3d } from \"../geometry3d/Range\";\nimport { BagOfCurves, CurveCollection } from \"./CurveCollection\";\nimport { CurvePrimitive } from \"./CurvePrimitive\";\nimport { AnyChain, AnyCurve } from \"./CurveTypes\";\nimport { MultiChainCollector } from \"./internalContexts/MultiChainCollector\";\nimport { CurveChainWireOffsetContext } from \"./internalContexts/PolygonOffsetContext\";\nimport { LineString3d } from \"./LineString3d\";\nimport { Loop } from \"./Loop\";\nimport { OffsetOptions } from \"./OffsetOptions\";\nimport { Path } from \"./Path\";\nimport { StrokeOptions } from \"./StrokeOptions\";\n\n/**\n * Static methods for miscellaneous curve operations.\n * @public\n */\nexport class CurveOps {\n /** Recursively sum curve lengths, allowing CurvePrimitive, CurveCollection, or array of such at any level. */\n public static sumLengths(curves: AnyCurve | AnyCurve[]): number {\n let mySum = 0;\n if (curves instanceof CurvePrimitive) {\n mySum += curves.curveLength();\n } else if (curves instanceof CurveCollection) {\n mySum += curves.sumLengths();\n } else if (Array.isArray(curves)) {\n for (const data1 of curves)\n mySum += this.sumLengths(data1);\n }\n return mySum;\n }\n /** Recursively extend the range by each curve's range, allowing CurvePrimitive, CurveCollection, or array of such at any level. */\n public static extendRange(range: Range3d, curves: AnyCurve | AnyCurve[]): Range3d {\n if (Array.isArray(curves)) {\n for (const data1 of curves)\n this.extendRange(range, data1);\n } else {\n curves.extendRange(range);\n }\n return range;\n }\n /**\n * Construct a separate xy-offset for each input curve.\n * * For best offset results, the inputs should be parallel to the xy-plane.\n * @param curves input curve(s), z-coordinates ignored. Only curves of type [[AnyChain]] are handled.\n * @param offset offset distance (positive to left of curve, negative to right)\n * @param result array to collect offset curves\n * @returns summed length of offset curves\n */\n public static appendXYOffsets(curves: AnyCurve | AnyCurve[] | undefined, offset: number, result: AnyCurve[]): number {\n let summedLengths = 0;\n if (curves instanceof CurvePrimitive) {\n const resultA = CurveChainWireOffsetContext.constructCurveXYOffset(Path.create(curves), offset);\n if (resultA) {\n summedLengths += this.sumLengths(resultA);\n result.push(resultA);\n }\n } else if (curves instanceof Loop || curves instanceof Path) {\n const resultA = CurveChainWireOffsetContext.constructCurveXYOffset(curves, offset);\n if (resultA) {\n summedLengths += this.sumLengths(resultA);\n result.push(resultA);\n }\n } else if (curves instanceof BagOfCurves) {\n for (const q of curves.children)\n summedLengths += this.appendXYOffsets(q, offset, result);\n } else if (Array.isArray(curves)) {\n for (const q of curves)\n summedLengths += this.appendXYOffsets(q, offset, result);\n }\n return summedLengths;\n }\n /**\n * Restructure curve fragments as Paths and Loops, and construct xy-offsets of the chains.\n * * If the inputs do not form Loop(s), the classification of offsets is suspect.\n * * For best offset results, the inputs should be parallel to the xy-plane.\n * * Chain formation is dependent upon input fragment order, as a greedy algorithm is employed.\n * @param fragments fragments to be chained and offset\n * @param offsetDistance offset distance, applied to both sides of each fragment to produce inside and outside xy-offset curves.\n * @param gapTolerance distance to be treated as \"effectively zero\" when joining head-to-tail\n * @returns object with named chains, insideOffsets, outsideOffsets\n */\n public static collectInsideAndOutsideXYOffsets(fragments: AnyCurve[], offsetDistance: number, gapTolerance: number): { insideOffsets: AnyCurve[], outsideOffsets: AnyCurve[], chains?: AnyChain } {\n const collector = new MultiChainCollector(gapTolerance, gapTolerance);\n for (const s of fragments) {\n collector.captureCurve(s);\n }\n const chains = collector.grabResult(true);\n const myOffsetA: CurveCollection[] = [];\n const myOffsetB: CurveCollection[] = [];\n const offsetLengthA = CurveOps.appendXYOffsets(chains, offsetDistance, myOffsetA);\n const offsetLengthB = CurveOps.appendXYOffsets(chains, -offsetDistance, myOffsetB);\n if (offsetLengthA > offsetLengthB) {\n return { outsideOffsets: myOffsetA, insideOffsets: myOffsetB, chains };\n } else {\n return { insideOffsets: myOffsetA, outsideOffsets: myOffsetB, chains };\n }\n }\n /**\n * Construct curves that are offset from a Path or Loop as viewed in xy-plane (ignoring z).\n * * The construction will remove \"some\" local effects of features smaller than the offset distance, but will not detect self intersection among widely separated edges.\n * @param curves base curves.\n * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.\n */\n public static constructCurveXYOffset(curves: Path | Loop, offsetDistanceOrOptions: number | OffsetOptions): CurveCollection | undefined {\n return CurveChainWireOffsetContext.constructCurveXYOffset(curves, offsetDistanceOrOptions);\n }\n /**\n * Create the offset of a single curve primitive as viewed in the xy-plane (ignoring z).\n * @param curve primitive to offset\n * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object\n */\n public static createSingleOffsetPrimitiveXY(curve: CurvePrimitive, offsetDistanceOrOptions: number | OffsetOptions): CurvePrimitive | CurvePrimitive[] | undefined {\n return CurveChainWireOffsetContext.createSingleOffsetPrimitiveXY(curve, offsetDistanceOrOptions);\n }\n /**\n * Restructure curve fragments as Paths and Loops.\n * * Chain formation is dependent upon input fragment order, as a greedy algorithm is employed.\n * @param fragments fragments to be chained\n * @param gapTolerance distance to be treated as \"effectively zero\" when assembling fragments head-to-tail\n * @param planeTolerance tolerance for considering a closed chain to be planar. If undefined, only create Path. If defined, create Loops for closed chains within tolerance of a plane.\n * @returns chains, possibly wrapped in a [[BagOfCurves]].\n */\n public static collectChains(fragments: AnyCurve[], gapTolerance: number = Geometry.smallMetricDistance, planeTolerance?: number): AnyChain | undefined {\n const collector = new MultiChainCollector(gapTolerance, planeTolerance);\n for (const s of fragments) {\n collector.captureCurve(s);\n }\n return collector.grabResult(true);\n }\n /**\n * Restructure curve fragments, to be stroked and passed into the callback.\n * * Chain formation is dependent upon input fragment order, as a greedy algorithm is employed.\n * @param fragments fragments to be chained and stroked\n * @param announceChain callback to process each stroked Path and Loop\n * @param strokeOptions options for stroking the chains\n * @param gapTolerance distance to be treated as \"effectively zero\" when assembling fragments head-to-tail. Also used for removing duplicate points in the stroked chains.\n * @param _planeTolerance unused, pass undefined\n */\n public static collectChainsAsLineString3d(fragments: AnyCurve[], announceChain: (chainPoints: LineString3d) => void, strokeOptions?: StrokeOptions, gapTolerance: number = Geometry.smallMetricDistance, _planeTolerance?: number) {\n const collector = new MultiChainCollector(gapTolerance); // no planarity tolerance needed\n for (const s of fragments) {\n collector.captureCurve(s);\n }\n collector.announceChainsAsLineString3d(announceChain, strokeOptions);\n }\n}\n"]}
1
+ {"version":3,"file":"CurveOps.js","sourceRoot":"","sources":["../../../src/curve/CurveOps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,0CAAuC;AAEvC,uDAAiE;AACjE,qDAAkD;AAElD,gFAA6E;AAC7E,kFAAsF;AAEtF,iCAA8B;AAE9B,iCAA8B;AAG9B;;;GAGG;AACH,MAAa,QAAQ;IACnB,8GAA8G;IACvG,MAAM,CAAC,UAAU,CAAC,MAA6B;QACpD,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,MAAM,YAAY,+BAAc,EAAE,CAAC;YACrC,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QAChC,CAAC;aAAM,IAAI,MAAM,YAAY,iCAAe,EAAE,CAAC;YAC7C,KAAK,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QAC/B,CAAC;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YACjC,KAAK,MAAM,KAAK,IAAI,MAAM;gBACxB,KAAK,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACpC,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,mIAAmI;IAC5H,MAAM,CAAC,WAAW,CAAC,KAAc,EAAE,MAA6B;QACrE,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1B,KAAK,MAAM,KAAK,IAAI,MAAM;gBACxB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C,KAAK,EAAE,uBAAuB,CAAC,CAAC;IACnG,CAAC;IACD;;;;;;;OAOG;IACI,MAAM,CAAC,aAAa,CAAC,SAAqB,EAAE,eAAuB,mBAAQ,CAAC,mBAAmB,EAAE,cAAuB;QAC7H,MAAM,SAAS,GAAG,IAAI,yCAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QACxE,KAAK,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC;YAC1B,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;OAQG;IACI,MAAM,CAAC,2BAA2B,CAAC,SAAqB,EAAE,aAAkD,EAAE,aAA6B,EAAE,eAAuB,mBAAQ,CAAC,mBAAmB,EAAE,eAAwB;QAC/N,MAAM,SAAS,GAAG,IAAI,yCAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,gCAAgC;QACzF,KAAK,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC;YAC1B,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC5B,CAAC;QACD,SAAS,CAAC,4BAA4B,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IACvE,CAAC;CACF;AAjID,4BAiIC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module Curve\r\n */\r\n\r\nimport { Geometry } from \"../Geometry\";\r\nimport { Range3d } from \"../geometry3d/Range\";\r\nimport { BagOfCurves, CurveCollection } from \"./CurveCollection\";\r\nimport { CurvePrimitive } from \"./CurvePrimitive\";\r\nimport { AnyChain, AnyCurve } from \"./CurveTypes\";\r\nimport { MultiChainCollector } from \"./internalContexts/MultiChainCollector\";\r\nimport { CurveChainWireOffsetContext } from \"./internalContexts/PolygonOffsetContext\";\r\nimport { LineString3d } from \"./LineString3d\";\r\nimport { Loop } from \"./Loop\";\r\nimport { OffsetOptions } from \"./OffsetOptions\";\r\nimport { Path } from \"./Path\";\r\nimport { StrokeOptions } from \"./StrokeOptions\";\r\n\r\n/**\r\n * Static methods for miscellaneous curve operations.\r\n * @public\r\n */\r\nexport class CurveOps {\r\n /** Recursively sum curve lengths, allowing CurvePrimitive, CurveCollection, or array of such at any level. */\r\n public static sumLengths(curves: AnyCurve | AnyCurve[]): number {\r\n let mySum = 0;\r\n if (curves instanceof CurvePrimitive) {\r\n mySum += curves.curveLength();\r\n } else if (curves instanceof CurveCollection) {\r\n mySum += curves.sumLengths();\r\n } else if (Array.isArray(curves)) {\r\n for (const data1 of curves)\r\n mySum += this.sumLengths(data1);\r\n }\r\n return mySum;\r\n }\r\n /** Recursively extend the range by each curve's range, allowing CurvePrimitive, CurveCollection, or array of such at any level. */\r\n public static extendRange(range: Range3d, curves: AnyCurve | AnyCurve[]): Range3d {\r\n if (Array.isArray(curves)) {\r\n for (const data1 of curves)\r\n this.extendRange(range, data1);\r\n } else {\r\n curves.extendRange(range);\r\n }\r\n return range;\r\n }\r\n /**\r\n * Construct a separate xy-offset for each input curve.\r\n * * For best offset results, the inputs should be parallel to the xy-plane.\r\n * @param curves input curve(s), z-coordinates ignored. Only curves of type [[AnyChain]] are handled.\r\n * @param offset offset distance (positive to left of curve, negative to right)\r\n * @param result array to collect offset curves\r\n * @returns summed length of offset curves\r\n */\r\n public static appendXYOffsets(curves: AnyCurve | AnyCurve[] | undefined, offset: number, result: AnyCurve[]): number {\r\n let summedLengths = 0;\r\n if (curves instanceof CurvePrimitive) {\r\n const resultA = CurveChainWireOffsetContext.constructCurveXYOffset(Path.create(curves), offset);\r\n if (resultA) {\r\n summedLengths += this.sumLengths(resultA);\r\n result.push(resultA);\r\n }\r\n } else if (curves instanceof Loop || curves instanceof Path) {\r\n const resultA = CurveChainWireOffsetContext.constructCurveXYOffset(curves, offset);\r\n if (resultA) {\r\n summedLengths += this.sumLengths(resultA);\r\n result.push(resultA);\r\n }\r\n } else if (curves instanceof BagOfCurves) {\r\n for (const q of curves.children)\r\n summedLengths += this.appendXYOffsets(q, offset, result);\r\n } else if (Array.isArray(curves)) {\r\n for (const q of curves)\r\n summedLengths += this.appendXYOffsets(q, offset, result);\r\n }\r\n return summedLengths;\r\n }\r\n /**\r\n * Restructure curve fragments as Paths and Loops, and construct xy-offsets of the chains.\r\n * * If the inputs do not form Loop(s), the classification of offsets is suspect.\r\n * * For best offset results, the inputs should be parallel to the xy-plane.\r\n * * Chain formation is dependent upon input fragment order, as a greedy algorithm is employed.\r\n * @param fragments fragments to be chained and offset\r\n * @param offsetDistance offset distance, applied to both sides of each fragment to produce inside and outside xy-offset curves.\r\n * @param gapTolerance distance to be treated as \"effectively zero\" when joining head-to-tail\r\n * @returns object with named chains, insideOffsets, outsideOffsets\r\n */\r\n public static collectInsideAndOutsideXYOffsets(fragments: AnyCurve[], offsetDistance: number, gapTolerance: number): { insideOffsets: AnyCurve[], outsideOffsets: AnyCurve[], chains?: AnyChain } {\r\n const collector = new MultiChainCollector(gapTolerance, gapTolerance);\r\n for (const s of fragments) {\r\n collector.captureCurve(s);\r\n }\r\n const chains = collector.grabResult(true);\r\n const myOffsetA: CurveCollection[] = [];\r\n const myOffsetB: CurveCollection[] = [];\r\n const offsetLengthA = CurveOps.appendXYOffsets(chains, offsetDistance, myOffsetA);\r\n const offsetLengthB = CurveOps.appendXYOffsets(chains, -offsetDistance, myOffsetB);\r\n if (offsetLengthA > offsetLengthB) {\r\n return { outsideOffsets: myOffsetA, insideOffsets: myOffsetB, chains };\r\n } else {\r\n return { insideOffsets: myOffsetA, outsideOffsets: myOffsetB, chains };\r\n }\r\n }\r\n /**\r\n * Construct curves that are offset from a Path or Loop as viewed in xy-plane (ignoring z).\r\n * * The construction will remove \"some\" local effects of features smaller than the offset distance, but will not detect self intersection among widely separated edges.\r\n * @param curves base curves.\r\n * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.\r\n */\r\n public static constructCurveXYOffset(curves: Path | Loop, offsetDistanceOrOptions: number | OffsetOptions): CurveCollection | undefined {\r\n return CurveChainWireOffsetContext.constructCurveXYOffset(curves, offsetDistanceOrOptions);\r\n }\r\n /**\r\n * Create the offset of a single curve primitive as viewed in the xy-plane (ignoring z).\r\n * @param curve primitive to offset\r\n * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object\r\n */\r\n public static createSingleOffsetPrimitiveXY(curve: CurvePrimitive, offsetDistanceOrOptions: number | OffsetOptions): CurvePrimitive | CurvePrimitive[] | undefined {\r\n return CurveChainWireOffsetContext.createSingleOffsetPrimitiveXY(curve, offsetDistanceOrOptions);\r\n }\r\n /**\r\n * Restructure curve fragments as Paths and Loops.\r\n * * Chain formation is dependent upon input fragment order, as a greedy algorithm is employed.\r\n * @param fragments fragments to be chained\r\n * @param gapTolerance distance to be treated as \"effectively zero\" when assembling fragments head-to-tail\r\n * @param planeTolerance tolerance for considering a closed chain to be planar. If undefined, only create Path. If defined, create Loops for closed chains within tolerance of a plane.\r\n * @returns chains, possibly wrapped in a [[BagOfCurves]].\r\n */\r\n public static collectChains(fragments: AnyCurve[], gapTolerance: number = Geometry.smallMetricDistance, planeTolerance?: number): AnyChain | undefined {\r\n const collector = new MultiChainCollector(gapTolerance, planeTolerance);\r\n for (const s of fragments) {\r\n collector.captureCurve(s);\r\n }\r\n return collector.grabResult(true);\r\n }\r\n /**\r\n * Restructure curve fragments, to be stroked and passed into the callback.\r\n * * Chain formation is dependent upon input fragment order, as a greedy algorithm is employed.\r\n * @param fragments fragments to be chained and stroked\r\n * @param announceChain callback to process each stroked Path and Loop\r\n * @param strokeOptions options for stroking the chains\r\n * @param gapTolerance distance to be treated as \"effectively zero\" when assembling fragments head-to-tail. Also used for removing duplicate points in the stroked chains.\r\n * @param _planeTolerance unused, pass undefined\r\n */\r\n public static collectChainsAsLineString3d(fragments: AnyCurve[], announceChain: (chainPoints: LineString3d) => void, strokeOptions?: StrokeOptions, gapTolerance: number = Geometry.smallMetricDistance, _planeTolerance?: number) {\r\n const collector = new MultiChainCollector(gapTolerance); // no planarity tolerance needed\r\n for (const s of fragments) {\r\n collector.captureCurve(s);\r\n }\r\n collector.announceChainsAsLineString3d(announceChain, strokeOptions);\r\n }\r\n}\r\n"]}
@@ -73,8 +73,8 @@ export type AnnounceCurvePrimitive = (cp: CurvePrimitive) => void;
73
73
  */
74
74
  export interface TangentOptions {
75
75
  /**
76
- * The tangent returned by [[CurvePrimitive.closestTangent]] is nearest this point as seen in the view plane.
77
- * * Default value is `P`.
76
+ * The tangent point returned by [[CurvePrimitive.closestTangent]] is nearest to this point as seen in the view plane.
77
+ * * Default value is the fixed point `P`.
78
78
  */
79
79
  hintPoint?: Point3d;
80
80
  /**