@itwin/core-geometry 4.1.0-dev.6 → 4.1.0-dev.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/CHANGELOG.md +62 -1
  2. package/lib/cjs/clipping/ClipPrimitive.d.ts.map +1 -1
  3. package/lib/cjs/clipping/ClipPrimitive.js +2 -0
  4. package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
  5. package/lib/cjs/core-geometry.d.ts +1 -0
  6. package/lib/cjs/core-geometry.d.ts.map +1 -1
  7. package/lib/cjs/core-geometry.js +4 -1
  8. package/lib/cjs/core-geometry.js.map +1 -1
  9. package/lib/cjs/curve/Arc3d.d.ts +1 -0
  10. package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
  11. package/lib/cjs/curve/Arc3d.js +1 -0
  12. package/lib/cjs/curve/Arc3d.js.map +1 -1
  13. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts +61 -41
  14. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  15. package/lib/cjs/curve/CurveChainWithDistanceIndex.js +69 -46
  16. package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
  17. package/lib/cjs/curve/CurveCollection.d.ts +36 -26
  18. package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
  19. package/lib/cjs/curve/CurveCollection.js +46 -39
  20. package/lib/cjs/curve/CurveCollection.js.map +1 -1
  21. package/lib/cjs/curve/CurveCurve.d.ts.map +1 -1
  22. package/lib/cjs/curve/CurveCurve.js.map +1 -1
  23. package/lib/cjs/curve/CurveFactory.d.ts +67 -3
  24. package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
  25. package/lib/cjs/curve/CurveFactory.js +75 -7
  26. package/lib/cjs/curve/CurveFactory.js.map +1 -1
  27. package/lib/cjs/curve/CurveLocationDetail.d.ts +6 -6
  28. package/lib/cjs/curve/CurveLocationDetail.d.ts.map +1 -1
  29. package/lib/cjs/curve/CurveLocationDetail.js +9 -7
  30. package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
  31. package/lib/cjs/curve/CurvePrimitive.d.ts +4 -3
  32. package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -1
  33. package/lib/cjs/curve/CurvePrimitive.js +4 -3
  34. package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
  35. package/lib/cjs/curve/LineSegment3d.d.ts +6 -4
  36. package/lib/cjs/curve/LineSegment3d.d.ts.map +1 -1
  37. package/lib/cjs/curve/LineSegment3d.js +4 -4
  38. package/lib/cjs/curve/LineSegment3d.js.map +1 -1
  39. package/lib/cjs/curve/LineString3d.d.ts +1 -1
  40. package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
  41. package/lib/cjs/curve/LineString3d.js +1 -1
  42. package/lib/cjs/curve/LineString3d.js.map +1 -1
  43. package/lib/cjs/curve/Loop.d.ts +7 -5
  44. package/lib/cjs/curve/Loop.d.ts.map +1 -1
  45. package/lib/cjs/curve/Loop.js +18 -6
  46. package/lib/cjs/curve/Loop.js.map +1 -1
  47. package/lib/cjs/curve/ParityRegion.d.ts +7 -7
  48. package/lib/cjs/curve/ParityRegion.d.ts.map +1 -1
  49. package/lib/cjs/curve/ParityRegion.js +19 -11
  50. package/lib/cjs/curve/ParityRegion.js.map +1 -1
  51. package/lib/cjs/curve/Path.d.ts +6 -6
  52. package/lib/cjs/curve/Path.d.ts.map +1 -1
  53. package/lib/cjs/curve/Path.js +15 -9
  54. package/lib/cjs/curve/Path.js.map +1 -1
  55. package/lib/cjs/curve/ProxyCurve.d.ts +4 -6
  56. package/lib/cjs/curve/ProxyCurve.d.ts.map +1 -1
  57. package/lib/cjs/curve/ProxyCurve.js +7 -7
  58. package/lib/cjs/curve/ProxyCurve.js.map +1 -1
  59. package/lib/cjs/curve/RegionOps.d.ts +69 -47
  60. package/lib/cjs/curve/RegionOps.d.ts.map +1 -1
  61. package/lib/cjs/curve/RegionOps.js +70 -47
  62. package/lib/cjs/curve/RegionOps.js.map +1 -1
  63. package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
  64. package/lib/cjs/curve/StrokeOptions.js +6 -2
  65. package/lib/cjs/curve/StrokeOptions.js.map +1 -1
  66. package/lib/cjs/curve/UnionRegion.d.ts +6 -5
  67. package/lib/cjs/curve/UnionRegion.d.ts.map +1 -1
  68. package/lib/cjs/curve/UnionRegion.js +17 -8
  69. package/lib/cjs/curve/UnionRegion.js.map +1 -1
  70. package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts +2 -1
  71. package/lib/cjs/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
  72. package/lib/cjs/curve/internalContexts/GapSearchContext.js +6 -2
  73. package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
  74. package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts +4 -0
  75. package/lib/cjs/curve/internalContexts/MultiChainCollector.d.ts.map +1 -1
  76. package/lib/cjs/curve/internalContexts/MultiChainCollector.js +5 -2
  77. package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -1
  78. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
  79. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
  80. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
  81. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  82. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts +56 -34
  83. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -1
  84. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js +153 -87
  85. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  86. package/lib/cjs/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
  87. package/lib/cjs/curve/internalContexts/SumLengthsContext.js +4 -1
  88. package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
  89. package/lib/cjs/geometry3d/Angle.d.ts +9 -0
  90. package/lib/cjs/geometry3d/Angle.d.ts.map +1 -1
  91. package/lib/cjs/geometry3d/Angle.js +13 -0
  92. package/lib/cjs/geometry3d/Angle.js.map +1 -1
  93. package/lib/cjs/geometry3d/BilinearPatch.d.ts +43 -48
  94. package/lib/cjs/geometry3d/BilinearPatch.d.ts.map +1 -1
  95. package/lib/cjs/geometry3d/BilinearPatch.js +51 -55
  96. package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
  97. package/lib/cjs/geometry3d/Ellipsoid.d.ts +1 -1
  98. package/lib/cjs/geometry3d/Ellipsoid.js +1 -1
  99. package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
  100. package/lib/cjs/geometry3d/FrameBuilder.d.ts.map +1 -1
  101. package/lib/cjs/geometry3d/FrameBuilder.js +13 -11
  102. package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
  103. package/lib/cjs/geometry3d/GeometryHandler.d.ts +5 -5
  104. package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -1
  105. package/lib/cjs/geometry3d/Matrix3d.d.ts +18 -0
  106. package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
  107. package/lib/cjs/geometry3d/Matrix3d.js +27 -0
  108. package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
  109. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts +36 -32
  110. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -1
  111. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js +35 -32
  112. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  113. package/lib/cjs/geometry3d/Point3dVector3d.d.ts +8 -0
  114. package/lib/cjs/geometry3d/Point3dVector3d.d.ts.map +1 -1
  115. package/lib/cjs/geometry3d/Point3dVector3d.js +13 -0
  116. package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
  117. package/lib/cjs/geometry3d/PolylineOps.d.ts +16 -1
  118. package/lib/cjs/geometry3d/PolylineOps.d.ts.map +1 -1
  119. package/lib/cjs/geometry3d/PolylineOps.js +55 -0
  120. package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
  121. package/lib/cjs/geometry3d/Range.d.ts +134 -94
  122. package/lib/cjs/geometry3d/Range.d.ts.map +1 -1
  123. package/lib/cjs/geometry3d/Range.js +297 -145
  124. package/lib/cjs/geometry3d/Range.js.map +1 -1
  125. package/lib/cjs/geometry3d/Ray3d.d.ts.map +1 -1
  126. package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
  127. package/lib/cjs/geometry3d/Transform.d.ts +7 -0
  128. package/lib/cjs/geometry3d/Transform.d.ts.map +1 -1
  129. package/lib/cjs/geometry3d/Transform.js +12 -0
  130. package/lib/cjs/geometry3d/Transform.js.map +1 -1
  131. package/lib/cjs/polyface/PolyfaceQuery.d.ts +64 -6
  132. package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
  133. package/lib/cjs/polyface/PolyfaceQuery.js +104 -19
  134. package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
  135. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts +11 -0
  136. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -1
  137. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js +79 -1
  138. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  139. package/lib/cjs/serialization/GeometrySamples.d.ts +11 -0
  140. package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -1
  141. package/lib/cjs/serialization/GeometrySamples.js +30 -0
  142. package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
  143. package/lib/cjs/solid/LinearSweep.d.ts +2 -1
  144. package/lib/cjs/solid/LinearSweep.d.ts.map +1 -1
  145. package/lib/cjs/solid/LinearSweep.js.map +1 -1
  146. package/lib/cjs/solid/RotationalSweep.d.ts +2 -1
  147. package/lib/cjs/solid/RotationalSweep.d.ts.map +1 -1
  148. package/lib/cjs/solid/RotationalSweep.js.map +1 -1
  149. package/lib/cjs/solid/RuledSweep.d.ts +2 -1
  150. package/lib/cjs/solid/RuledSweep.d.ts.map +1 -1
  151. package/lib/cjs/solid/RuledSweep.js.map +1 -1
  152. package/lib/cjs/solid/SweepContour.d.ts +2 -2
  153. package/lib/cjs/solid/SweepContour.d.ts.map +1 -1
  154. package/lib/cjs/solid/SweepContour.js +9 -0
  155. package/lib/cjs/solid/SweepContour.js.map +1 -1
  156. package/lib/esm/clipping/ClipPrimitive.d.ts.map +1 -1
  157. package/lib/esm/clipping/ClipPrimitive.js +2 -0
  158. package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
  159. package/lib/esm/core-geometry.d.ts +1 -0
  160. package/lib/esm/core-geometry.d.ts.map +1 -1
  161. package/lib/esm/core-geometry.js +2 -0
  162. package/lib/esm/core-geometry.js.map +1 -1
  163. package/lib/esm/curve/Arc3d.d.ts +1 -0
  164. package/lib/esm/curve/Arc3d.d.ts.map +1 -1
  165. package/lib/esm/curve/Arc3d.js +1 -0
  166. package/lib/esm/curve/Arc3d.js.map +1 -1
  167. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts +61 -41
  168. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  169. package/lib/esm/curve/CurveChainWithDistanceIndex.js +69 -46
  170. package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
  171. package/lib/esm/curve/CurveCollection.d.ts +36 -26
  172. package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
  173. package/lib/esm/curve/CurveCollection.js +46 -39
  174. package/lib/esm/curve/CurveCollection.js.map +1 -1
  175. package/lib/esm/curve/CurveCurve.d.ts.map +1 -1
  176. package/lib/esm/curve/CurveCurve.js.map +1 -1
  177. package/lib/esm/curve/CurveFactory.d.ts +67 -3
  178. package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
  179. package/lib/esm/curve/CurveFactory.js +74 -6
  180. package/lib/esm/curve/CurveFactory.js.map +1 -1
  181. package/lib/esm/curve/CurveLocationDetail.d.ts +6 -6
  182. package/lib/esm/curve/CurveLocationDetail.d.ts.map +1 -1
  183. package/lib/esm/curve/CurveLocationDetail.js +9 -7
  184. package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
  185. package/lib/esm/curve/CurvePrimitive.d.ts +4 -3
  186. package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -1
  187. package/lib/esm/curve/CurvePrimitive.js +4 -3
  188. package/lib/esm/curve/CurvePrimitive.js.map +1 -1
  189. package/lib/esm/curve/LineSegment3d.d.ts +6 -4
  190. package/lib/esm/curve/LineSegment3d.d.ts.map +1 -1
  191. package/lib/esm/curve/LineSegment3d.js +4 -4
  192. package/lib/esm/curve/LineSegment3d.js.map +1 -1
  193. package/lib/esm/curve/LineString3d.d.ts +1 -1
  194. package/lib/esm/curve/LineString3d.d.ts.map +1 -1
  195. package/lib/esm/curve/LineString3d.js +1 -1
  196. package/lib/esm/curve/LineString3d.js.map +1 -1
  197. package/lib/esm/curve/Loop.d.ts +7 -5
  198. package/lib/esm/curve/Loop.d.ts.map +1 -1
  199. package/lib/esm/curve/Loop.js +18 -6
  200. package/lib/esm/curve/Loop.js.map +1 -1
  201. package/lib/esm/curve/ParityRegion.d.ts +7 -7
  202. package/lib/esm/curve/ParityRegion.d.ts.map +1 -1
  203. package/lib/esm/curve/ParityRegion.js +19 -11
  204. package/lib/esm/curve/ParityRegion.js.map +1 -1
  205. package/lib/esm/curve/Path.d.ts +6 -6
  206. package/lib/esm/curve/Path.d.ts.map +1 -1
  207. package/lib/esm/curve/Path.js +15 -9
  208. package/lib/esm/curve/Path.js.map +1 -1
  209. package/lib/esm/curve/ProxyCurve.d.ts +4 -6
  210. package/lib/esm/curve/ProxyCurve.d.ts.map +1 -1
  211. package/lib/esm/curve/ProxyCurve.js +7 -7
  212. package/lib/esm/curve/ProxyCurve.js.map +1 -1
  213. package/lib/esm/curve/RegionOps.d.ts +69 -47
  214. package/lib/esm/curve/RegionOps.d.ts.map +1 -1
  215. package/lib/esm/curve/RegionOps.js +70 -47
  216. package/lib/esm/curve/RegionOps.js.map +1 -1
  217. package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
  218. package/lib/esm/curve/StrokeOptions.js +6 -2
  219. package/lib/esm/curve/StrokeOptions.js.map +1 -1
  220. package/lib/esm/curve/UnionRegion.d.ts +6 -5
  221. package/lib/esm/curve/UnionRegion.d.ts.map +1 -1
  222. package/lib/esm/curve/UnionRegion.js +17 -8
  223. package/lib/esm/curve/UnionRegion.js.map +1 -1
  224. package/lib/esm/curve/internalContexts/GapSearchContext.d.ts +2 -1
  225. package/lib/esm/curve/internalContexts/GapSearchContext.d.ts.map +1 -1
  226. package/lib/esm/curve/internalContexts/GapSearchContext.js +6 -2
  227. package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
  228. package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts +4 -0
  229. package/lib/esm/curve/internalContexts/MultiChainCollector.d.ts.map +1 -1
  230. package/lib/esm/curve/internalContexts/MultiChainCollector.js +5 -2
  231. package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -1
  232. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts +14 -8
  233. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.d.ts.map +1 -1
  234. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js +14 -8
  235. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  236. package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts +56 -34
  237. package/lib/esm/curve/internalContexts/PolygonOffsetContext.d.ts.map +1 -1
  238. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js +153 -87
  239. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  240. package/lib/esm/curve/internalContexts/SumLengthsContext.d.ts.map +1 -1
  241. package/lib/esm/curve/internalContexts/SumLengthsContext.js +4 -1
  242. package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
  243. package/lib/esm/geometry3d/Angle.d.ts +9 -0
  244. package/lib/esm/geometry3d/Angle.d.ts.map +1 -1
  245. package/lib/esm/geometry3d/Angle.js +13 -0
  246. package/lib/esm/geometry3d/Angle.js.map +1 -1
  247. package/lib/esm/geometry3d/BilinearPatch.d.ts +43 -48
  248. package/lib/esm/geometry3d/BilinearPatch.d.ts.map +1 -1
  249. package/lib/esm/geometry3d/BilinearPatch.js +51 -55
  250. package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
  251. package/lib/esm/geometry3d/Ellipsoid.d.ts +1 -1
  252. package/lib/esm/geometry3d/Ellipsoid.js +1 -1
  253. package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
  254. package/lib/esm/geometry3d/FrameBuilder.d.ts.map +1 -1
  255. package/lib/esm/geometry3d/FrameBuilder.js +13 -11
  256. package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
  257. package/lib/esm/geometry3d/GeometryHandler.d.ts +5 -5
  258. package/lib/esm/geometry3d/GeometryHandler.js.map +1 -1
  259. package/lib/esm/geometry3d/Matrix3d.d.ts +18 -0
  260. package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
  261. package/lib/esm/geometry3d/Matrix3d.js +27 -0
  262. package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
  263. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts +36 -32
  264. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.d.ts.map +1 -1
  265. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js +35 -32
  266. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  267. package/lib/esm/geometry3d/Point3dVector3d.d.ts +8 -0
  268. package/lib/esm/geometry3d/Point3dVector3d.d.ts.map +1 -1
  269. package/lib/esm/geometry3d/Point3dVector3d.js +13 -0
  270. package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
  271. package/lib/esm/geometry3d/PolylineOps.d.ts +16 -1
  272. package/lib/esm/geometry3d/PolylineOps.d.ts.map +1 -1
  273. package/lib/esm/geometry3d/PolylineOps.js +56 -1
  274. package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
  275. package/lib/esm/geometry3d/Range.d.ts +134 -94
  276. package/lib/esm/geometry3d/Range.d.ts.map +1 -1
  277. package/lib/esm/geometry3d/Range.js +297 -145
  278. package/lib/esm/geometry3d/Range.js.map +1 -1
  279. package/lib/esm/geometry3d/Ray3d.d.ts.map +1 -1
  280. package/lib/esm/geometry3d/Ray3d.js.map +1 -1
  281. package/lib/esm/geometry3d/Transform.d.ts +7 -0
  282. package/lib/esm/geometry3d/Transform.d.ts.map +1 -1
  283. package/lib/esm/geometry3d/Transform.js +12 -0
  284. package/lib/esm/geometry3d/Transform.js.map +1 -1
  285. package/lib/esm/polyface/PolyfaceQuery.d.ts +64 -6
  286. package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
  287. package/lib/esm/polyface/PolyfaceQuery.js +103 -19
  288. package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
  289. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts +11 -0
  290. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.d.ts.map +1 -1
  291. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js +78 -1
  292. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  293. package/lib/esm/serialization/GeometrySamples.d.ts +11 -0
  294. package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -1
  295. package/lib/esm/serialization/GeometrySamples.js +30 -0
  296. package/lib/esm/serialization/GeometrySamples.js.map +1 -1
  297. package/lib/esm/solid/LinearSweep.d.ts +2 -1
  298. package/lib/esm/solid/LinearSweep.d.ts.map +1 -1
  299. package/lib/esm/solid/LinearSweep.js.map +1 -1
  300. package/lib/esm/solid/RotationalSweep.d.ts +2 -1
  301. package/lib/esm/solid/RotationalSweep.d.ts.map +1 -1
  302. package/lib/esm/solid/RotationalSweep.js.map +1 -1
  303. package/lib/esm/solid/RuledSweep.d.ts +2 -1
  304. package/lib/esm/solid/RuledSweep.d.ts.map +1 -1
  305. package/lib/esm/solid/RuledSweep.js.map +1 -1
  306. package/lib/esm/solid/SweepContour.d.ts +2 -2
  307. package/lib/esm/solid/SweepContour.d.ts.map +1 -1
  308. package/lib/esm/solid/SweepContour.js +9 -0
  309. package/lib/esm/solid/SweepContour.js.map +1 -1
  310. package/package.json +5 -5
