@itwin/core-geometry 4.1.0-dev.8 → 4.1.0-dev.81

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 (676) hide show
  1. package/CHANGELOG.md +87 -1
  2. package/lib/cjs/Geometry.js.map +1 -1
  3. package/lib/cjs/bspline/BSplineCurve.d.ts +1 -1
  4. package/lib/cjs/bspline/BSplineCurve.d.ts.map +1 -1
  5. package/lib/cjs/bspline/BSplineCurve.js +2 -2
  6. package/lib/cjs/bspline/BSplineCurve.js.map +1 -1
  7. package/lib/cjs/bspline/BSplineSurface.d.ts.map +1 -1
  8. package/lib/cjs/bspline/BSplineSurface.js +1 -1
  9. package/lib/cjs/bspline/BSplineSurface.js.map +1 -1
  10. package/lib/cjs/bspline/BezierCurveBase.d.ts +1 -1
  11. package/lib/cjs/bspline/BezierCurveBase.d.ts.map +1 -1
  12. package/lib/cjs/bspline/BezierCurveBase.js +2 -2
  13. package/lib/cjs/bspline/BezierCurveBase.js.map +1 -1
  14. package/lib/cjs/bspline/InterpolationCurve3d.js.map +1 -1
  15. package/lib/cjs/clipping/AlternatingConvexClipTree.d.ts +15 -17
  16. package/lib/cjs/clipping/AlternatingConvexClipTree.d.ts.map +1 -1
  17. package/lib/cjs/clipping/AlternatingConvexClipTree.js +24 -20
  18. package/lib/cjs/clipping/AlternatingConvexClipTree.js.map +1 -1
  19. package/lib/cjs/clipping/BooleanClipFactory.d.ts +28 -28
  20. package/lib/cjs/clipping/BooleanClipFactory.d.ts.map +1 -1
  21. package/lib/cjs/clipping/BooleanClipFactory.js +28 -28
  22. package/lib/cjs/clipping/BooleanClipFactory.js.map +1 -1
  23. package/lib/cjs/clipping/BooleanClipNode.d.ts +11 -11
  24. package/lib/cjs/clipping/BooleanClipNode.d.ts.map +1 -1
  25. package/lib/cjs/clipping/BooleanClipNode.js +11 -11
  26. package/lib/cjs/clipping/BooleanClipNode.js.map +1 -1
  27. package/lib/cjs/clipping/ClipPlane.d.ts +73 -76
  28. package/lib/cjs/clipping/ClipPlane.d.ts.map +1 -1
  29. package/lib/cjs/clipping/ClipPlane.js +105 -86
  30. package/lib/cjs/clipping/ClipPlane.js.map +1 -1
  31. package/lib/cjs/clipping/ClipPrimitive.d.ts +78 -47
  32. package/lib/cjs/clipping/ClipPrimitive.d.ts.map +1 -1
  33. package/lib/cjs/clipping/ClipPrimitive.js +112 -54
  34. package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
  35. package/lib/cjs/clipping/ClipUtils.d.ts +54 -44
  36. package/lib/cjs/clipping/ClipUtils.d.ts.map +1 -1
  37. package/lib/cjs/clipping/ClipUtils.js +33 -29
  38. package/lib/cjs/clipping/ClipUtils.js.map +1 -1
  39. package/lib/cjs/clipping/ClipVector.d.ts +39 -25
  40. package/lib/cjs/clipping/ClipVector.d.ts.map +1 -1
  41. package/lib/cjs/clipping/ClipVector.js +35 -23
  42. package/lib/cjs/clipping/ClipVector.js.map +1 -1
  43. package/lib/cjs/clipping/ConvexClipPlaneSet.d.ts +61 -38
  44. package/lib/cjs/clipping/ConvexClipPlaneSet.d.ts.map +1 -1
  45. package/lib/cjs/clipping/ConvexClipPlaneSet.js +64 -41
  46. package/lib/cjs/clipping/ConvexClipPlaneSet.js.map +1 -1
  47. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.d.ts +49 -30
  48. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.d.ts.map +1 -1
  49. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js +50 -30
  50. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  51. package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.d.ts +2 -2
  52. package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.d.ts.map +1 -1
  53. package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js +2 -2
  54. package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
  55. package/lib/cjs/core-geometry.d.ts +5 -1
  56. package/lib/cjs/core-geometry.d.ts.map +1 -1
  57. package/lib/cjs/core-geometry.js +5 -1
  58. package/lib/cjs/core-geometry.js.map +1 -1
  59. package/lib/cjs/curve/Arc3d.d.ts +4 -3
  60. package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
  61. package/lib/cjs/curve/Arc3d.js +7 -5
  62. package/lib/cjs/curve/Arc3d.js.map +1 -1
  63. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts +62 -42
  64. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  65. package/lib/cjs/curve/CurveChainWithDistanceIndex.js +71 -48
  66. package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
  67. package/lib/cjs/curve/CurveCollection.d.ts +36 -26
  68. package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
  69. package/lib/cjs/curve/CurveCollection.js +46 -39
  70. package/lib/cjs/curve/CurveCollection.js.map +1 -1
  71. package/lib/cjs/curve/CurveCurve.d.ts +6 -2
  72. package/lib/cjs/curve/CurveCurve.d.ts.map +1 -1
  73. package/lib/cjs/curve/CurveCurve.js +13 -9
  74. package/lib/cjs/curve/CurveCurve.js.map +1 -1
  75. package/lib/cjs/curve/CurveCurveCloseApproachXY.d.ts +74 -68
  76. package/lib/cjs/curve/CurveCurveCloseApproachXY.d.ts.map +1 -1
  77. package/lib/cjs/curve/CurveCurveCloseApproachXY.js +100 -108
  78. package/lib/cjs/curve/CurveCurveCloseApproachXY.js.map +1 -1
  79. package/lib/cjs/curve/CurveCurveIntersectXY.d.ts +46 -48
  80. package/lib/cjs/curve/CurveCurveIntersectXY.d.ts.map +1 -1
  81. package/lib/cjs/curve/CurveCurveIntersectXY.js +72 -61
  82. package/lib/cjs/curve/CurveCurveIntersectXY.js.map +1 -1
  83. package/lib/cjs/curve/CurveCurveIntersectXYZ.d.ts +32 -38
  84. package/lib/cjs/curve/CurveCurveIntersectXYZ.d.ts.map +1 -1
  85. package/lib/cjs/curve/CurveCurveIntersectXYZ.js +86 -97
  86. package/lib/cjs/curve/CurveCurveIntersectXYZ.js.map +1 -1
  87. package/lib/cjs/curve/CurveFactory.d.ts +67 -3
  88. package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
  89. package/lib/cjs/curve/CurveFactory.js +75 -7
  90. package/lib/cjs/curve/CurveFactory.js.map +1 -1
  91. package/lib/cjs/curve/CurveLocationDetail.d.ts +6 -6
  92. package/lib/cjs/curve/CurveLocationDetail.d.ts.map +1 -1
  93. package/lib/cjs/curve/CurveLocationDetail.js +9 -7
  94. package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
  95. package/lib/cjs/curve/CurveOps.d.ts +77 -0
  96. package/lib/cjs/curve/CurveOps.d.ts.map +1 -0
  97. package/lib/cjs/curve/CurveOps.js +160 -0
  98. package/lib/cjs/curve/CurveOps.js.map +1 -0
  99. package/lib/cjs/curve/CurvePrimitive.d.ts +26 -18
  100. package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -1
  101. package/lib/cjs/curve/CurvePrimitive.js +4 -3
  102. package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
  103. package/lib/cjs/curve/GeometryQuery.d.ts +2 -2
  104. package/lib/cjs/curve/GeometryQuery.d.ts.map +1 -1
  105. package/lib/cjs/curve/GeometryQuery.js +2 -2
  106. package/lib/cjs/curve/GeometryQuery.js.map +1 -1
  107. package/lib/cjs/curve/LineSegment3d.d.ts +7 -5
  108. package/lib/cjs/curve/LineSegment3d.d.ts.map +1 -1
  109. package/lib/cjs/curve/LineSegment3d.js +6 -6
  110. package/lib/cjs/curve/LineSegment3d.js.map +1 -1
  111. package/lib/cjs/curve/LineString3d.d.ts +2 -2
  112. package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
  113. package/lib/cjs/curve/LineString3d.js +3 -3
  114. package/lib/cjs/curve/LineString3d.js.map +1 -1
  115. package/lib/cjs/curve/Loop.d.ts +7 -5
  116. package/lib/cjs/curve/Loop.d.ts.map +1 -1
  117. package/lib/cjs/curve/Loop.js +18 -6
  118. package/lib/cjs/curve/Loop.js.map +1 -1
  119. package/lib/cjs/curve/OffsetOptions.d.ts +97 -0
  120. package/lib/cjs/curve/OffsetOptions.d.ts.map +1 -0
  121. package/lib/cjs/curve/OffsetOptions.js +166 -0
  122. package/lib/cjs/curve/OffsetOptions.js.map +1 -0
  123. package/lib/cjs/curve/ParityRegion.d.ts +7 -7
  124. package/lib/cjs/curve/ParityRegion.d.ts.map +1 -1
  125. package/lib/cjs/curve/ParityRegion.js +19 -11
  126. package/lib/cjs/curve/ParityRegion.js.map +1 -1
  127. package/lib/cjs/curve/Path.d.ts +6 -6
  128. package/lib/cjs/curve/Path.d.ts.map +1 -1
  129. package/lib/cjs/curve/Path.js +15 -9
  130. package/lib/cjs/curve/Path.js.map +1 -1
  131. package/lib/cjs/curve/ProxyCurve.d.ts +5 -7
  132. package/lib/cjs/curve/ProxyCurve.d.ts.map +1 -1
  133. package/lib/cjs/curve/ProxyCurve.js +7 -7
  134. package/lib/cjs/curve/ProxyCurve.js.map +1 -1
  135. package/lib/cjs/curve/Query/StrokeCountMap.js.map +1 -1
  136. package/lib/cjs/curve/RegionOps.d.ts +76 -56
  137. package/lib/cjs/curve/RegionOps.d.ts.map +1 -1
  138. package/lib/cjs/curve/RegionOps.js +83 -60
  139. package/lib/cjs/curve/RegionOps.js.map +1 -1
  140. package/lib/cjs/curve/RegionOpsClassificationSweeps.js +2 -2
  141. package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -1
  142. package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
  143. package/lib/cjs/curve/StrokeOptions.js +6 -2
  144. package/lib/cjs/curve/StrokeOptions.js.map +1 -1
  145. package/lib/cjs/curve/UnionRegion.d.ts +6 -5
  146. package/lib/cjs/curve/UnionRegion.d.ts.map +1 -1
  147. package/lib/cjs/curve/UnionRegion.js +17 -8
  148. package/lib/cjs/curve/UnionRegion.js.map +1 -1
  149. package/lib/cjs/curve/{ChainCollectorContext.d.ts → internalContexts/ChainCollectorContext.d.ts} +4 -4
  150. package/lib/cjs/curve/internalContexts/ChainCollectorContext.d.ts.map +1 -0
  151. package/lib/cjs/curve/{ChainCollectorContext.js → internalContexts/ChainCollectorContext.js} +4 -4
  152. package/lib/cjs/curve/internalContexts/ChainCollectorContext.js.map +1 -0
  153. package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts +2 -1
  154. package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
  155. package/lib/cjs/curve/internalContexts/GapSearchContext.js +6 -2
  156. package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
  157. package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts +59 -70
  158. package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts.map +1 -1
  159. package/lib/cjs/curve/internalContexts/MultiChainCollector.js +130 -220
  160. package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -1
  161. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
  162. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
  163. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
  164. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  165. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts +23 -95
  166. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -1
  167. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js +89 -178
  168. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  169. package/lib/cjs/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
  170. package/lib/cjs/curve/internalContexts/SumLengthsContext.js +4 -1
  171. package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
  172. package/lib/cjs/curve/spiral/IntegratedSpiral3d.js +1 -1
  173. package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  174. package/lib/cjs/curve/spiral/TransitionSpiral3d.d.ts +1 -1
  175. package/lib/cjs/curve/spiral/TransitionSpiral3d.d.ts.map +1 -1
  176. package/lib/cjs/curve/spiral/TransitionSpiral3d.js +2 -2
  177. package/lib/cjs/curve/spiral/TransitionSpiral3d.js.map +1 -1
  178. package/lib/cjs/curve/spiral/XYCurveEvaluator.js +1 -1
  179. package/lib/cjs/curve/spiral/XYCurveEvaluator.js.map +1 -1
  180. package/lib/cjs/geometry3d/Angle.d.ts +9 -0
  181. package/lib/cjs/geometry3d/Angle.d.ts.map +1 -1
  182. package/lib/cjs/geometry3d/Angle.js +13 -0
  183. package/lib/cjs/geometry3d/Angle.js.map +1 -1
  184. package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
  185. package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
  186. package/lib/cjs/geometry3d/BilinearPatch.d.ts +43 -48
  187. package/lib/cjs/geometry3d/BilinearPatch.d.ts.map +1 -1
  188. package/lib/cjs/geometry3d/BilinearPatch.js +51 -55
  189. package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
  190. package/lib/cjs/geometry3d/Ellipsoid.d.ts +1 -1
  191. package/lib/cjs/geometry3d/Ellipsoid.js +1 -1
  192. package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
  193. package/lib/cjs/geometry3d/FrameBuilder.d.ts.map +1 -1
  194. package/lib/cjs/geometry3d/FrameBuilder.js +13 -11
  195. package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
  196. package/lib/cjs/geometry3d/GeometryHandler.d.ts +103 -97
  197. package/lib/cjs/geometry3d/GeometryHandler.d.ts.map +1 -1
  198. package/lib/cjs/geometry3d/GeometryHandler.js +247 -124
  199. package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -1
  200. package/lib/cjs/geometry3d/GrowableBlockedArray.d.ts.map +1 -1
  201. package/lib/cjs/geometry3d/GrowableBlockedArray.js +1 -1
  202. package/lib/cjs/geometry3d/GrowableBlockedArray.js.map +1 -1
  203. package/lib/cjs/geometry3d/GrowableFloat64Array.d.ts.map +1 -1
  204. package/lib/cjs/geometry3d/GrowableFloat64Array.js +1 -1
  205. package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -1
  206. package/lib/cjs/geometry3d/Matrix3d.d.ts +18 -0
  207. package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
  208. package/lib/cjs/geometry3d/Matrix3d.js +32 -5
  209. package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
  210. package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -1
  211. package/lib/cjs/geometry3d/Plane3d.d.ts +41 -32
  212. package/lib/cjs/geometry3d/Plane3d.d.ts.map +1 -1
  213. package/lib/cjs/geometry3d/Plane3d.js +11 -8
  214. package/lib/cjs/geometry3d/Plane3d.js.map +1 -1
  215. package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.d.ts +37 -34
  216. package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.d.ts.map +1 -1
  217. package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.js +65 -43
  218. package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
  219. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts +36 -32
  220. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -1
  221. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js +37 -32
  222. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  223. package/lib/cjs/geometry3d/Point2dVector2d.d.ts +8 -9
  224. package/lib/cjs/geometry3d/Point2dVector2d.d.ts.map +1 -1
  225. package/lib/cjs/geometry3d/Point2dVector2d.js +9 -10
  226. package/lib/cjs/geometry3d/Point2dVector2d.js.map +1 -1
  227. package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
  228. package/lib/cjs/geometry3d/Point3dVector3d.d.ts +12 -4
  229. package/lib/cjs/geometry3d/Point3dVector3d.d.ts.map +1 -1
  230. package/lib/cjs/geometry3d/Point3dVector3d.js +18 -5
  231. package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
  232. package/lib/cjs/geometry3d/PointHelpers.d.ts.map +1 -1
  233. package/lib/cjs/geometry3d/PointHelpers.js +5 -5
  234. package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
  235. package/lib/cjs/geometry3d/PolygonOps.d.ts +6 -2
  236. package/lib/cjs/geometry3d/PolygonOps.d.ts.map +1 -1
  237. package/lib/cjs/geometry3d/PolygonOps.js +31 -22
  238. package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
  239. package/lib/cjs/geometry3d/PolylineOps.d.ts +16 -1
  240. package/lib/cjs/geometry3d/PolylineOps.d.ts.map +1 -1
  241. package/lib/cjs/geometry3d/PolylineOps.js +55 -0
  242. package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
  243. package/lib/cjs/geometry3d/Range.d.ts +134 -94
  244. package/lib/cjs/geometry3d/Range.d.ts.map +1 -1
  245. package/lib/cjs/geometry3d/Range.js +297 -145
  246. package/lib/cjs/geometry3d/Range.js.map +1 -1
  247. package/lib/cjs/geometry3d/Ray2d.d.ts +69 -0
  248. package/lib/cjs/geometry3d/Ray2d.d.ts.map +1 -0
  249. package/lib/cjs/geometry3d/Ray2d.js +146 -0
  250. package/lib/cjs/geometry3d/Ray2d.js.map +1 -0
  251. package/lib/cjs/geometry3d/Ray3d.d.ts.map +1 -1
  252. package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
  253. package/lib/cjs/geometry3d/Transform.d.ts +10 -3
  254. package/lib/cjs/geometry3d/Transform.d.ts.map +1 -1
  255. package/lib/cjs/geometry3d/Transform.js +18 -6
  256. package/lib/cjs/geometry3d/Transform.js.map +1 -1
  257. package/lib/cjs/geometry3d/YawPitchRollAngles.js.map +1 -1
  258. package/lib/cjs/numerics/ConvexPolygon2d.d.ts +7 -49
  259. package/lib/cjs/numerics/ConvexPolygon2d.d.ts.map +1 -1
  260. package/lib/cjs/numerics/ConvexPolygon2d.js +16 -107
  261. package/lib/cjs/numerics/ConvexPolygon2d.js.map +1 -1
  262. package/lib/cjs/numerics/Newton.js.map +1 -1
  263. package/lib/cjs/numerics/Polynomials.d.ts.map +1 -1
  264. package/lib/cjs/numerics/Polynomials.js +0 -2
  265. package/lib/cjs/numerics/Polynomials.js.map +1 -1
  266. package/lib/cjs/numerics/Quadrature.js +5 -5
  267. package/lib/cjs/numerics/Quadrature.js.map +1 -1
  268. package/lib/cjs/polyface/IndexedEdgeMatcher.js +1 -1
  269. package/lib/cjs/polyface/IndexedEdgeMatcher.js.map +1 -1
  270. package/lib/cjs/polyface/PolyfaceBuilder.d.ts.map +1 -1
  271. package/lib/cjs/polyface/PolyfaceBuilder.js +2 -2
  272. package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
  273. package/lib/cjs/polyface/PolyfaceQuery.d.ts +93 -14
  274. package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
  275. package/lib/cjs/polyface/PolyfaceQuery.js +173 -34
  276. package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
  277. package/lib/cjs/polyface/TaggedNumericData.js +1 -1
  278. package/lib/cjs/polyface/TaggedNumericData.js.map +1 -1
  279. package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.js +2 -2
  280. package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
  281. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.d.ts +27 -19
  282. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.d.ts.map +1 -1
  283. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js +30 -12
  284. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
  285. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts +12 -8
  286. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts.map +1 -1
  287. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js +18 -4
  288. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
  289. package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.d.ts +3 -4
  290. package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.d.ts.map +1 -1
  291. package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.js +3 -5
  292. package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
  293. package/lib/cjs/polyface/multiclip/OffsetMeshContext.js.map +1 -1
  294. package/lib/cjs/polyface/multiclip/Range2dSearchInterface.d.ts +15 -12
  295. package/lib/cjs/polyface/multiclip/Range2dSearchInterface.d.ts.map +1 -1
  296. package/lib/cjs/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
  297. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts +38 -0
  298. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -1
  299. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js +104 -1
  300. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  301. package/lib/cjs/serialization/BGFBWriter.js.map +1 -1
  302. package/lib/cjs/serialization/GeometrySamples.d.ts +11 -0
  303. package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -1
  304. package/lib/cjs/serialization/GeometrySamples.js +30 -0
  305. package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
  306. package/lib/cjs/serialization/IModelJsonSchema.d.ts +2 -7
  307. package/lib/cjs/serialization/IModelJsonSchema.d.ts.map +1 -1
  308. package/lib/cjs/serialization/IModelJsonSchema.js +2 -7
  309. package/lib/cjs/serialization/IModelJsonSchema.js.map +1 -1
  310. package/lib/cjs/solid/LinearSweep.d.ts +2 -1
  311. package/lib/cjs/solid/LinearSweep.d.ts.map +1 -1
  312. package/lib/cjs/solid/LinearSweep.js.map +1 -1
  313. package/lib/cjs/solid/RotationalSweep.d.ts +2 -1
  314. package/lib/cjs/solid/RotationalSweep.d.ts.map +1 -1
  315. package/lib/cjs/solid/RotationalSweep.js.map +1 -1
  316. package/lib/cjs/solid/RuledSweep.d.ts +2 -1
  317. package/lib/cjs/solid/RuledSweep.d.ts.map +1 -1
  318. package/lib/cjs/solid/RuledSweep.js.map +1 -1
  319. package/lib/cjs/solid/SweepContour.d.ts +2 -2
  320. package/lib/cjs/solid/SweepContour.d.ts.map +1 -1
  321. package/lib/cjs/solid/SweepContour.js +9 -0
  322. package/lib/cjs/solid/SweepContour.js.map +1 -1
  323. package/lib/cjs/topology/ChainMerge.js +1 -1
  324. package/lib/cjs/topology/ChainMerge.js.map +1 -1
  325. package/lib/cjs/topology/HalfEdgeGraphSearch.d.ts.map +1 -1
  326. package/lib/cjs/topology/HalfEdgeGraphSearch.js +1 -1
  327. package/lib/cjs/topology/HalfEdgeGraphSearch.js.map +1 -1
  328. package/lib/cjs/topology/HalfEdgeGraphSpineContext.js +1 -1
  329. package/lib/cjs/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  330. package/lib/cjs/topology/HalfEdgePriorityQueue.d.ts.map +1 -1
  331. package/lib/cjs/topology/HalfEdgePriorityQueue.js +1 -1
  332. package/lib/cjs/topology/HalfEdgePriorityQueue.js.map +1 -1
  333. package/lib/cjs/topology/RegularizeFace.js +3 -3
  334. package/lib/cjs/topology/RegularizeFace.js.map +1 -1
  335. package/lib/cjs/topology/Triangulation.js +1 -1
  336. package/lib/cjs/topology/Triangulation.js.map +1 -1
  337. package/lib/esm/Geometry.js.map +1 -1
  338. package/lib/esm/bspline/BSplineCurve.d.ts +1 -1
  339. package/lib/esm/bspline/BSplineCurve.d.ts.map +1 -1
  340. package/lib/esm/bspline/BSplineCurve.js +1 -1
  341. package/lib/esm/bspline/BSplineCurve.js.map +1 -1
  342. package/lib/esm/bspline/BSplineSurface.d.ts.map +1 -1
  343. package/lib/esm/bspline/BSplineSurface.js +1 -1
  344. package/lib/esm/bspline/BSplineSurface.js.map +1 -1
  345. package/lib/esm/bspline/BezierCurveBase.d.ts +1 -1
  346. package/lib/esm/bspline/BezierCurveBase.d.ts.map +1 -1
  347. package/lib/esm/bspline/BezierCurveBase.js +1 -1
  348. package/lib/esm/bspline/BezierCurveBase.js.map +1 -1
  349. package/lib/esm/bspline/InterpolationCurve3d.js.map +1 -1
  350. package/lib/esm/clipping/AlternatingConvexClipTree.d.ts +15 -17
  351. package/lib/esm/clipping/AlternatingConvexClipTree.d.ts.map +1 -1
  352. package/lib/esm/clipping/AlternatingConvexClipTree.js +24 -20
  353. package/lib/esm/clipping/AlternatingConvexClipTree.js.map +1 -1
  354. package/lib/esm/clipping/BooleanClipFactory.d.ts +28 -28
  355. package/lib/esm/clipping/BooleanClipFactory.d.ts.map +1 -1
  356. package/lib/esm/clipping/BooleanClipFactory.js +28 -28
  357. package/lib/esm/clipping/BooleanClipFactory.js.map +1 -1
  358. package/lib/esm/clipping/BooleanClipNode.d.ts +11 -11
  359. package/lib/esm/clipping/BooleanClipNode.d.ts.map +1 -1
  360. package/lib/esm/clipping/BooleanClipNode.js +11 -11
  361. package/lib/esm/clipping/BooleanClipNode.js.map +1 -1
  362. package/lib/esm/clipping/ClipPlane.d.ts +73 -76
  363. package/lib/esm/clipping/ClipPlane.d.ts.map +1 -1
  364. package/lib/esm/clipping/ClipPlane.js +105 -86
  365. package/lib/esm/clipping/ClipPlane.js.map +1 -1
  366. package/lib/esm/clipping/ClipPrimitive.d.ts +78 -47
  367. package/lib/esm/clipping/ClipPrimitive.d.ts.map +1 -1
  368. package/lib/esm/clipping/ClipPrimitive.js +112 -54
  369. package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
  370. package/lib/esm/clipping/ClipUtils.d.ts +54 -44
  371. package/lib/esm/clipping/ClipUtils.d.ts.map +1 -1
  372. package/lib/esm/clipping/ClipUtils.js +33 -29
  373. package/lib/esm/clipping/ClipUtils.js.map +1 -1
  374. package/lib/esm/clipping/ClipVector.d.ts +39 -25
  375. package/lib/esm/clipping/ClipVector.d.ts.map +1 -1
  376. package/lib/esm/clipping/ClipVector.js +35 -23
  377. package/lib/esm/clipping/ClipVector.js.map +1 -1
  378. package/lib/esm/clipping/ConvexClipPlaneSet.d.ts +61 -38
  379. package/lib/esm/clipping/ConvexClipPlaneSet.d.ts.map +1 -1
  380. package/lib/esm/clipping/ConvexClipPlaneSet.js +64 -41
  381. package/lib/esm/clipping/ConvexClipPlaneSet.js.map +1 -1
  382. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.d.ts +49 -30
  383. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.d.ts.map +1 -1
  384. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js +50 -30
  385. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  386. package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.d.ts +2 -2
  387. package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.d.ts.map +1 -1
  388. package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js +2 -2
  389. package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
  390. package/lib/esm/core-geometry.d.ts +5 -1
  391. package/lib/esm/core-geometry.d.ts.map +1 -1
  392. package/lib/esm/core-geometry.js +5 -1
  393. package/lib/esm/core-geometry.js.map +1 -1
  394. package/lib/esm/curve/Arc3d.d.ts +4 -3
  395. package/lib/esm/curve/Arc3d.d.ts.map +1 -1
  396. package/lib/esm/curve/Arc3d.js +6 -4
  397. package/lib/esm/curve/Arc3d.js.map +1 -1
  398. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts +62 -42
  399. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  400. package/lib/esm/curve/CurveChainWithDistanceIndex.js +70 -47
  401. package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
  402. package/lib/esm/curve/CurveCollection.d.ts +36 -26
  403. package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
  404. package/lib/esm/curve/CurveCollection.js +46 -39
  405. package/lib/esm/curve/CurveCollection.js.map +1 -1
  406. package/lib/esm/curve/CurveCurve.d.ts +6 -2
  407. package/lib/esm/curve/CurveCurve.d.ts.map +1 -1
  408. package/lib/esm/curve/CurveCurve.js +13 -9
  409. package/lib/esm/curve/CurveCurve.js.map +1 -1
  410. package/lib/esm/curve/CurveCurveCloseApproachXY.d.ts +74 -68
  411. package/lib/esm/curve/CurveCurveCloseApproachXY.d.ts.map +1 -1
  412. package/lib/esm/curve/CurveCurveCloseApproachXY.js +100 -108
  413. package/lib/esm/curve/CurveCurveCloseApproachXY.js.map +1 -1
  414. package/lib/esm/curve/CurveCurveIntersectXY.d.ts +46 -48
  415. package/lib/esm/curve/CurveCurveIntersectXY.d.ts.map +1 -1
  416. package/lib/esm/curve/CurveCurveIntersectXY.js +72 -61
  417. package/lib/esm/curve/CurveCurveIntersectXY.js.map +1 -1
  418. package/lib/esm/curve/CurveCurveIntersectXYZ.d.ts +32 -38
  419. package/lib/esm/curve/CurveCurveIntersectXYZ.d.ts.map +1 -1
  420. package/lib/esm/curve/CurveCurveIntersectXYZ.js +86 -97
  421. package/lib/esm/curve/CurveCurveIntersectXYZ.js.map +1 -1
  422. package/lib/esm/curve/CurveFactory.d.ts +67 -3
  423. package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
  424. package/lib/esm/curve/CurveFactory.js +74 -6
  425. package/lib/esm/curve/CurveFactory.js.map +1 -1
  426. package/lib/esm/curve/CurveLocationDetail.d.ts +6 -6
  427. package/lib/esm/curve/CurveLocationDetail.d.ts.map +1 -1
  428. package/lib/esm/curve/CurveLocationDetail.js +9 -7
  429. package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
  430. package/lib/esm/curve/CurveOps.d.ts +77 -0
  431. package/lib/esm/curve/CurveOps.d.ts.map +1 -0
  432. package/lib/esm/curve/CurveOps.js +156 -0
  433. package/lib/esm/curve/CurveOps.js.map +1 -0
  434. package/lib/esm/curve/CurvePrimitive.d.ts +26 -18
  435. package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -1
  436. package/lib/esm/curve/CurvePrimitive.js +4 -3
  437. package/lib/esm/curve/CurvePrimitive.js.map +1 -1
  438. package/lib/esm/curve/GeometryQuery.d.ts +2 -2
  439. package/lib/esm/curve/GeometryQuery.d.ts.map +1 -1
  440. package/lib/esm/curve/GeometryQuery.js +2 -2
  441. package/lib/esm/curve/GeometryQuery.js.map +1 -1
  442. package/lib/esm/curve/LineSegment3d.d.ts +7 -5
  443. package/lib/esm/curve/LineSegment3d.d.ts.map +1 -1
  444. package/lib/esm/curve/LineSegment3d.js +5 -5
  445. package/lib/esm/curve/LineSegment3d.js.map +1 -1
  446. package/lib/esm/curve/LineString3d.d.ts +2 -2
  447. package/lib/esm/curve/LineString3d.d.ts.map +1 -1
  448. package/lib/esm/curve/LineString3d.js +2 -2
  449. package/lib/esm/curve/LineString3d.js.map +1 -1
  450. package/lib/esm/curve/Loop.d.ts +7 -5
  451. package/lib/esm/curve/Loop.d.ts.map +1 -1
  452. package/lib/esm/curve/Loop.js +18 -6
  453. package/lib/esm/curve/Loop.js.map +1 -1
  454. package/lib/esm/curve/OffsetOptions.d.ts +97 -0
  455. package/lib/esm/curve/OffsetOptions.d.ts.map +1 -0
  456. package/lib/esm/curve/OffsetOptions.js +161 -0
  457. package/lib/esm/curve/OffsetOptions.js.map +1 -0
  458. package/lib/esm/curve/ParityRegion.d.ts +7 -7
  459. package/lib/esm/curve/ParityRegion.d.ts.map +1 -1
  460. package/lib/esm/curve/ParityRegion.js +19 -11
  461. package/lib/esm/curve/ParityRegion.js.map +1 -1
  462. package/lib/esm/curve/Path.d.ts +6 -6
  463. package/lib/esm/curve/Path.d.ts.map +1 -1
  464. package/lib/esm/curve/Path.js +15 -9
  465. package/lib/esm/curve/Path.js.map +1 -1
  466. package/lib/esm/curve/ProxyCurve.d.ts +5 -7
  467. package/lib/esm/curve/ProxyCurve.d.ts.map +1 -1
  468. package/lib/esm/curve/ProxyCurve.js +7 -7
  469. package/lib/esm/curve/ProxyCurve.js.map +1 -1
  470. package/lib/esm/curve/Query/StrokeCountMap.js.map +1 -1
  471. package/lib/esm/curve/RegionOps.d.ts +76 -56
  472. package/lib/esm/curve/RegionOps.d.ts.map +1 -1
  473. package/lib/esm/curve/RegionOps.js +84 -61
  474. package/lib/esm/curve/RegionOps.js.map +1 -1
  475. package/lib/esm/curve/RegionOpsClassificationSweeps.js +2 -2
  476. package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -1
  477. package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
  478. package/lib/esm/curve/StrokeOptions.js +6 -2
  479. package/lib/esm/curve/StrokeOptions.js.map +1 -1
  480. package/lib/esm/curve/UnionRegion.d.ts +6 -5
  481. package/lib/esm/curve/UnionRegion.d.ts.map +1 -1
  482. package/lib/esm/curve/UnionRegion.js +17 -8
  483. package/lib/esm/curve/UnionRegion.js.map +1 -1
  484. package/lib/esm/curve/{ChainCollectorContext.d.ts → internalContexts/ChainCollectorContext.d.ts} +4 -4
  485. package/lib/esm/curve/internalContexts/ChainCollectorContext.d.ts.map +1 -0
  486. package/lib/esm/curve/{ChainCollectorContext.js → internalContexts/ChainCollectorContext.js} +4 -4
  487. package/lib/esm/curve/internalContexts/ChainCollectorContext.js.map +1 -0
  488. package/lib/esm/curve/internalContexts/GapSearchContext.d.ts +2 -1
  489. package/lib/esm/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
  490. package/lib/esm/curve/internalContexts/GapSearchContext.js +6 -2
  491. package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
  492. package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts +59 -70
  493. package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts.map +1 -1
  494. package/lib/esm/curve/internalContexts/MultiChainCollector.js +129 -218
  495. package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -1
  496. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
  497. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
  498. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
  499. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  500. package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts +23 -95
  501. package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -1
  502. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js +86 -173
  503. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  504. package/lib/esm/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
  505. package/lib/esm/curve/internalContexts/SumLengthsContext.js +4 -1
  506. package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
  507. package/lib/esm/curve/spiral/IntegratedSpiral3d.js +1 -1
  508. package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  509. package/lib/esm/curve/spiral/TransitionSpiral3d.d.ts +1 -1
  510. package/lib/esm/curve/spiral/TransitionSpiral3d.d.ts.map +1 -1
  511. package/lib/esm/curve/spiral/TransitionSpiral3d.js +1 -1
  512. package/lib/esm/curve/spiral/TransitionSpiral3d.js.map +1 -1
  513. package/lib/esm/curve/spiral/XYCurveEvaluator.js +1 -1
  514. package/lib/esm/curve/spiral/XYCurveEvaluator.js.map +1 -1
  515. package/lib/esm/geometry3d/Angle.d.ts +9 -0
  516. package/lib/esm/geometry3d/Angle.d.ts.map +1 -1
  517. package/lib/esm/geometry3d/Angle.js +13 -0
  518. package/lib/esm/geometry3d/Angle.js.map +1 -1
  519. package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
  520. package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
  521. package/lib/esm/geometry3d/BilinearPatch.d.ts +43 -48
  522. package/lib/esm/geometry3d/BilinearPatch.d.ts.map +1 -1
  523. package/lib/esm/geometry3d/BilinearPatch.js +51 -55
  524. package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
  525. package/lib/esm/geometry3d/Ellipsoid.d.ts +1 -1
  526. package/lib/esm/geometry3d/Ellipsoid.js +1 -1
  527. package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
  528. package/lib/esm/geometry3d/FrameBuilder.d.ts.map +1 -1
  529. package/lib/esm/geometry3d/FrameBuilder.js +13 -11
  530. package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
  531. package/lib/esm/geometry3d/GeometryHandler.d.ts +103 -97
  532. package/lib/esm/geometry3d/GeometryHandler.d.ts.map +1 -1
  533. package/lib/esm/geometry3d/GeometryHandler.js +247 -124
  534. package/lib/esm/geometry3d/GeometryHandler.js.map +1 -1
  535. package/lib/esm/geometry3d/GrowableBlockedArray.d.ts.map +1 -1
  536. package/lib/esm/geometry3d/GrowableBlockedArray.js +1 -1
  537. package/lib/esm/geometry3d/GrowableBlockedArray.js.map +1 -1
  538. package/lib/esm/geometry3d/GrowableFloat64Array.d.ts.map +1 -1
  539. package/lib/esm/geometry3d/GrowableFloat64Array.js +1 -1
  540. package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -1
  541. package/lib/esm/geometry3d/Matrix3d.d.ts +18 -0
  542. package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
  543. package/lib/esm/geometry3d/Matrix3d.js +32 -5
  544. package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
  545. package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -1
  546. package/lib/esm/geometry3d/Plane3d.d.ts +41 -32
  547. package/lib/esm/geometry3d/Plane3d.d.ts.map +1 -1
  548. package/lib/esm/geometry3d/Plane3d.js +11 -8
  549. package/lib/esm/geometry3d/Plane3d.js.map +1 -1
  550. package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.d.ts +37 -34
  551. package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.d.ts.map +1 -1
  552. package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js +65 -43
  553. package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
  554. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts +36 -32
  555. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -1
  556. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js +37 -32
  557. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  558. package/lib/esm/geometry3d/Point2dVector2d.d.ts +8 -9
  559. package/lib/esm/geometry3d/Point2dVector2d.d.ts.map +1 -1
  560. package/lib/esm/geometry3d/Point2dVector2d.js +9 -10
  561. package/lib/esm/geometry3d/Point2dVector2d.js.map +1 -1
  562. package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
  563. package/lib/esm/geometry3d/Point3dVector3d.d.ts +12 -4
  564. package/lib/esm/geometry3d/Point3dVector3d.d.ts.map +1 -1
  565. package/lib/esm/geometry3d/Point3dVector3d.js +18 -5
  566. package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
  567. package/lib/esm/geometry3d/PointHelpers.d.ts.map +1 -1
  568. package/lib/esm/geometry3d/PointHelpers.js +5 -5
  569. package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
  570. package/lib/esm/geometry3d/PolygonOps.d.ts +6 -2
  571. package/lib/esm/geometry3d/PolygonOps.d.ts.map +1 -1
  572. package/lib/esm/geometry3d/PolygonOps.js +31 -22
  573. package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
  574. package/lib/esm/geometry3d/PolylineOps.d.ts +16 -1
  575. package/lib/esm/geometry3d/PolylineOps.d.ts.map +1 -1
  576. package/lib/esm/geometry3d/PolylineOps.js +56 -1
  577. package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
  578. package/lib/esm/geometry3d/Range.d.ts +134 -94
  579. package/lib/esm/geometry3d/Range.d.ts.map +1 -1
  580. package/lib/esm/geometry3d/Range.js +297 -145
  581. package/lib/esm/geometry3d/Range.js.map +1 -1
  582. package/lib/esm/geometry3d/Ray2d.d.ts +69 -0
  583. package/lib/esm/geometry3d/Ray2d.d.ts.map +1 -0
  584. package/lib/esm/geometry3d/Ray2d.js +142 -0
  585. package/lib/esm/geometry3d/Ray2d.js.map +1 -0
  586. package/lib/esm/geometry3d/Ray3d.d.ts.map +1 -1
  587. package/lib/esm/geometry3d/Ray3d.js.map +1 -1
  588. package/lib/esm/geometry3d/Transform.d.ts +10 -3
  589. package/lib/esm/geometry3d/Transform.d.ts.map +1 -1
  590. package/lib/esm/geometry3d/Transform.js +18 -6
  591. package/lib/esm/geometry3d/Transform.js.map +1 -1
  592. package/lib/esm/geometry3d/YawPitchRollAngles.js.map +1 -1
  593. package/lib/esm/numerics/ConvexPolygon2d.d.ts +7 -49
  594. package/lib/esm/numerics/ConvexPolygon2d.d.ts.map +1 -1
  595. package/lib/esm/numerics/ConvexPolygon2d.js +14 -104
  596. package/lib/esm/numerics/ConvexPolygon2d.js.map +1 -1
  597. package/lib/esm/numerics/Newton.js.map +1 -1
  598. package/lib/esm/numerics/Polynomials.d.ts.map +1 -1
  599. package/lib/esm/numerics/Polynomials.js +0 -2
  600. package/lib/esm/numerics/Polynomials.js.map +1 -1
  601. package/lib/esm/numerics/Quadrature.js +5 -5
  602. package/lib/esm/numerics/Quadrature.js.map +1 -1
  603. package/lib/esm/polyface/IndexedEdgeMatcher.js +1 -1
  604. package/lib/esm/polyface/IndexedEdgeMatcher.js.map +1 -1
  605. package/lib/esm/polyface/PolyfaceBuilder.d.ts.map +1 -1
  606. package/lib/esm/polyface/PolyfaceBuilder.js +2 -2
  607. package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
  608. package/lib/esm/polyface/PolyfaceQuery.d.ts +93 -14
  609. package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
  610. package/lib/esm/polyface/PolyfaceQuery.js +173 -35
  611. package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
  612. package/lib/esm/polyface/TaggedNumericData.js +1 -1
  613. package/lib/esm/polyface/TaggedNumericData.js.map +1 -1
  614. package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js +2 -2
  615. package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
  616. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.d.ts +27 -19
  617. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.d.ts.map +1 -1
  618. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js +30 -12
  619. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
  620. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts +12 -8
  621. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.d.ts.map +1 -1
  622. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js +18 -4
  623. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
  624. package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.d.ts +3 -4
  625. package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.d.ts.map +1 -1
  626. package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js +3 -5
  627. package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
  628. package/lib/esm/polyface/multiclip/OffsetMeshContext.js.map +1 -1
  629. package/lib/esm/polyface/multiclip/Range2dSearchInterface.d.ts +15 -12
  630. package/lib/esm/polyface/multiclip/Range2dSearchInterface.d.ts.map +1 -1
  631. package/lib/esm/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
  632. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts +38 -0
  633. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -1
  634. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js +102 -1
  635. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  636. package/lib/esm/serialization/BGFBWriter.js.map +1 -1
  637. package/lib/esm/serialization/GeometrySamples.d.ts +11 -0
  638. package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -1
  639. package/lib/esm/serialization/GeometrySamples.js +30 -0
  640. package/lib/esm/serialization/GeometrySamples.js.map +1 -1
  641. package/lib/esm/serialization/IModelJsonSchema.d.ts +2 -7
  642. package/lib/esm/serialization/IModelJsonSchema.d.ts.map +1 -1
  643. package/lib/esm/serialization/IModelJsonSchema.js +2 -7
  644. package/lib/esm/serialization/IModelJsonSchema.js.map +1 -1
  645. package/lib/esm/solid/LinearSweep.d.ts +2 -1
  646. package/lib/esm/solid/LinearSweep.d.ts.map +1 -1
  647. package/lib/esm/solid/LinearSweep.js.map +1 -1
  648. package/lib/esm/solid/RotationalSweep.d.ts +2 -1
  649. package/lib/esm/solid/RotationalSweep.d.ts.map +1 -1
  650. package/lib/esm/solid/RotationalSweep.js.map +1 -1
  651. package/lib/esm/solid/RuledSweep.d.ts +2 -1
  652. package/lib/esm/solid/RuledSweep.d.ts.map +1 -1
  653. package/lib/esm/solid/RuledSweep.js.map +1 -1
  654. package/lib/esm/solid/SweepContour.d.ts +2 -2
  655. package/lib/esm/solid/SweepContour.d.ts.map +1 -1
  656. package/lib/esm/solid/SweepContour.js +9 -0
  657. package/lib/esm/solid/SweepContour.js.map +1 -1
  658. package/lib/esm/topology/ChainMerge.js +1 -1
  659. package/lib/esm/topology/ChainMerge.js.map +1 -1
  660. package/lib/esm/topology/HalfEdgeGraphSearch.d.ts.map +1 -1
  661. package/lib/esm/topology/HalfEdgeGraphSearch.js +1 -1
  662. package/lib/esm/topology/HalfEdgeGraphSearch.js.map +1 -1
  663. package/lib/esm/topology/HalfEdgeGraphSpineContext.js +1 -1
  664. package/lib/esm/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  665. package/lib/esm/topology/HalfEdgePriorityQueue.d.ts.map +1 -1
  666. package/lib/esm/topology/HalfEdgePriorityQueue.js +1 -1
  667. package/lib/esm/topology/HalfEdgePriorityQueue.js.map +1 -1
  668. package/lib/esm/topology/RegularizeFace.js +3 -3
  669. package/lib/esm/topology/RegularizeFace.js.map +1 -1
  670. package/lib/esm/topology/Triangulation.js +1 -1
  671. package/lib/esm/topology/Triangulation.js.map +1 -1
  672. package/package.json +6 -17
  673. package/lib/cjs/curve/ChainCollectorContext.d.ts.map +0 -1
  674. package/lib/cjs/curve/ChainCollectorContext.js.map +0 -1
  675. package/lib/esm/curve/ChainCollectorContext.d.ts.map +0 -1
  676. package/lib/esm/curve/ChainCollectorContext.js.map +0 -1