@@ -7,13 +7,14 @@ import { Polyface } from "../polyface/Polyface";
7
7
  import { HalfEdge, HalfEdgeGraph, HalfEdgeMask } from "../topology/Graph";
8
8
  import { MultiLineStringDataVariant } from "../topology/Triangulation";
9
9
  import { AnyCurve, AnyRegion } from "./CurveChain";
10
- import { BagOfCurves, ConsolidateAdjacentCurvePrimitivesOptions, CurveCollection } from "./CurveCollection";
10
+ import { BagOfCurves, ConsolidateAdjacentCurvePrimitivesOptions, CurveChain, CurveCollection } from "./CurveCollection";
11
11
  import { CurvePrimitive } from "./CurvePrimitive";
12
12
  import { JointOptions, OffsetOptions } from "./internalContexts/PolygonOffsetContext";
13
13
  import { Loop, SignedLoops } from "./Loop";
14
14
  import { Path } from "./Path";
15
15
  /**
16
- * Possible return types from [[splitToPathsBetweenBreaks]], [[collectInsideAndOutsideOffsets]] and [[collectChains]].
16
+ * Possible return types from [[splitToPathsBetweenBreaks]], [[collectInsideAndOutsideOffsets]] and
17
+ * [[collectChains]].
17
18
  * @public
18
19
  */
19
20
  export type ChainTypes = CurvePrimitive | Path | BagOfCurves | Loop | undefined;
@@ -44,7 +45,8 @@ export declare enum RegionBinaryOpType {
44
45
  * * `ParityRegion` -- a collection of loops, interpreted by parity rules.
45
46
  * The common "One outer loop and many Inner loops" is a parity region.
46
47
  * * `UnionRegion` -- a collection of `Loop` and `ParityRegion` objects understood as a (probably disjoint) union.
47
- * * Most of the methods in this class ignore z-coordinates, so callers should ensure that input geometry has been rotated parallel to the xy-plane.
48
+ * * **NOTE:** Most of the methods in this class ignore z-coordinates, so callers should ensure that input geometry has
49
+ * been rotated parallel to the xy-plane.
48
50
  * @public
49
51
  */
50
52
  export declare class RegionOps {
@@ -55,7 +57,8 @@ export declare class RegionOps {
55
57
  * @param root any Loop, ParityRegion, or UnionRegion.
56
58
  */
57
59
  static computeXYAreaMoments(root: AnyRegion): MomentData | undefined;
58
- /** Return an area tolerance for a given xy-range and optional distance tolerance.
60
+ /**
61
+ * Return an area tolerance for a given xy-range and optional distance tolerance.
59
62
  * @param range range of planar region to tolerance
60
63
  * @param distanceTolerance optional absolute distance tolerance
61
64
  */
@@ -67,18 +70,20 @@ export declare class RegionOps {
67
70
  * @param root any Loop, ParityRegion, or UnionRegion.
68
71
  */
69
72
  static computeXYArea(root: AnyRegion): number | undefined;
70
- /** Return MomentData with the sums of wire moments.
73
+ /**
74
+ * Return MomentData with the sums of wire moments.
71
75
  * * If `rawMomentData` is the MomentData returned by computeXYAreaMoments, convert to principal axes and moments with
72
76
  * call `principalMomentData = MomentData.inertiaProductsToPrincipalAxes (rawMomentData.origin, rawMomentData.sums);`
73
77
  * @param root any CurveCollection or CurvePrimitive.
74
78
  */
75
79
  static computeXYZWireMomentSums(root: AnyCurve): MomentData | undefined;
76
80
  /**
77
- * * create loops in the graph.
81
+ * Create loops in the graph.
78
82
  * @internal
79
83
  */
80
84
  static addLoopsToGraph(graph: HalfEdgeGraph, data: MultiLineStringDataVariant, announceIsolatedLoop: (graph: HalfEdgeGraph, seed: HalfEdge) => void): void;
81
- /** Add multiple loops to a graph.
85
+ /**
86
+ * Add multiple loops to a graph.
82
87
  * * Apply edgeTag and mask to each edge.
83
88
  * @internal
84
89
  */
@@ -86,7 +91,6 @@ export declare class RegionOps {
86
91
  /**
87
92
  * Given a graph just produced by booleans, convert to a polyface
88
93
  * * "just produced" implies exterior face markup.
89
- *
90
94
  * @param graph
91
95
  * @param triangulate
92
96
  */
@@ -129,7 +133,8 @@ export declare class RegionOps {
129
133
  * @param loopsB second set of loops
130
134
  * @param operation indicates Union, Intersection, Parity, AMinusB, or BMinusA
131
135
  * @param mergeTolerance absolute distance tolerance for merging loops
132
- * @returns a region resulting from merging input loops and the boolean operation. May contain bridge edges added to connect interior loops to exterior loops.
136
+ * @returns a region resulting from merging input loops and the boolean operation. May contain bridge edges added
137
+ * to connect interior loops to exterior loops.
133
138
  */
134
139
  static regionBooleanXY(loopsA: AnyRegion | AnyRegion[] | undefined, loopsB: AnyRegion | AnyRegion[] | undefined, operation: RegionBinaryOpType, mergeTolerance?: number): AnyRegion | undefined;
135
140
  /**
@@ -157,29 +162,30 @@ export declare class RegionOps {
157
162
  * @param inputB second set of loops
158
163
  */
159
164
  static polygonBooleanXYToLoops(inputA: MultiLineStringDataVariant[], operation: RegionBinaryOpType, inputB: MultiLineStringDataVariant[]): AnyRegion | undefined;
160
- /** Construct a wire (not area!!) that is offset from given polyline or polygon.
161
- * * This is a simple wire offset, not an area.
162
- * * The construction algorithm attempts to eliminate some self-intersections within the offsets, but does not guarantee a simple area offset.
163
- * * The construction algorithm is subject to being changed, resulting in different (hopefully better) self-intersection behavior on the future.
165
+ /**
166
+ * Construct a wire that is offset from the given polyline or polygon.
167
+ * * This is a simple wire offset, not an area offset.
168
+ * * Since z-coordinates are ignored, for best results the input points should lie in (a plane parallel to)
169
+ * the xy-plane.
170
+ * * The construction algorithm attempts to eliminate some self-intersections within the offsets, but does not
171
+ * guarantee a simple area offset.
172
+ * * If offsetDistance is given as a number, default OffsetOptions are applied.
173
+ * * See [[JointOptions]] class doc for offset construction rules.
164
174
  * @param points a single loop or path
165
175
  * @param wrap true to include wraparound
166
- * @param offsetDistance distance of offset from wire. Positive is left.
176
+ * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or JointOptions
177
+ * object.
167
178
  */
168
- static constructPolygonWireXYOffset(points: Point3d[], wrap: boolean, offsetDistance: number): CurveCollection | undefined;
179
+ static constructPolygonWireXYOffset(points: Point3d[], wrap: boolean, offsetDistanceOrOptions: number | JointOptions): CurveChain | undefined;
169
180
  /**
170
- * Construct curves that are offset from a Path or Loop as viewed in xy-plane (ignoring z).
171
- * * The construction will remove "some" local effects of features smaller than the offset distance, but will not detect self intersection among widely separated edges.
172
- * * If offsetDistance is given as a number, default OffsetOptions are applied.
173
- * * When the offset needs to do an "outside" turn, the first applicable construction is applied:
174
- * * If the turn is larger than `options.minArcDegrees`, a circular arc is constructed.
175
- * * If the turn is less than or equal to `options.maxChamferTurnDegrees`, extend curves along tangent to single intersection point.
176
- * * If the turn is larger than `options.maxChamferDegrees`, the turn is constructed as a sequence of straight lines that are:
177
- * * outside the arc
178
- * * have uniform turn angle less than `options.maxChamferDegrees`
179
- * * each line segment (except first and last) touches the arc at its midpoint.
180
- * @param curves base curves.
181
- * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
182
- */
181
+ * Construct curves that are offset from a Path or Loop as viewed in xy-plane (ignoring z).
182
+ * * The construction will remove "some" local effects of features smaller than the offset distance, but will
183
+ * not detect self intersection among widely separated edges.
184
+ * * If offsetDistance is given as a number, default OffsetOptions are applied.
185
+ * * See [[JointOptions]] class doc for offset construction rules.
186
+ * @param curves base curves.
187
+ * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
188
+ */
183
189
  static constructCurveXYOffset(curves: Path | Loop, offsetDistanceOrOptions: number | JointOptions | OffsetOptions): CurveCollection | undefined;
184
190
  /**
185
191
  * Test if point (x,y) is IN, OUT or ON a region.
@@ -189,7 +195,8 @@ export declare class RegionOps {
189
195
  * @param y y coordinate of point to test
190
196
  */
191
197
  static testPointInOnOutRegionXY(curves: AnyRegion, x: number, y: number): number;
192
- /** Create curve collection of subtype determined by gaps between the input curves.
198
+ /**
199
+ * Create curve collection of subtype determined by gaps between the input curves.
193
200
  * * If (a) wrap is requested and (b) all curves connect head-to-tail (including wraparound), assemble as a `loop`.
194
201
  * * If all curves connect head-to-tail except for closure, return a `Path`.
195
202
  * * If there are internal gaps, return a `BagOfCurves`
@@ -217,7 +224,8 @@ export declare class RegionOps {
217
224
  static cloneCurvesWithXYSplits(curvesToCut: AnyCurve | undefined, cutterCurves: CurveCollection): AnyCurve | undefined;
218
225
  /**
219
226
  * Create paths assembled from many curves.
220
- * * Assemble paths from consecutive curves NOT separated by either gaps or the split markup set by [[cloneCurvesWithXYSplits]].
227
+ * * Assemble paths from consecutive curves NOT separated by either gaps or the split markup set by
228
+ * [[cloneCurvesWithXYSplits]].
221
229
  * * Return simplest form -- single primitive, single path, or bag of curves.
222
230
  */
223
231
  static splitToPathsBetweenBreaks(source: AnyCurve | undefined, makeClones: boolean): ChainTypes;
@@ -242,7 +250,8 @@ export declare class RegionOps {
242
250
  */
243
251
  static collectChains(fragments: AnyCurve[], gapTolerance?: number): ChainTypes;
244
252
  /**
245
- * Find all intersections among curves in `curvesToCut` against the boundaries of `region` and return fragments of `curvesToCut`.
253
+ * Find all intersections among curves in `curvesToCut` against the boundaries of `region` and return fragments
254
+ * of `curvesToCut`.
246
255
  * * Break `curvesToCut` into parts inside, outside, and coincident.
247
256
  * @returns output object with all fragments split among `insideParts`, `outsideParts`, and `coincidentParts`
248
257
  */
@@ -251,7 +260,8 @@ export declare class RegionOps {
251
260
  outsideParts: AnyCurve[];
252
261
  coincidentParts: AnyCurve[];
253
262
  };
254
- /** If `data` is one of several forms of a rectangle, return its edge Transform.
263
+ /**
264
+ * If `data` is one of several forms of a rectangle, return its edge Transform.
255
265
  * * Points are considered a rectangle if, within the first 4 points:
256
266
  * * vectors from 0 to 1 and 0 to 3 are perpendicular and have a non-zero cross product
257
267
  * * vectors from 0 to 3 and 1 to 2 are the same
@@ -262,7 +272,8 @@ export declare class RegionOps {
262
272
  * * Array of Point3d[]
263
273
  * * IndexedXYZCollection
264
274
  * @param requireClosurePoint whether to require a 5th point equal to the 1st point.
265
- * @returns Transform with origin at one corner, x and y columns extending along two adjacent sides, and unit normal in z column. If not a rectangle, return undefined.
275
+ * @returns Transform with origin at one corner, x and y columns extending along two adjacent sides, and unit
276
+ * normal in z column. If not a rectangle, return undefined.
266
277
  */
267
278
  static rectangleEdgeTransform(data: AnyCurve | Point3d[] | IndexedXYZCollection, requireClosurePoint?: boolean): Transform | undefined;
268
279
  /**
@@ -270,9 +281,10 @@ export declare class RegionOps {
270
281
  * * Contiguous `LineSegment3d` and `LineString3d` objects.
271
282
  * * collect all points
272
283
  * * eliminate duplicated points
273
- * * eliminate points colinear with surrounding points.
274
- * * Contiguous concentric circular or elliptic arcs
284
+ * * eliminate points colinear with surrounding points
285
+ * * contiguous concentric circular or elliptic arcs
275
286
  * * combine angular ranges
287
+ * * This function can be used to compress adjacent LineSegment3ds into a LineString3d
276
288
  * @param curves Path or loop (or larger collection containing paths and loops) to be simplified
277
289
  * @param options options for tolerance and selective simplification.
278
290
  */
@@ -283,24 +295,31 @@ export declare class RegionOps {
283
295
  * @returns a region that captures the input pointers. This region is a:
284
296
  * * `Loop` if there is exactly one input loop. It is oriented counterclockwise.
285
297
  * * `ParityRegion` if input consists of exactly one outer loop with at least one hole loop.
286
- * Its first child is an outer loop oriented counterclockwise; all subsequent children are holes oriented clockwise.
287
- * * `UnionRegion` if any other input configuration. Its children are individually ordered/oriented as in the above cases.
298
+ * Its first child is an outer loop oriented counterclockwise; all subsequent children are holes oriented
299
+ * clockwise.
300
+ * * `UnionRegion` if any other input configuration. Its children are individually ordered/oriented as in
301
+ * the above cases.
288
302
  * @see [[PolygonOps.sortOuterAndHoleLoopsXY]]
289
303
  */
290
304
  static sortOuterAndHoleLoopsXY(loops: Array<Loop | IndexedXYZCollection>): AnyRegion;
291
305
  /**
292
306
  * Find all areas bounded by the unstructured, possibly intersecting curves.
293
- * * A common use case of this method is to assemble the bounding "exterior" loop (or loops) containing the input curves.
294
- * * This method does not add bridge edges to connect outer loops to inner loops. Each disconnected loop, regardless
295
- * of its containment, is returned as its own SignedLoops object. Pre-process with [[regionBooleanXY]] to add bridge edges so that
296
- * [[constructAllXYRegionLoops]] will return outer and inner loops in the same SignedLoops object.
297
- * @param curvesAndRegions Any collection of curves. Each Loop/ParityRegion/UnionRegion contributes its curve primitives.
307
+ * * A common use case of this method is to assemble the bounding "exterior" loop (or loops) containing the
308
+ * input curves.
309
+ * * This method does not add bridge edges to connect outer loops to inner loops. Each disconnected loop,
310
+ * regardless of its containment, is returned as its own SignedLoops object. Pre-process with [[regionBooleanXY]]
311
+ * to add bridge edges so that [[constructAllXYRegionLoops]] will return outer and inner loops in the same
312
+ * SignedLoops object.
313
+ * @param curvesAndRegions Any collection of curves. Each Loop/ParityRegion/UnionRegion contributes its curve
314
+ * primitives.
298
315
  * @param tolerance optional distance tolerance for coincidence
299
316
  * @returns array of [[SignedLoops]], each entry of which describes the faces in a single connected component:
300
- * * `positiveAreaLoops` contains "interior" loops, _including holes in ParityRegion input_. These loops have positive area and counterclockwise orientation.
317
+ * * `positiveAreaLoops` contains "interior" loops, _including holes in ParityRegion input_. These loops have
318
+ * positive area and counterclockwise orientation.
301
319
  * * `negativeAreaLoops` contains (probably just one) "exterior" loop which is ordered clockwise.
302
320
  * * `slivers` contains sliver loops that have zero area, such as appear between coincident curves.
303
- * * `edges` contains a [[LoopCurveLoopCurve]] object for each component edge, collecting both loops adjacent to the edge and a constituent curve in each.
321
+ * * `edges` contains a [[LoopCurveLoopCurve]] object for each component edge, collecting both loops adjacent
322
+ * to the edge and a constituent curve in each.
304
323
  */
305
324
  static constructAllXYRegionLoops(curvesAndRegions: AnyCurve | AnyCurve[], tolerance?: number): SignedLoops[];
306
325
  /**
@@ -309,12 +328,15 @@ export declare class RegionOps {
309
328
  * * Optionally recurses into hidden primitives if `smallestPossiblePrimitives` is true.
310
329
  * @param candidates input curves
311
330
  * @param collectorArray optional pre-defined output array. If defined, it is NOT cleared: primitives are appended.
312
- * @param smallestPossiblePrimitives if true, recurse into the children of a [[CurveChainWithDistanceIndex]]. If false, push the [[CurveChainWithDistanceIndex]] instead.
313
- * @param explodeLinestrings if true, push a [[LineSegment3d]] for each segment of a [[LineString3d]]. If false, push the [[LineString3d]] instead.
331
+ * @param smallestPossiblePrimitives if true, recurse into the children of a [[CurveChainWithDistanceIndex]]. If
332
+ * false, push the [[CurveChainWithDistanceIndex]] instead.
333
+ * @param explodeLinestrings if true, push a [[LineSegment3d]] for each segment of a [[LineString3d]]. If false,
334
+ * push the [[LineString3d]] instead.
314
335
  */
315
336
  static collectCurvePrimitives(candidates: AnyCurve | AnyCurve[], collectorArray?: CurvePrimitive[], smallestPossiblePrimitives?: boolean, explodeLinestrings?: boolean): CurvePrimitive[];
316
337
  /**
317
- * Copy primitive pointers from candidates to result array, replacing each [[LineString3d]] by newly constructed instances of [[LineSegment3d]].
338
+ * Copy primitive pointers from candidates to result array, replacing each [[LineString3d]] by newly constructed
339
+ * instances of [[LineSegment3d]].
318
340
  * @param candidates input curves
319
341
  * @return copied (captured) inputs except for the linestrings, which are exploded
320
342
  */
@@ -1 +1 @@
1
- {"version":3,"file":"RegionOps.d.ts","sourceRoot":"","sources":["../../../src/curve/RegionOps.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAyB,0BAA0B,EAAgB,MAAM,2BAA2B,CAAC;AAE5G,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,yCAAyC,EAAc,eAAe,EA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C,UAAU,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;IAe/E;;;;OAIG;WACW,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,SAAS,GAAG,OAAO;CAkB5E"}
@@ -57,7 +57,8 @@ export var RegionBinaryOpType;
57
57
  * * `ParityRegion` -- a collection of loops, interpreted by parity rules.
58
58
  * The common "One outer loop and many Inner loops" is a parity region.
59
59
  * * `UnionRegion` -- a collection of `Loop` and `ParityRegion` objects understood as a (probably disjoint) union.
60
- * * Most of the methods in this class ignore z-coordinates, so callers should ensure that input geometry has been rotated parallel to the xy-plane.
60
+ * * **NOTE:** Most of the methods in this class ignore z-coordinates, so callers should ensure that input geometry has
61
+ * been rotated parallel to the xy-plane.
61
62
  * @public
62
63
  */
63
64
  export class RegionOps {
@@ -76,7 +77,8 @@ export class RegionOps {
76
77
  }
77
78
  return undefined;
78
79
  }
79
- /** Return an area tolerance for a given xy-range and optional distance tolerance.
80
+ /**
81
+ * Return an area tolerance for a given xy-range and optional distance tolerance.
80
82
  * @param range range of planar region to tolerance
81
83
  * @param distanceTolerance optional absolute distance tolerance
82
84
  */
@@ -99,7 +101,8 @@ export class RegionOps {
99
101
  }
100
102
  return undefined;
101
103
  }
102
- /** Return MomentData with the sums of wire moments.
104
+ /**
105
+ * Return MomentData with the sums of wire moments.
103
106
  * * If `rawMomentData` is the MomentData returned by computeXYAreaMoments, convert to principal axes and moments with
104
107
  * call `principalMomentData = MomentData.inertiaProductsToPrincipalAxes (rawMomentData.origin, rawMomentData.sums);`
105
108
  * @param root any CurveCollection or CurvePrimitive.
@@ -112,7 +115,7 @@ export class RegionOps {
112
115
  return result;
113
116
  }
114
117
  /**
115
- * * create loops in the graph.
118
+ * Create loops in the graph.
116
119
  * @internal
117
120
  */
118
121
  static addLoopsToGraph(graph, data, announceIsolatedLoop) {
@@ -156,7 +159,8 @@ export class RegionOps {
156
159
  }
157
160
  }
158
161
  }
159
- /** Add multiple loops to a graph.
162
+ /**
163
+ * Add multiple loops to a graph.
160
164
  * * Apply edgeTag and mask to each edge.
161
165
  * @internal
162
166
  */
@@ -175,7 +179,6 @@ export class RegionOps {
175
179
  /**
176
180
  * Given a graph just produced by booleans, convert to a polyface
177
181
  * * "just produced" implies exterior face markup.
178
- *
179
182
  * @param graph
180
183
  * @param triangulate
181
184
  */
@@ -236,7 +239,8 @@ export class RegionOps {
236
239
  * @param loopsB second set of loops
237
240
  * @param operation indicates Union, Intersection, Parity, AMinusB, or BMinusA
238
241
  * @param mergeTolerance absolute distance tolerance for merging loops
239
- * @returns a region resulting from merging input loops and the boolean operation. May contain bridge edges added to connect interior loops to exterior loops.
242
+ * @returns a region resulting from merging input loops and the boolean operation. May contain bridge edges added
243
+ * to connect interior loops to exterior loops.
240
244
  */
241
245
  static regionBooleanXY(loopsA, loopsB, operation, mergeTolerance = Geometry.smallMetricDistance) {
242
246
  const result = UnionRegion.create();
@@ -303,32 +307,33 @@ export class RegionOps {
303
307
  }
304
308
  return RegionOps.sortOuterAndHoleLoopsXY(allLoops);
305
309
  }
306
- /** Construct a wire (not area!!) that is offset from given polyline or polygon.
307
- * * This is a simple wire offset, not an area.
308
- * * The construction algorithm attempts to eliminate some self-intersections within the offsets, but does not guarantee a simple area offset.
309
- * * The construction algorithm is subject to being changed, resulting in different (hopefully better) self-intersection behavior on the future.
310
+ /**
311
+ * Construct a wire that is offset from the given polyline or polygon.
312
+ * * This is a simple wire offset, not an area offset.
313
+ * * Since z-coordinates are ignored, for best results the input points should lie in (a plane parallel to)
314
+ * the xy-plane.
315
+ * * The construction algorithm attempts to eliminate some self-intersections within the offsets, but does not
316
+ * guarantee a simple area offset.
317
+ * * If offsetDistance is given as a number, default OffsetOptions are applied.
318
+ * * See [[JointOptions]] class doc for offset construction rules.
310
319
  * @param points a single loop or path
311
320
  * @param wrap true to include wraparound
312
- * @param offsetDistance distance of offset from wire. Positive is left.
321
+ * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or JointOptions
322
+ * object.
313
323
  */
314
- static constructPolygonWireXYOffset(points, wrap, offsetDistance) {
324
+ static constructPolygonWireXYOffset(points, wrap, offsetDistanceOrOptions) {
315
325
  const context = new PolygonWireOffsetContext();
316
- return context.constructPolygonWireXYOffset(points, wrap, offsetDistance);
326
+ return context.constructPolygonWireXYOffset(points, wrap, offsetDistanceOrOptions);
317
327
  }
318
328
  /**
319
- * Construct curves that are offset from a Path or Loop as viewed in xy-plane (ignoring z).
320
- * * The construction will remove "some" local effects of features smaller than the offset distance, but will not detect self intersection among widely separated edges.
321
- * * If offsetDistance is given as a number, default OffsetOptions are applied.
322
- * * When the offset needs to do an "outside" turn, the first applicable construction is applied:
323
- * * If the turn is larger than `options.minArcDegrees`, a circular arc is constructed.
324
- * * If the turn is less than or equal to `options.maxChamferTurnDegrees`, extend curves along tangent to single intersection point.
325
- * * If the turn is larger than `options.maxChamferDegrees`, the turn is constructed as a sequence of straight lines that are:
326
- * * outside the arc
327
- * * have uniform turn angle less than `options.maxChamferDegrees`
328
- * * each line segment (except first and last) touches the arc at its midpoint.
329
- * @param curves base curves.
330
- * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
331
- */
329
+ * Construct curves that are offset from a Path or Loop as viewed in xy-plane (ignoring z).
330
+ * * The construction will remove "some" local effects of features smaller than the offset distance, but will
331
+ * not detect self intersection among widely separated edges.
332
+ * * If offsetDistance is given as a number, default OffsetOptions are applied.
333
+ * * See [[JointOptions]] class doc for offset construction rules.
334
+ * @param curves base curves.
335
+ * @param offsetDistanceOrOptions offset distance (positive to left of curve, negative to right) or options object.
336
+ */
332
337
  static constructCurveXYOffset(curves, offsetDistanceOrOptions) {
333
338
  return CurveChainWireOffsetContext.constructCurveXYOffset(curves, offsetDistanceOrOptions);
334
339
  }
@@ -342,7 +347,8 @@ export class RegionOps {
342
347
  static testPointInOnOutRegionXY(curves, x, y) {
343
348
  return PointInOnOutContext.testPointInOnOutRegionXY(curves, x, y);
344
349
  }
345
- /** Create curve collection of subtype determined by gaps between the input curves.
350
+ /**
351
+ * Create curve collection of subtype determined by gaps between the input curves.
346
352
  * * If (a) wrap is requested and (b) all curves connect head-to-tail (including wraparound), assemble as a `loop`.
347
353
  * * If all curves connect head-to-tail except for closure, return a `Path`.
348
354
  * * If there are internal gaps, return a `BagOfCurves`
@@ -379,7 +385,9 @@ export class RegionOps {
379
385
  * Announce Checkpoint function for use during booleans
380
386
  * @internal
381
387
  */
382
- static setCheckPointFunction(f) { this._graphCheckPointFunction = f; }
388
+ static setCheckPointFunction(f) {
389
+ this._graphCheckPointFunction = f;
390
+ }
383
391
  /**
384
392
  * Find all intersections among curves in `curvesToCut` and `cutterCurves` and return fragments of `curvesToCut`.
385
393
  * * For a `Loop`, `ParityRegion`, or `UnionRegion` in `curvesToCut`:
@@ -394,7 +402,8 @@ export class RegionOps {
394
402
  }
395
403
  /**
396
404
  * Create paths assembled from many curves.
397
- * * Assemble paths from consecutive curves NOT separated by either gaps or the split markup set by [[cloneCurvesWithXYSplits]].
405
+ * * Assemble paths from consecutive curves NOT separated by either gaps or the split markup set by
406
+ * [[cloneCurvesWithXYSplits]].
398
407
  * * Return simplest form -- single primitive, single path, or bag of curves.
399
408
  */
400
409
  static splitToPathsBetweenBreaks(source, makeClones) {
@@ -431,7 +440,8 @@ export class RegionOps {
431
440
  return OffsetHelpers.collectChains(fragments, gapTolerance);
432
441
  }
433
442
  /**
434
- * Find all intersections among curves in `curvesToCut` against the boundaries of `region` and return fragments of `curvesToCut`.
443
+ * Find all intersections among curves in `curvesToCut` against the boundaries of `region` and return fragments
444
+ * of `curvesToCut`.
435
445
  * * Break `curvesToCut` into parts inside, outside, and coincident.
436
446
  * @returns output object with all fragments split among `insideParts`, `outsideParts`, and `coincidentParts`
437
447
  */
@@ -457,7 +467,8 @@ export class RegionOps {
457
467
  }
458
468
  return result;
459
469
  }
460
- /** If `data` is one of several forms of a rectangle, return its edge Transform.
470
+ /**
471
+ * If `data` is one of several forms of a rectangle, return its edge Transform.
461
472
  * * Points are considered a rectangle if, within the first 4 points:
462
473
  * * vectors from 0 to 1 and 0 to 3 are perpendicular and have a non-zero cross product
463
474
  * * vectors from 0 to 3 and 1 to 2 are the same
@@ -468,7 +479,8 @@ export class RegionOps {
468
479
  * * Array of Point3d[]
469
480
  * * IndexedXYZCollection
470
481
  * @param requireClosurePoint whether to require a 5th point equal to the 1st point.
471
- * @returns Transform with origin at one corner, x and y columns extending along two adjacent sides, and unit normal in z column. If not a rectangle, return undefined.
482
+ * @returns Transform with origin at one corner, x and y columns extending along two adjacent sides, and unit
483
+ * normal in z column. If not a rectangle, return undefined.
472
484
  */
473
485
  static rectangleEdgeTransform(data, requireClosurePoint = true) {
474
486
  if (data instanceof LineString3d) {
@@ -528,9 +540,10 @@ export class RegionOps {
528
540
  * * Contiguous `LineSegment3d` and `LineString3d` objects.
529
541
  * * collect all points
530
542
  * * eliminate duplicated points
531
- * * eliminate points colinear with surrounding points.
532
- * * Contiguous concentric circular or elliptic arcs
543
+ * * eliminate points colinear with surrounding points
544
+ * * contiguous concentric circular or elliptic arcs
533
545
  * * combine angular ranges
546
+ * * This function can be used to compress adjacent LineSegment3ds into a LineString3d
534
547
  * @param curves Path or loop (or larger collection containing paths and loops) to be simplified
535
548
  * @param options options for tolerance and selective simplification.
536
549
  */
@@ -544,8 +557,10 @@ export class RegionOps {
544
557
  * @returns a region that captures the input pointers. This region is a:
545
558
  * * `Loop` if there is exactly one input loop. It is oriented counterclockwise.
546
559
  * * `ParityRegion` if input consists of exactly one outer loop with at least one hole loop.
547
- * Its first child is an outer loop oriented counterclockwise; all subsequent children are holes oriented clockwise.
548
- * * `UnionRegion` if any other input configuration. Its children are individually ordered/oriented as in the above cases.
560
+ * Its first child is an outer loop oriented counterclockwise; all subsequent children are holes oriented
561
+ * clockwise.
562
+ * * `UnionRegion` if any other input configuration. Its children are individually ordered/oriented as in
563
+ * the above cases.
549
564
  * @see [[PolygonOps.sortOuterAndHoleLoopsXY]]
550
565
  */
551
566
  static sortOuterAndHoleLoopsXY(loops) {
@@ -562,17 +577,22 @@ export class RegionOps {
562
577
  }
563
578
  /**
564
579
  * Find all areas bounded by the unstructured, possibly intersecting curves.
565
- * * A common use case of this method is to assemble the bounding "exterior" loop (or loops) containing the input curves.
566
- * * This method does not add bridge edges to connect outer loops to inner loops. Each disconnected loop, regardless
567
- * of its containment, is returned as its own SignedLoops object. Pre-process with [[regionBooleanXY]] to add bridge edges so that
568
- * [[constructAllXYRegionLoops]] will return outer and inner loops in the same SignedLoops object.
569
- * @param curvesAndRegions Any collection of curves. Each Loop/ParityRegion/UnionRegion contributes its curve primitives.
580
+ * * A common use case of this method is to assemble the bounding "exterior" loop (or loops) containing the
581
+ * input curves.
582
+ * * This method does not add bridge edges to connect outer loops to inner loops. Each disconnected loop,
583
+ * regardless of its containment, is returned as its own SignedLoops object. Pre-process with [[regionBooleanXY]]
584
+ * to add bridge edges so that [[constructAllXYRegionLoops]] will return outer and inner loops in the same
585
+ * SignedLoops object.
586
+ * @param curvesAndRegions Any collection of curves. Each Loop/ParityRegion/UnionRegion contributes its curve
587
+ * primitives.
570
588
  * @param tolerance optional distance tolerance for coincidence
571
589
  * @returns array of [[SignedLoops]], each entry of which describes the faces in a single connected component:
572
- * * `positiveAreaLoops` contains "interior" loops, _including holes in ParityRegion input_. These loops have positive area and counterclockwise orientation.
590
+ * * `positiveAreaLoops` contains "interior" loops, _including holes in ParityRegion input_. These loops have
591
+ * positive area and counterclockwise orientation.
573
592
  * * `negativeAreaLoops` contains (probably just one) "exterior" loop which is ordered clockwise.
574
593
  * * `slivers` contains sliver loops that have zero area, such as appear between coincident curves.
575
- * * `edges` contains a [[LoopCurveLoopCurve]] object for each component edge, collecting both loops adjacent to the edge and a constituent curve in each.
594
+ * * `edges` contains a [[LoopCurveLoopCurve]] object for each component edge, collecting both loops adjacent
595
+ * to the edge and a constituent curve in each.
576
596
  */
577
597
  static constructAllXYRegionLoops(curvesAndRegions, tolerance = Geometry.smallMetricDistance) {
578
598
  const primitives = RegionOps.collectCurvePrimitives(curvesAndRegions, undefined, true, true);
@@ -588,8 +608,10 @@ export class RegionOps {
588
608
  * * Optionally recurses into hidden primitives if `smallestPossiblePrimitives` is true.
589
609
  * @param candidates input curves
590
610
  * @param collectorArray optional pre-defined output array. If defined, it is NOT cleared: primitives are appended.
591
- * @param smallestPossiblePrimitives if true, recurse into the children of a [[CurveChainWithDistanceIndex]]. If false, push the [[CurveChainWithDistanceIndex]] instead.
592
- * @param explodeLinestrings if true, push a [[LineSegment3d]] for each segment of a [[LineString3d]]. If false, push the [[LineString3d]] instead.
611
+ * @param smallestPossiblePrimitives if true, recurse into the children of a [[CurveChainWithDistanceIndex]]. If
612
+ * false, push the [[CurveChainWithDistanceIndex]] instead.
613
+ * @param explodeLinestrings if true, push a [[LineSegment3d]] for each segment of a [[LineString3d]]. If false,
614
+ * push the [[LineString3d]] instead.
593
615
  */
594
616
  static collectCurvePrimitives(candidates, collectorArray, smallestPossiblePrimitives = false, explodeLinestrings = false) {
595
617
  const results = collectorArray === undefined ? [] : collectorArray;
@@ -607,7 +629,8 @@ export class RegionOps {
607
629
  return results;
608
630
  }
609
631
  /**
610
- * Copy primitive pointers from candidates to result array, replacing each [[LineString3d]] by newly constructed instances of [[LineSegment3d]].
632
+ * Copy primitive pointers from candidates to result array, replacing each [[LineString3d]] by newly constructed
633
+ * instances of [[LineSegment3d]].
611
634
  * @param candidates input curves
612
635
  * @return copied (captured) inputs except for the linestrings, which are exploded
613
636
  */