@@ -14,20 +14,20 @@ import { CurveChain } from "./CurveCollection";
14
14
  import { VariantCurveExtendParameter } from "./CurveExtendMode";
15
15
  import { CurveLocationDetail } from "./CurveLocationDetail";
16
16
  import { GeometryQuery } from "./GeometryQuery";
17
- import { OffsetOptions } from "./internalContexts/PolygonOffsetContext";
18
17
  import { LineString3d } from "./LineString3d";
18
+ import { OffsetOptions } from "./OffsetOptions";
19
19
  import { StrokeOptions } from "./StrokeOptions";
20
20
  /**
21
- * * Annotation of an interval of a curve.
21
+ * Annotation of an interval of a curve.
22
22
  * * The interval is marked with two pairs of numbers:
23
23
  * * * fraction0, fraction1 = fraction parameters along the child curve
24
24
  * * * distance0,distance1 = distances within containing CurveChainWithDistanceIndex
25
25
  * @public
26
26
  */
27
27
  export declare class PathFragment {
28
- /** distance along parent to this fragment start */
28
+ /** Distance along parent to this fragment start */
29
29
  chainDistance0: number;
30
- /** distance along parent to this fragment end */
30
+ /** Distance along parent to this fragment end */
31
31
  chainDistance1: number;
32
32
  /** Fractional position of this fragment start within its curve primitive. */
33
33
  childFraction0: number;
@@ -35,9 +35,9 @@ export declare class PathFragment {
35
35
  childFraction1: number;
36
36
  /** Curve primitive of this fragment, as presented in stroker. Note that this might have become a proxy. */
37
37
  childCurve: CurvePrimitive;
38
- /** optional range */
38
+ /** Optional range */
39
39
  range?: Range3d;
40
- /** working var for use in searches. */
40
+ /** Working var for use in searches. */
41
41
  a: number;
42
42
  /** Create a fragment with complete fraction, distance and child data. */
43
43
  constructor(childFraction0: number, childFraction1: number, distance0: number, distance1: number, childCurve: CurvePrimitive, range?: Range3d);
@@ -46,25 +46,32 @@ export declare class PathFragment {
46
46
  * @param distance
47
47
  */
48
48
  containsChainDistance(distance: number): boolean;
49
+ /** Return a quick distance to the curve. This may be SMALLER than true distance but may not be larger */
49
50
  quickMinDistanceToChildCurve(spacePoint: Point3d): number;
51
+ /**
52
+ * Return an array with (references to) all the path fragments, sorted smallest to largest on the "a" value
53
+ * equal to the quick min distance to the fragment
54
+ */
50
55
  static collectSortedQuickMinDistances(fragments: PathFragment[], spacePoint: Point3d): PathFragment[];
51
56
  /**
52
57
  * Return true if this fragment addresses `curve` and brackets `fraction`
53
58
  * @param distance
54
59
  */
55
60
  containsChildCurveAndChildFraction(curve: CurvePrimitive, fraction: number): boolean;
56
- /** Convert distance to local fraction, and apply that to interpolate between the stored curve fractions.
61
+ /**
62
+ * Convert distance to local fraction, and apply that to interpolate between the stored curve fractions.
57
63
  * Note that proportional calculation does NOT account for nonuniform parameterization in the child curve.
58
64
  */
59
65
  chainDistanceToInterpolatedChildFraction(distance: number): number;
60
- /** Convert chainDistance to true chidFraction, using detailed moveSignedDistanceFromFraction
61
- */
66
+ /** Convert chainDistance to true chidFraction, using detailed moveSignedDistanceFromFraction */
62
67
  chainDistanceToAccurateChildFraction(chainDistance: number, allowExtrapolation?: boolean): number;
63
- /** Return the scale factor to map childCurve fraction derivatives to chain fraction derivatives
68
+ /**
69
+ * Return the scale factor to map childCurve fraction derivatives to chain fraction derivatives
64
70
  * @param globalDistance total length of the global curve.
65
71
  */
66
72
  fractionScaleFactor(globalDistance: number): number;
67
- /** Reverse the fraction and distance data.
73
+ /**
74
+ * Reverse the fraction and distance data.
68
75
  * * each child fraction `f` is replaced by `1-f`
69
76
  * * each `chainDistance` is replaced by `totalDistance-chainDistance`
70
77
  */
@@ -72,7 +79,7 @@ export declare class PathFragment {
72
79
  /** @deprecated in 3.x. Use childFractionToChainDistance */
73
80
  childFractionTChainDistance(fraction: number): number;
74
81
  /**
75
- * convert a fractional position on the childCurve to distance in the chain space.
82
+ * Convert a fractional position on the childCurve to distance in the chain space.
76
83
  * * Return value is SIGNED -- will be negative when fraction < this.childFraction0.
77
84
  * @param fraction fraction along the curve within this fragment
78
85
  */
@@ -81,6 +88,8 @@ export declare class PathFragment {
81
88
  /**
82
89
  * `CurveChainWithDistanceIndex` is a CurvePrimitive whose fractional parameterization is proportional to true
83
90
  * distance along a CurveChain.
91
+ * * For example if the total length of the chain is `L`, then the distance along the chain from parameters `t0`
92
+ * to `t1` is easily computed as `L*(t1-t0)`.
84
93
  * * The curve chain can be any type derived from CurveChain.
85
94
  * * * i.e. either a `Path` or a `Loop`
86
95
  * @public
@@ -99,11 +108,13 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
99
108
  * @param transform transform to apply in the clone.
100
109
  */
101
110
  cloneTransformed(transform: Transform): CurveChainWithDistanceIndex | undefined;
102
- /** Reference to the contained path.
111
+ /**
112
+ * Reference to the contained path.
103
113
  * * Do not modify the path. The distance index will be wrong.
104
114
  */
105
115
  get path(): CurveChain;
106
- /** Reference to the fragments array.
116
+ /**
117
+ * Reference to the fragments array.
107
118
  * * Do not modify.
108
119
  */
109
120
  get fragments(): PathFragment[];
@@ -111,22 +122,24 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
111
122
  clone(): CurveChainWithDistanceIndex;
112
123
  /** Return a deep clone */
113
124
  clonePartialCurve(fractionA: number, fractionB: number): CurveChainWithDistanceIndex | undefined;
114
- /** Ask if the curve is within tolerance of a plane.
125
+ /**
126
+ * Ask if the curve is within tolerance of a plane.
115
127
  * @returns Returns true if the curve is completely within tolerance of the plane.
116
128
  */
117
129
  isInPlane(plane: Plane3dByOriginAndUnitNormal): boolean;
118
- /** return the start point of the primitive. The default implementation returns fractionToPoint (0.0) */
130
+ /** Return the start point of the primitive. The default implementation returns fractionToPoint (0.0) */
119
131
  startPoint(result?: Point3d): Point3d;
120
132
  /** Return the end point of the primitive. The default implementation returns fractionToPoint(1.0) */
121
133
  endPoint(result?: Point3d): Point3d;
122
134
  /** Add strokes to caller-supplied linestring */
123
135
  emitStrokes(dest: LineString3d, options?: StrokeOptions): void;
124
- /** Ask the curve to announce points and simple subcurve fragments for stroking.
136
+ /**
137
+ * Ask the curve to announce points and simple subcurve fragments for stroking.
125
138
  * See IStrokeHandler for description of the sequence of the method calls.
126
139
  */
127
140
  emitStrokableParts(dest: IStrokeHandler, options?: StrokeOptions): void;
128
141
  /**
129
- * return the stroke count required for given options.
142
+ * Return the stroke count required for given options.
130
143
  * @param options StrokeOptions that determine count
131
144
  */
132
145
  computeStrokeCountForOptions(options?: StrokeOptions): number;
@@ -134,25 +147,25 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
134
147
  * Return an array containing only the curve primitives.
135
148
  * @param collectorArray array to receive primitives (pushed -- the array is not cleared)
136
149
  * @param smallestPossiblePrimitives if true, recurse on the (otherwise hidden) children. If false, only push `this`.
137
- * @param explodeLinestrings (if smallestPossiblePrimitives is true) whether to push a [[LineSegment3d]] for each segment of a [[LineString3d]] child. If false, push only the [[LineString3d]].
150
+ * @param explodeLinestrings (if smallestPossiblePrimitives is true) whether to push a [[LineSegment3d]] for each
151
+ * segment of a [[LineString3d]] child. If false, push only the [[LineString3d]].
138
152
  */
139
153
  collectCurvePrimitivesGo(collectorArray: CurvePrimitive[], smallestPossiblePrimitives?: boolean, explodeLineStrings?: boolean): void;
140
154
  /**
141
- * construct StrokeCountMap for each child, accumulating data to stroke count map for this primitive.
155
+ * Construct StrokeCountMap for each child, accumulating data to stroke count map for this primitive.
142
156
  * @param options StrokeOptions that determine count
143
157
  * @param parentStrokeMap evolving parent map.
144
158
  */
145
159
  computeAndAttachRecursiveStrokeCounts(options?: StrokeOptions, parentStrokeMap?: StrokeCountMap): void;
146
- /** Second step of double dispatch: call `this._path.dispatchToGeometryHandler (handler)`
160
+ /**
161
+ * Second step of double dispatch: call `this._path.dispatchToGeometryHandler (handler)`
147
162
  * * Note that this exposes the children individually to the handler.
148
163
  */
149
164
  dispatchToGeometryHandler(handler: GeometryHandler): any;
150
- /** Extend (increase) `rangeToExtend` as needed to include these curves (optionally transformed)
151
- */
165
+ /** Extend (increase) `rangeToExtend` as needed to include these curves (optionally transformed) */
152
166
  extendRange(rangeToExtend: Range3d, transform?: Transform): void;
153
167
  /**
154
- *
155
- * * Curve length is always positive.
168
+ * Curve length is always positive.
156
169
  * @returns Returns a (high accuracy) length of the curve between fractional positions
157
170
  * @returns Returns the length of the curve.
158
171
  */
@@ -185,9 +198,7 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
185
198
  * @param fraction
186
199
  */
187
200
  curveAndChildFractionToFragment(curve: CurvePrimitive, fraction: number): PathFragment | undefined;
188
- /**
189
- * Returns the total length of curves.
190
- */
201
+ /** Returns the total length of curves. */
191
202
  curveLength(): number;
192
203
  /**
193
204
  * Returns the total length of the path.
@@ -200,8 +211,8 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
200
211
  * @returns Returns a point on the curve.
201
212
  */
202
213
  fractionToPoint(fraction: number, result?: Point3d): Point3d;
203
- /** Return the point (x,y,z) and derivative on the curve at fractional position.
204
- *
214
+ /**
215
+ * Return the point (x,y,z) and derivative on the curve at fractional position.
205
216
  * * Note that this derivative is "derivative of xyz with respect to fraction."
206
217
  * * this derivative shows the speed of the "fractional point" moving along the curve.
207
218
  * * this is not generally a unit vector. use fractionToPointAndUnitTangent for a unit vector.
@@ -216,14 +227,16 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
216
227
  * Returns a ray whose origin is the curve point and direction is the unit tangent.
217
228
  */
218
229
  fractionToPointAndUnitTangent(fraction: number, result?: Ray3d): Ray3d;
219
- /** Return a plane with
220
- *
230
+ /**
231
+ * Return a plane with
221
232
  * * origin at fractional position along the curve
222
- * * vectorU is the first derivative, i.e. tangent vector with length equal to the rate of change with respect to the fraction.
233
+ * * vectorU is the first derivative, i.e. tangent vector with length equal to the rate of change with respect to
234
+ * the fraction.
223
235
  * * vectorV is the second derivative, i.e.derivative of vectorU.
224
236
  */
225
237
  fractionToPointAnd2Derivatives(fraction: number, result?: Plane3dByOriginAndVectors): Plane3dByOriginAndVectors | undefined;
226
- /** Attempt to transform in place.
238
+ /**
239
+ * Attempt to transform in place.
227
240
  * * Warning: If any child fails, this object becomes invalid. But that should never happen.
228
241
  */
229
242
  tryTransformInPlace(transform: Transform): boolean;
@@ -236,13 +249,14 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
236
249
  * @param other
237
250
  */
238
251
  isAlmostEqual(other: GeometryQuery): boolean;
239
- /** Implement moveSignedDistanceFromFraction.
252
+ /**
253
+ * Implement moveSignedDistanceFromFraction.
240
254
  * * See `CurvePrimitive` for parameter details.
241
- * * The returned location directly identifies fractional position along the CurveChainWithDistanceIndex, and has pointer to an additional detail for the child curve.
255
+ * * The returned location directly identifies fractional position along the CurveChainWithDistanceIndex, and
256
+ * has pointer to an additional detail for the child curve.
242
257
  */
243
258
  moveSignedDistanceFromFraction(startFraction: number, signedDistance: number, allowExtension: boolean, result?: CurveLocationDetail): CurveLocationDetail;
244
259
  /**
245
- *
246
260
  * The returned object has
247
261
  * * numCalls = number of times closestPoint was called.
248
262
  * * numCurvesTested = number of curves tested with full closestPoint
@@ -261,10 +275,12 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
261
275
  private static _numTested;
262
276
  private static _numAssigned;
263
277
  private static _numCandidate;
264
- /** Search for the curve point that is closest to the spacePoint.
278
+ /**
279
+ * Search for the curve point that is closest to the spacePoint.
265
280
  * * The CurveChainWithDistanceIndex invokes the base class CurvePrimitive method, which
266
281
  * (via a handler) determines a CurveLocation detail among the children.
267
- * * The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex, and has pointer to an additional detail for the child curve.
282
+ * * The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex, and
283
+ * has pointer to an additional detail for the child curve.
268
284
  * @param spacePoint point in space
269
285
  * @param extend true to extend the curve
270
286
  * @returns Returns a CurveLocationDetail structure that holds the details of the close point.
@@ -272,14 +288,18 @@ export declare class CurveChainWithDistanceIndex extends CurvePrimitive {
272
288
  closestPoint(spacePoint: Point3d, extend: VariantCurveExtendParameter): CurveLocationDetail | undefined;
273
289
  /**
274
290
  * Construct an offset of each child as viewed in the xy-plane (ignoring z).
275
- * * No attempt is made to join the offset children. Use RegionOps.constructCurveXYOffset() to return a fully joined offset.
291
+ * * No attempt is made to join the offset children. Use RegionOps.constructCurveXYOffset() to return a fully
292
+ * joined offset.
276
293
  * @param offsetDistanceOrOptions offset distance (positive to left of the instance curve), or options object
277
294
  */
278
295
  constructOffsetXY(offsetDistanceOrOptions: number | OffsetOptions): CurvePrimitive | CurvePrimitive[] | undefined;
279
- /** Project instance geometry (via dispatch) onto the given ray, and return the extreme fractional parameters of projection.
296
+ /**
297
+ * Project instance geometry (via dispatch) onto the given ray, and return the extreme fractional parameters of
298
+ * projection.
280
299
  * @param ray ray onto which the instance is projected. A `Vector3d` is treated as a `Ray3d` with zero origin.
281
300
  * @param lowHigh optional receiver for output
282
- * @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the end of the ray.
301
+ * @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the
302
+ * end of the ray.
283
303
  */
284
304
  projectedParameterRange(ray: Vector3d | Ray3d, lowHigh?: Range1d): Range1d | undefined;
285
305
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CurveChainWithDistanceIndex.d.ts","sourceRoot":"","sources":["../../../src/curve/CurveChainWithDistanceIndex.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,OAAO,EAAE,eA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,EAAE,OAAO,EAAE,MAAM,EAAE,2BAA2B,GACvD,mBAAmB,GAAG,SAAS;IA0ClC;;;;;OAKG;IACa,iBAAiB,CAC/B,uBAAuB,EAAE,MAAM,GAAG,aAAa,GAC9C,cAAc,GAAG,cAAc,EAAE,GAAG,SAAS;IAchD;;;;;;;OAOG;IACa,uBAAuB,CAAC,GAAG,EAAE,QAAQ,GAAG,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS;CAGvG"}
@@ -17,10 +17,10 @@ const CurveCollection_1 = require("./CurveCollection");
17
17
  const CurveExtendMode_1 = require("./CurveExtendMode");
18
18
  const CurveLocationDetail_1 = require("./CurveLocationDetail");
19
19
  const PlaneAltitudeRangeContext_1 = require("./internalContexts/PlaneAltitudeRangeContext");
20
- const PolygonOffsetContext_1 = require("./internalContexts/PolygonOffsetContext");
20
+ const OffsetOptions_1 = require("./OffsetOptions");
21
21
  const Path_1 = require("./Path");
22
22
  /**
23
- * * Annotation of an interval of a curve.
23
+ * Annotation of an interval of a curve.
24
24
  * * The interval is marked with two pairs of numbers:
25
25
  * * * fraction0, fraction1 = fraction parameters along the child curve
26
26
  * * * distance0,distance1 = distances within containing CurveChainWithDistanceIndex
@@ -44,8 +44,7 @@ class PathFragment {
44
44
  containsChainDistance(distance) {
45
45
  return distance >= this.chainDistance0 && distance <= this.chainDistance1;
46
46
  }
47
- // Return a quick distance to the curve. This may be SMALLER than true distance but may
48
- // not be larger.
47
+ /** Return a quick distance to the curve. This may be SMALLER than true distance but may not be larger */
49
48
  quickMinDistanceToChildCurve(spacePoint) {
50
49
  if (this.range) {
51
50
  return this.range.distanceToPoint(spacePoint);
@@ -56,8 +55,10 @@ class PathFragment {
56
55
  return detail.a;
57
56
  return 0;
58
57
  }
59
- // Return an array with (references to) all the path fragments, sorted smallest to largest on
60
- // the "a" value equal to the quick min distance to the fragment
58
+ /**
59
+ * Return an array with (references to) all the path fragments, sorted smallest to largest on the "a" value
60
+ * equal to the quick min distance to the fragment
61
+ */
61
62
  static collectSortedQuickMinDistances(fragments, spacePoint) {
62
63
  const sortedFragments = [];
63
64
  for (const f of fragments) {
@@ -74,26 +75,28 @@ class PathFragment {
74
75
  containsChildCurveAndChildFraction(curve, fraction) {
75
76
  return this.childCurve === curve && fraction >= this.childFraction0 && fraction <= this.childFraction1;
76
77
  }
77
- /** Convert distance to local fraction, and apply that to interpolate between the stored curve fractions.
78
+ /**
79
+ * Convert distance to local fraction, and apply that to interpolate between the stored curve fractions.
78
80
  * Note that proportional calculation does NOT account for nonuniform parameterization in the child curve.
79
81
  */
80
82
  chainDistanceToInterpolatedChildFraction(distance) {
81
83
  return Geometry_1.Geometry.inverseInterpolate(this.childFraction0, this.chainDistance0, this.childFraction1, this.chainDistance1, distance, this.childFraction0); // the interval "must" have nonzero length, division should be safe . ..
82
84
  }
83
- /** Convert chainDistance to true chidFraction, using detailed moveSignedDistanceFromFraction
84
- */
85
+ /** Convert chainDistance to true chidFraction, using detailed moveSignedDistanceFromFraction */
85
86
  chainDistanceToAccurateChildFraction(chainDistance, allowExtrapolation) {
86
87
  // The fragments are really expected to do good mappings in their distance range ...
87
88
  const childDetail = this.childCurve.moveSignedDistanceFromFraction(this.childFraction0, chainDistance - this.chainDistance0, allowExtrapolation ?? false);
88
89
  return childDetail.fraction;
89
90
  }
90
- /** Return the scale factor to map childCurve fraction derivatives to chain fraction derivatives
91
+ /**
92
+ * Return the scale factor to map childCurve fraction derivatives to chain fraction derivatives
91
93
  * @param globalDistance total length of the global curve.
92
94
  */
93
95
  fractionScaleFactor(globalDistance) {
94
96
  return globalDistance * (this.childFraction1 - this.childFraction0) / (this.chainDistance1 - this.chainDistance0);
95
97
  }
96
- /** Reverse the fraction and distance data.
98
+ /**
99
+ * Reverse the fraction and distance data.
97
100
  * * each child fraction `f` is replaced by `1-f`
98
101
  * * each `chainDistance` is replaced by `totalDistance-chainDistance`
99
102
  */
@@ -112,7 +115,7 @@ class PathFragment {
112
115
  return this.childFractionToChainDistance(fraction);
113
116
  }
114
117
  /**
115
- * convert a fractional position on the childCurve to distance in the chain space.
118
+ * Convert a fractional position on the childCurve to distance in the chain space.
116
119
  * * Return value is SIGNED -- will be negative when fraction < this.childFraction0.
117
120
  * @param fraction fraction along the curve within this fragment
118
121
  */
@@ -135,7 +138,6 @@ class DistanceIndexConstructionContext {
135
138
  startCurvePrimitive(_cp) { }
136
139
  endParentCurvePrimitive(_cp) { }
137
140
  endCurvePrimitive(_cp) { }
138
- // um .. we need to see curves? how to reject?
139
141
  announcePointTangent(_xyz, _fraction, _tangent) { }
140
142
  /** Announce numPoints interpolated between point0 and point1, with associated fractions */
141
143
  announceSegmentInterval(cp, point0, point1, numStrokes, fraction0, fraction1) {
@@ -182,13 +184,17 @@ class DistanceIndexConstructionContext {
182
184
  /**
183
185
  * `CurveChainWithDistanceIndex` is a CurvePrimitive whose fractional parameterization is proportional to true
184
186
  * distance along a CurveChain.
187
+ * * For example if the total length of the chain is `L`, then the distance along the chain from parameters `t0`
188
+ * to `t1` is easily computed as `L*(t1-t0)`.
185
189
  * * The curve chain can be any type derived from CurveChain.
186
190
  * * * i.e. either a `Path` or a `Loop`
187
191
  * @public
188
192
  */
189
193
  class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
190
194
  /** Test if other is a `CurveChainWithDistanceIndex` */
191
- isSameGeometryClass(other) { return other instanceof CurveChainWithDistanceIndex; }
195
+ isSameGeometryClass(other) {
196
+ return other instanceof CurveChainWithDistanceIndex;
197
+ }
192
198
  // final assembly of CurveChainWithDistanceIndex -- caller must create valid fragment index.
193
199
  constructor(path, fragments) {
194
200
  super();
@@ -208,14 +214,20 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
208
214
  return CurveChainWithDistanceIndex.createCapture(c);
209
215
  return undefined;
210
216
  }
211
- /** Reference to the contained path.
217
+ /**
218
+ * Reference to the contained path.
212
219
  * * Do not modify the path. The distance index will be wrong.
213
220
  */
214
- get path() { return this._path; }
215
- /** Reference to the fragments array.
221
+ get path() {
222
+ return this._path;
223
+ }
224
+ /**
225
+ * Reference to the fragments array.
216
226
  * * Do not modify.
217
227
  */
218
- get fragments() { return this._fragments; }
228
+ get fragments() {
229
+ return this._fragments;
230
+ }
219
231
  /** Return a deep clone */
220
232
  clone() {
221
233
  const c = this._path.clone();
@@ -287,7 +299,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
287
299
  newPath.children.reverse();
288
300
  return CurveChainWithDistanceIndex.createCapture(newPath);
289
301
  }
290
- /** Ask if the curve is within tolerance of a plane.
302
+ /**
303
+ * Ask if the curve is within tolerance of a plane.
291
304
  * @returns Returns true if the curve is completely within tolerance of the plane.
292
305
  */
293
306
  isInPlane(plane) {
@@ -297,7 +310,7 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
297
310
  }
298
311
  return true;
299
312
  }
300
- /** return the start point of the primitive. The default implementation returns fractionToPoint (0.0) */
313
+ /** Return the start point of the primitive. The default implementation returns fractionToPoint (0.0) */
301
314
  startPoint(result) {
302
315
  const c = this._path.cyclicCurvePrimitive(0);
303
316
  if (c)
@@ -317,7 +330,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
317
330
  c.emitStrokes(dest, options);
318
331
  }
319
332
  }
320
- /** Ask the curve to announce points and simple subcurve fragments for stroking.
333
+ /**
334
+ * Ask the curve to announce points and simple subcurve fragments for stroking.
321
335
  * See IStrokeHandler for description of the sequence of the method calls.
322
336
  */
323
337
  emitStrokableParts(dest, options) {
@@ -326,7 +340,7 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
326
340
  }
327
341
  }
328
342
  /**
329
- * return the stroke count required for given options.
343
+ * Return the stroke count required for given options.
330
344
  * @param options StrokeOptions that determine count
331
345
  */
332
346
  computeStrokeCountForOptions(options) {
@@ -340,7 +354,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
340
354
  * Return an array containing only the curve primitives.
341
355
  * @param collectorArray array to receive primitives (pushed -- the array is not cleared)
342
356
  * @param smallestPossiblePrimitives if true, recurse on the (otherwise hidden) children. If false, only push `this`.
343
- * @param explodeLinestrings (if smallestPossiblePrimitives is true) whether to push a [[LineSegment3d]] for each segment of a [[LineString3d]] child. If false, push only the [[LineString3d]].
357
+ * @param explodeLinestrings (if smallestPossiblePrimitives is true) whether to push a [[LineSegment3d]] for each
358
+ * segment of a [[LineString3d]] child. If false, push only the [[LineString3d]].
344
359
  */
345
360
  collectCurvePrimitivesGo(collectorArray, smallestPossiblePrimitives = false, explodeLineStrings = false) {
346
361
  if (smallestPossiblePrimitives) {
@@ -353,7 +368,7 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
353
368
  }
354
369
  }
355
370
  /**
356
- * construct StrokeCountMap for each child, accumulating data to stroke count map for this primitive.
371
+ * Construct StrokeCountMap for each child, accumulating data to stroke count map for this primitive.
357
372
  * @param options StrokeOptions that determine count
358
373
  * @param parentStrokeMap evolving parent map.
359
374
  */
@@ -364,20 +379,19 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
364
379
  }
365
380
  CurvePrimitive_1.CurvePrimitive.installStrokeCountMap(this, myMap, parentStrokeMap);
366
381
  }
367
- /** Second step of double dispatch: call `this._path.dispatchToGeometryHandler (handler)`
382
+ /**
383
+ * Second step of double dispatch: call `this._path.dispatchToGeometryHandler (handler)`
368
384
  * * Note that this exposes the children individually to the handler.
369
385
  */
370
386
  dispatchToGeometryHandler(handler) {
371
387
  return this._path.dispatchToGeometryHandler(handler);
372
388
  }
373
- /** Extend (increase) `rangeToExtend` as needed to include these curves (optionally transformed)
374
- */
389
+ /** Extend (increase) `rangeToExtend` as needed to include these curves (optionally transformed) */
375
390
  extendRange(rangeToExtend, transform) {
376
391
  this._path.extendRange(rangeToExtend, transform);
377
392
  }
378
393
  /**
379
- *
380
- * * Curve length is always positive.
394
+ * Curve length is always positive.
381
395
  * @returns Returns a (high accuracy) length of the curve between fractional positions
382
396
  * @returns Returns the length of the curve.
383
397
  */
@@ -429,7 +443,9 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
429
443
  * Convert distance along the chain to fraction along the chain.
430
444
  * @param distance distance along the chain
431
445
  */
432
- chainDistanceToChainFraction(distance) { return distance / this._totalLength; }
446
+ chainDistanceToChainFraction(distance) {
447
+ return distance / this._totalLength;
448
+ }
433
449
  /**
434
450
  * Resolve a fraction within a specific curve to a fragment.
435
451
  * @param curve
@@ -451,9 +467,7 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
451
467
  }
452
468
  return undefined;
453
469
  }
454
- /**
455
- * Returns the total length of curves.
456
- */
470
+ /** Returns the total length of curves. */
457
471
  curveLength() {
458
472
  return this._totalLength;
459
473
  }
@@ -480,8 +494,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
480
494
  // fragment = this.chainDistanceToFragment(chainDistance, true);
481
495
  return this._fragments[0].childCurve.fractionToPoint(0.0, result);
482
496
  }
483
- /** Return the point (x,y,z) and derivative on the curve at fractional position.
484
- *
497
+ /**
498
+ * Return the point (x,y,z) and derivative on the curve at fractional position.
485
499
  * * Note that this derivative is "derivative of xyz with respect to fraction."
486
500
  * * this derivative shows the speed of the "fractional point" moving along the curve.
487
501
  * * this is not generally a unit vector. use fractionToPointAndUnitTangent for a unit vector.
@@ -515,10 +529,11 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
515
529
  result.direction.normalizeInPlace();
516
530
  return result;
517
531
  }
518
- /** Return a plane with
519
- *
532
+ /**
533
+ * Return a plane with
520
534
  * * origin at fractional position along the curve
521
- * * vectorU is the first derivative, i.e. tangent vector with length equal to the rate of change with respect to the fraction.
535
+ * * vectorU is the first derivative, i.e. tangent vector with length equal to the rate of change with respect to
536
+ * the fraction.
522
537
  * * vectorV is the second derivative, i.e.derivative of vectorU.
523
538
  */
524
539
  fractionToPointAnd2Derivatives(fraction, result) {
@@ -544,7 +559,8 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
544
559
  result.vectorV.scaleInPlace(scale * scale);
545
560
  return result;
546
561
  }
547
- /** Attempt to transform in place.
562
+ /**
563
+ * Attempt to transform in place.
548
564
  * * Warning: If any child fails, this object becomes invalid. But that should never happen.
549
565
  */
550
566
  tryTransformInPlace(transform) {
@@ -577,9 +593,11 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
577
593
  }
578
594
  return false;
579
595
  }
580
- /** Implement moveSignedDistanceFromFraction.
596
+ /**
597
+ * Implement moveSignedDistanceFromFraction.
581
598
  * * See `CurvePrimitive` for parameter details.
582
- * * The returned location directly identifies fractional position along the CurveChainWithDistanceIndex, and has pointer to an additional detail for the child curve.
599
+ * * The returned location directly identifies fractional position along the CurveChainWithDistanceIndex, and
600
+ * has pointer to an additional detail for the child curve.
583
601
  */
584
602
  moveSignedDistanceFromFraction(startFraction, signedDistance, allowExtension, result) {
585
603
  const distanceA = startFraction * this._totalLength;
@@ -592,7 +610,6 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
592
610
  return chainDetail;
593
611
  }
594
612
  /**
595
- *
596
613
  * The returned object has
597
614
  * * numCalls = number of times closestPoint was called.
598
615
  * * numCurvesTested = number of curves tested with full closestPoint
@@ -613,10 +630,12 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
613
630
  }
614
631
  return a;
615
632
  }
616
- /** Search for the curve point that is closest to the spacePoint.
633
+ /**
634
+ * Search for the curve point that is closest to the spacePoint.
617
635
  * * The CurveChainWithDistanceIndex invokes the base class CurvePrimitive method, which
618
636
  * (via a handler) determines a CurveLocation detail among the children.
619
- * * The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex, and has pointer to an additional detail for the child curve.
637
+ * * The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex, and
638
+ * has pointer to an additional detail for the child curve.
620
639
  * @param spacePoint point in space
621
640
  * @param extend true to extend the curve
622
641
  * @returns Returns a CurveLocationDetail structure that holds the details of the close point.
@@ -665,11 +684,12 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
665
684
  }
666
685
  /**
667
686
  * Construct an offset of each child as viewed in the xy-plane (ignoring z).
668
- * * No attempt is made to join the offset children. Use RegionOps.constructCurveXYOffset() to return a fully joined offset.
687
+ * * No attempt is made to join the offset children. Use RegionOps.constructCurveXYOffset() to return a fully
688
+ * joined offset.
669
689
  * @param offsetDistanceOrOptions offset distance (positive to left of the instance curve), or options object
670
690
  */
671
691
  constructOffsetXY(offsetDistanceOrOptions) {
672
- const options = PolygonOffsetContext_1.OffsetOptions.create(offsetDistanceOrOptions);
692
+ const options = OffsetOptions_1.OffsetOptions.create(offsetDistanceOrOptions);
673
693
  const offsets = [];
674
694
  for (const prim of this.collectCurvePrimitives(undefined, true, true)) {
675
695
  const offset = prim.constructOffsetXY(options);
@@ -682,10 +702,13 @@ class CurveChainWithDistanceIndex extends CurvePrimitive_1.CurvePrimitive {
682
702
  }
683
703
  return offsets;
684
704
  }
685
- /** Project instance geometry (via dispatch) onto the given ray, and return the extreme fractional parameters of projection.
705
+ /**
706
+ * Project instance geometry (via dispatch) onto the given ray, and return the extreme fractional parameters of
707
+ * projection.
686
708
  * @param ray ray onto which the instance is projected. A `Vector3d` is treated as a `Ray3d` with zero origin.
687
709
  * @param lowHigh optional receiver for output
688
- * @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the end of the ray.
710
+ * @returns range of fractional projection parameters onto the ray, where 0.0 is start of the ray and 1.0 is the
711
+ * end of the ray.
689
712
  */
690
713
  projectedParameterRange(ray, lowHigh) {
691
714
  return PlaneAltitudeRangeContext_1.PlaneAltitudeRangeContext.findExtremeFractionsAlongDirection(this, ray, lowHigh);