@itwin/core-geometry 5.0.0-dev.8 → 5.0.0-dev.83

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 (966) hide show
  1. package/CHANGELOG.md +46 -1
  2. package/lib/cjs/Constant.js +17 -17
  3. package/lib/cjs/Constant.js.map +1 -1
  4. package/lib/cjs/Geometry.d.ts +2 -4
  5. package/lib/cjs/Geometry.d.ts.map +1 -1
  6. package/lib/cjs/Geometry.js +37 -39
  7. package/lib/cjs/Geometry.js.map +1 -1
  8. package/lib/cjs/bspline/AkimaCurve3d.js +3 -1
  9. package/lib/cjs/bspline/AkimaCurve3d.js.map +1 -1
  10. package/lib/cjs/bspline/BSpline1dNd.d.ts +90 -54
  11. package/lib/cjs/bspline/BSpline1dNd.d.ts.map +1 -1
  12. package/lib/cjs/bspline/BSpline1dNd.js +137 -84
  13. package/lib/cjs/bspline/BSpline1dNd.js.map +1 -1
  14. package/lib/cjs/bspline/BSplineCurve.d.ts +193 -155
  15. package/lib/cjs/bspline/BSplineCurve.d.ts.map +1 -1
  16. package/lib/cjs/bspline/BSplineCurve.js +249 -181
  17. package/lib/cjs/bspline/BSplineCurve.js.map +1 -1
  18. package/lib/cjs/bspline/BSplineCurve3dH.js +1 -0
  19. package/lib/cjs/bspline/BSplineCurve3dH.js.map +1 -1
  20. package/lib/cjs/bspline/BSplineCurveOps.d.ts.map +1 -1
  21. package/lib/cjs/bspline/BSplineCurveOps.js +18 -21
  22. package/lib/cjs/bspline/BSplineCurveOps.js.map +1 -1
  23. package/lib/cjs/bspline/BSplineSurface.js +22 -2
  24. package/lib/cjs/bspline/BSplineSurface.js.map +1 -1
  25. package/lib/cjs/bspline/Bezier1dNd.js +6 -0
  26. package/lib/cjs/bspline/Bezier1dNd.js.map +1 -1
  27. package/lib/cjs/bspline/BezierCurve3d.d.ts +3 -1
  28. package/lib/cjs/bspline/BezierCurve3d.d.ts.map +1 -1
  29. package/lib/cjs/bspline/BezierCurve3d.js +5 -5
  30. package/lib/cjs/bspline/BezierCurve3d.js.map +1 -1
  31. package/lib/cjs/bspline/BezierCurve3dH.js +2 -0
  32. package/lib/cjs/bspline/BezierCurve3dH.js.map +1 -1
  33. package/lib/cjs/bspline/BezierCurveBase.d.ts.map +1 -1
  34. package/lib/cjs/bspline/BezierCurveBase.js +21 -2
  35. package/lib/cjs/bspline/BezierCurveBase.js.map +1 -1
  36. package/lib/cjs/bspline/InterpolationCurve3d.js +12 -1
  37. package/lib/cjs/bspline/InterpolationCurve3d.js.map +1 -1
  38. package/lib/cjs/bspline/KnotVector.d.ts +82 -60
  39. package/lib/cjs/bspline/KnotVector.d.ts.map +1 -1
  40. package/lib/cjs/bspline/KnotVector.js +144 -84
  41. package/lib/cjs/bspline/KnotVector.js.map +1 -1
  42. package/lib/cjs/bspline/SurfaceLocationDetail.js +12 -0
  43. package/lib/cjs/bspline/SurfaceLocationDetail.js.map +1 -1
  44. package/lib/cjs/clipping/AlternatingConvexClipTree.js +14 -13
  45. package/lib/cjs/clipping/AlternatingConvexClipTree.js.map +1 -1
  46. package/lib/cjs/clipping/BooleanClipNode.js +4 -0
  47. package/lib/cjs/clipping/BooleanClipNode.js.map +1 -1
  48. package/lib/cjs/clipping/ClipPlane.js +10 -1
  49. package/lib/cjs/clipping/ClipPlane.js.map +1 -1
  50. package/lib/cjs/clipping/ClipPrimitive.js +19 -0
  51. package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
  52. package/lib/cjs/clipping/ClipUtils.js +5 -1
  53. package/lib/cjs/clipping/ClipUtils.js.map +1 -1
  54. package/lib/cjs/clipping/ClipVector.js +11 -8
  55. package/lib/cjs/clipping/ClipVector.js.map +1 -1
  56. package/lib/cjs/clipping/ConvexClipPlaneSet.js +5 -3
  57. package/lib/cjs/clipping/ConvexClipPlaneSet.js.map +1 -1
  58. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js +2 -1
  59. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  60. package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js +3 -0
  61. package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
  62. package/lib/cjs/core-geometry.d.ts +1 -0
  63. package/lib/cjs/core-geometry.d.ts.map +1 -1
  64. package/lib/cjs/core-geometry.js +1 -0
  65. package/lib/cjs/core-geometry.js.map +1 -1
  66. package/lib/cjs/curve/Arc3d.d.ts +17 -3
  67. package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
  68. package/lib/cjs/curve/Arc3d.js +50 -21
  69. package/lib/cjs/curve/Arc3d.js.map +1 -1
  70. package/lib/cjs/curve/ConstructCurveBetweenCurves.js +3 -0
  71. package/lib/cjs/curve/ConstructCurveBetweenCurves.js.map +1 -1
  72. package/lib/cjs/curve/CoordinateXYZ.js +3 -2
  73. package/lib/cjs/curve/CoordinateXYZ.js.map +1 -1
  74. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts +0 -2
  75. package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  76. package/lib/cjs/curve/CurveChainWithDistanceIndex.js +25 -10
  77. package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
  78. package/lib/cjs/curve/CurveCollection.d.ts +10 -0
  79. package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
  80. package/lib/cjs/curve/CurveCollection.js +35 -9
  81. package/lib/cjs/curve/CurveCollection.js.map +1 -1
  82. package/lib/cjs/curve/CurveFactory.d.ts +87 -53
  83. package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
  84. package/lib/cjs/curve/CurveFactory.js +213 -135
  85. package/lib/cjs/curve/CurveFactory.js.map +1 -1
  86. package/lib/cjs/curve/CurveLocationDetail.js +44 -0
  87. package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
  88. package/lib/cjs/curve/CurvePrimitive.d.ts +7 -10
  89. package/lib/cjs/curve/CurvePrimitive.d.ts.map +1 -1
  90. package/lib/cjs/curve/CurvePrimitive.js +27 -12
  91. package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
  92. package/lib/cjs/curve/CurveProcessor.js +2 -0
  93. package/lib/cjs/curve/CurveProcessor.js.map +1 -1
  94. package/lib/cjs/curve/CurveWireMomentsXYZ.js +2 -0
  95. package/lib/cjs/curve/CurveWireMomentsXYZ.js.map +1 -1
  96. package/lib/cjs/curve/LineSegment3d.js +6 -2
  97. package/lib/cjs/curve/LineSegment3d.js.map +1 -1
  98. package/lib/cjs/curve/LineString3d.js +27 -7
  99. package/lib/cjs/curve/LineString3d.js.map +1 -1
  100. package/lib/cjs/curve/Loop.js +12 -4
  101. package/lib/cjs/curve/Loop.js.map +1 -1
  102. package/lib/cjs/curve/OffsetOptions.js +25 -21
  103. package/lib/cjs/curve/OffsetOptions.js.map +1 -1
  104. package/lib/cjs/curve/ParityRegion.js +4 -2
  105. package/lib/cjs/curve/ParityRegion.js.map +1 -1
  106. package/lib/cjs/curve/Path.js +2 -2
  107. package/lib/cjs/curve/Path.js.map +1 -1
  108. package/lib/cjs/curve/PointString3d.js +3 -2
  109. package/lib/cjs/curve/PointString3d.js.map +1 -1
  110. package/lib/cjs/curve/ProxyCurve.js +1 -0
  111. package/lib/cjs/curve/ProxyCurve.js.map +1 -1
  112. package/lib/cjs/curve/Query/ConsolidateAdjacentPrimitivesContext.js +1 -0
  113. package/lib/cjs/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
  114. package/lib/cjs/curve/Query/CurveSplitContext.js +3 -0
  115. package/lib/cjs/curve/Query/CurveSplitContext.js.map +1 -1
  116. package/lib/cjs/curve/Query/CylindricalRange.js +6 -2
  117. package/lib/cjs/curve/Query/CylindricalRange.js.map +1 -1
  118. package/lib/cjs/curve/Query/PlanarSubdivision.js +4 -6
  119. package/lib/cjs/curve/Query/PlanarSubdivision.js.map +1 -1
  120. package/lib/cjs/curve/Query/StrokeCountChain.js +12 -0
  121. package/lib/cjs/curve/Query/StrokeCountChain.js.map +1 -1
  122. package/lib/cjs/curve/Query/StrokeCountMap.js +14 -0
  123. package/lib/cjs/curve/Query/StrokeCountMap.js.map +1 -1
  124. package/lib/cjs/curve/RegionMomentsXY.js +4 -5
  125. package/lib/cjs/curve/RegionMomentsXY.js.map +1 -1
  126. package/lib/cjs/curve/RegionOps.js +9 -10
  127. package/lib/cjs/curve/RegionOps.js.map +1 -1
  128. package/lib/cjs/curve/RegionOpsClassificationSweeps.js +24 -1
  129. package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -1
  130. package/lib/cjs/curve/StrokeOptions.d.ts +4 -4
  131. package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
  132. package/lib/cjs/curve/StrokeOptions.js +23 -6
  133. package/lib/cjs/curve/StrokeOptions.js.map +1 -1
  134. package/lib/cjs/curve/UnionRegion.js +4 -2
  135. package/lib/cjs/curve/UnionRegion.js.map +1 -1
  136. package/lib/cjs/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js +13 -7
  137. package/lib/cjs/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
  138. package/lib/cjs/curve/internalContexts/ChainCollectorContext.js +6 -0
  139. package/lib/cjs/curve/internalContexts/ChainCollectorContext.js.map +1 -1
  140. package/lib/cjs/curve/internalContexts/CloneCurvesContext.js +2 -0
  141. package/lib/cjs/curve/internalContexts/CloneCurvesContext.js.map +1 -1
  142. package/lib/cjs/curve/internalContexts/ClosestPointStrokeHandler.js +13 -5
  143. package/lib/cjs/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
  144. package/lib/cjs/curve/internalContexts/CountLinearPartsSearchContext.js +3 -0
  145. package/lib/cjs/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
  146. package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js +18 -5
  147. package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
  148. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js +26 -13
  149. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
  150. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js +11 -5
  151. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
  152. package/lib/cjs/curve/internalContexts/CurveLengthContext.js +6 -0
  153. package/lib/cjs/curve/internalContexts/CurveLengthContext.js.map +1 -1
  154. package/lib/cjs/curve/internalContexts/CurveOffsetXYHandler.js +8 -6
  155. package/lib/cjs/curve/internalContexts/CurveOffsetXYHandler.js.map +1 -1
  156. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js +38 -5
  157. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
  158. package/lib/cjs/curve/internalContexts/GapSearchContext.js +1 -0
  159. package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
  160. package/lib/cjs/curve/internalContexts/MultiChainCollector.js +12 -0
  161. package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -1
  162. package/lib/cjs/curve/internalContexts/NewtonRtoRStrokeHandler.js +1 -0
  163. package/lib/cjs/curve/internalContexts/NewtonRtoRStrokeHandler.js.map +1 -1
  164. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js +7 -0
  165. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  166. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js +22 -4
  167. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  168. package/lib/cjs/curve/internalContexts/SumLengthsContext.js +1 -0
  169. package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
  170. package/lib/cjs/curve/internalContexts/TransformInPlaceContext.js +3 -0
  171. package/lib/cjs/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
  172. package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js +2 -0
  173. package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
  174. package/lib/cjs/curve/spiral/ClothoidSeries.js +4 -0
  175. package/lib/cjs/curve/spiral/ClothoidSeries.js.map +1 -1
  176. package/lib/cjs/curve/spiral/CubicEvaluator.js +2 -0
  177. package/lib/cjs/curve/spiral/CubicEvaluator.js.map +1 -1
  178. package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js +4 -0
  179. package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
  180. package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js +5 -0
  181. package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
  182. package/lib/cjs/curve/spiral/DirectSpiral3d.js +12 -2
  183. package/lib/cjs/curve/spiral/DirectSpiral3d.js.map +1 -1
  184. package/lib/cjs/curve/spiral/IntegratedSpiral3d.js +24 -4
  185. package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  186. package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js +2 -0
  187. package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
  188. package/lib/cjs/curve/spiral/NormalizedTransition.js +5 -0
  189. package/lib/cjs/curve/spiral/NormalizedTransition.js.map +1 -1
  190. package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js +2 -0
  191. package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
  192. package/lib/cjs/curve/spiral/TransitionConditionalProperties.js +10 -0
  193. package/lib/cjs/curve/spiral/TransitionConditionalProperties.js.map +1 -1
  194. package/lib/cjs/curve/spiral/TransitionSpiral3d.js +10 -0
  195. package/lib/cjs/curve/spiral/TransitionSpiral3d.js.map +1 -1
  196. package/lib/cjs/curve/spiral/XYCurveEvaluator.js +6 -0
  197. package/lib/cjs/curve/spiral/XYCurveEvaluator.js.map +1 -1
  198. package/lib/cjs/geometry3d/Angle.js +18 -16
  199. package/lib/cjs/geometry3d/Angle.js.map +1 -1
  200. package/lib/cjs/geometry3d/AngleSweep.d.ts +7 -2
  201. package/lib/cjs/geometry3d/AngleSweep.d.ts.map +1 -1
  202. package/lib/cjs/geometry3d/AngleSweep.js +14 -2
  203. package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
  204. package/lib/cjs/geometry3d/BarycentricTriangle.js +25 -0
  205. package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
  206. package/lib/cjs/geometry3d/BilinearPatch.js +8 -0
  207. package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
  208. package/lib/cjs/geometry3d/CoincidentGeometryOps.js +5 -0
  209. package/lib/cjs/geometry3d/CoincidentGeometryOps.js.map +1 -1
  210. package/lib/cjs/geometry3d/Ellipsoid.js +48 -0
  211. package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
  212. package/lib/cjs/geometry3d/FrameBuilder.js +12 -4
  213. package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
  214. package/lib/cjs/geometry3d/FrustumAnimation.js +7 -0
  215. package/lib/cjs/geometry3d/FrustumAnimation.js.map +1 -1
  216. package/lib/cjs/geometry3d/GrowableBlockedArray.js +12 -0
  217. package/lib/cjs/geometry3d/GrowableBlockedArray.js.map +1 -1
  218. package/lib/cjs/geometry3d/GrowableFloat64Array.js +3 -0
  219. package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -1
  220. package/lib/cjs/geometry3d/GrowableXYArray.d.ts +0 -5
  221. package/lib/cjs/geometry3d/GrowableXYArray.d.ts.map +1 -1
  222. package/lib/cjs/geometry3d/GrowableXYArray.js +16 -7
  223. package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -1
  224. package/lib/cjs/geometry3d/GrowableXYZArray.d.ts +32 -10
  225. package/lib/cjs/geometry3d/GrowableXYZArray.d.ts.map +1 -1
  226. package/lib/cjs/geometry3d/GrowableXYZArray.js +70 -16
  227. package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -1
  228. package/lib/cjs/geometry3d/IndexedCollectionInterval.js +6 -0
  229. package/lib/cjs/geometry3d/IndexedCollectionInterval.js.map +1 -1
  230. package/lib/cjs/geometry3d/IndexedXYCollection.js +1 -0
  231. package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
  232. package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts +13 -2
  233. package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
  234. package/lib/cjs/geometry3d/IndexedXYZCollection.js +26 -11
  235. package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
  236. package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.js +3 -0
  237. package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
  238. package/lib/cjs/geometry3d/Matrix3d.d.ts +3 -4
  239. package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
  240. package/lib/cjs/geometry3d/Matrix3d.js +36 -14
  241. package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
  242. package/lib/cjs/geometry3d/OrderedRotationAngles.js +10 -2
  243. package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -1
  244. package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.js +2 -0
  245. package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
  246. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js +7 -0
  247. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  248. package/lib/cjs/geometry3d/Point2dArrayCarrier.js +2 -0
  249. package/lib/cjs/geometry3d/Point2dArrayCarrier.js.map +1 -1
  250. package/lib/cjs/geometry3d/Point2dVector2d.js +4 -0
  251. package/lib/cjs/geometry3d/Point2dVector2d.js.map +1 -1
  252. package/lib/cjs/geometry3d/Point3dArrayCarrier.js +3 -1
  253. package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
  254. package/lib/cjs/geometry3d/Point3dVector3d.d.ts +7 -10
  255. package/lib/cjs/geometry3d/Point3dVector3d.d.ts.map +1 -1
  256. package/lib/cjs/geometry3d/Point3dVector3d.js +16 -10
  257. package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
  258. package/lib/cjs/geometry3d/PointHelpers.d.ts +4 -4
  259. package/lib/cjs/geometry3d/PointHelpers.d.ts.map +1 -1
  260. package/lib/cjs/geometry3d/PointHelpers.js +8 -8
  261. package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
  262. package/lib/cjs/geometry3d/PointStreaming.js +12 -4
  263. package/lib/cjs/geometry3d/PointStreaming.js.map +1 -1
  264. package/lib/cjs/geometry3d/PolygonOps.d.ts +2 -2
  265. package/lib/cjs/geometry3d/PolygonOps.js +62 -25
  266. package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
  267. package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js +7 -3
  268. package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
  269. package/lib/cjs/geometry3d/PolylineOps.d.ts +9 -5
  270. package/lib/cjs/geometry3d/PolylineOps.d.ts.map +1 -1
  271. package/lib/cjs/geometry3d/PolylineOps.js +12 -5
  272. package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
  273. package/lib/cjs/geometry3d/Range.js +21 -4
  274. package/lib/cjs/geometry3d/Range.js.map +1 -1
  275. package/lib/cjs/geometry3d/Ray2d.js +2 -0
  276. package/lib/cjs/geometry3d/Ray2d.js.map +1 -1
  277. package/lib/cjs/geometry3d/Ray3d.d.ts +2 -2
  278. package/lib/cjs/geometry3d/Ray3d.d.ts.map +1 -1
  279. package/lib/cjs/geometry3d/Ray3d.js +20 -11
  280. package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
  281. package/lib/cjs/geometry3d/ReusableObjectCache.js +4 -0
  282. package/lib/cjs/geometry3d/ReusableObjectCache.js.map +1 -1
  283. package/lib/cjs/geometry3d/Segment1d.js +4 -0
  284. package/lib/cjs/geometry3d/Segment1d.js.map +1 -1
  285. package/lib/cjs/geometry3d/SortablePolygon.js +11 -0
  286. package/lib/cjs/geometry3d/SortablePolygon.js.map +1 -1
  287. package/lib/cjs/geometry3d/Transform.d.ts +1 -1
  288. package/lib/cjs/geometry3d/Transform.js +4 -1
  289. package/lib/cjs/geometry3d/Transform.js.map +1 -1
  290. package/lib/cjs/geometry3d/YawPitchRollAngles.js +6 -0
  291. package/lib/cjs/geometry3d/YawPitchRollAngles.js.map +1 -1
  292. package/lib/cjs/geometry4d/Map4d.js +2 -0
  293. package/lib/cjs/geometry4d/Map4d.js.map +1 -1
  294. package/lib/cjs/geometry4d/Matrix4d.js +1 -0
  295. package/lib/cjs/geometry4d/Matrix4d.js.map +1 -1
  296. package/lib/cjs/geometry4d/MomentData.d.ts +72 -73
  297. package/lib/cjs/geometry4d/MomentData.d.ts.map +1 -1
  298. package/lib/cjs/geometry4d/MomentData.js +90 -66
  299. package/lib/cjs/geometry4d/MomentData.js.map +1 -1
  300. package/lib/cjs/geometry4d/PlaneByOriginAndVectors4d.js +6 -0
  301. package/lib/cjs/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
  302. package/lib/cjs/geometry4d/Point4d.js +2 -0
  303. package/lib/cjs/geometry4d/Point4d.js.map +1 -1
  304. package/lib/cjs/numerics/BezierPolynomials.js +8 -0
  305. package/lib/cjs/numerics/BezierPolynomials.js.map +1 -1
  306. package/lib/cjs/numerics/ClusterableArray.js +29 -13
  307. package/lib/cjs/numerics/ClusterableArray.js.map +1 -1
  308. package/lib/cjs/numerics/Complex.js +2 -0
  309. package/lib/cjs/numerics/Complex.js.map +1 -1
  310. package/lib/cjs/numerics/ConvexPolygon2d.js +3 -0
  311. package/lib/cjs/numerics/ConvexPolygon2d.js.map +1 -1
  312. package/lib/cjs/numerics/Newton.js +59 -4
  313. package/lib/cjs/numerics/Newton.js.map +1 -1
  314. package/lib/cjs/numerics/PascalCoefficients.js +1 -1
  315. package/lib/cjs/numerics/PascalCoefficients.js.map +1 -1
  316. package/lib/cjs/numerics/PolarData.js +13 -1
  317. package/lib/cjs/numerics/PolarData.js.map +1 -1
  318. package/lib/cjs/numerics/Polynomials.js +64 -26
  319. package/lib/cjs/numerics/Polynomials.js.map +1 -1
  320. package/lib/cjs/numerics/Quadrature.js +26 -20
  321. package/lib/cjs/numerics/Quadrature.js.map +1 -1
  322. package/lib/cjs/numerics/TriDiagonalSystem.js +11 -0
  323. package/lib/cjs/numerics/TriDiagonalSystem.js.map +1 -1
  324. package/lib/cjs/numerics/UnionFind.js +1 -0
  325. package/lib/cjs/numerics/UnionFind.js.map +1 -1
  326. package/lib/cjs/numerics/UsageSums.js +10 -0
  327. package/lib/cjs/numerics/UsageSums.js.map +1 -1
  328. package/lib/cjs/polyface/AuxData.js +16 -0
  329. package/lib/cjs/polyface/AuxData.js.map +1 -1
  330. package/lib/cjs/polyface/BoxTopology.js +67 -67
  331. package/lib/cjs/polyface/BoxTopology.js.map +1 -1
  332. package/lib/cjs/polyface/FacetFaceData.d.ts +1 -1
  333. package/lib/cjs/polyface/FacetFaceData.js +3 -1
  334. package/lib/cjs/polyface/FacetFaceData.js.map +1 -1
  335. package/lib/cjs/polyface/FacetLocationDetail.js +30 -0
  336. package/lib/cjs/polyface/FacetLocationDetail.js.map +1 -1
  337. package/lib/cjs/polyface/FacetOrientation.js +12 -1
  338. package/lib/cjs/polyface/FacetOrientation.js.map +1 -1
  339. package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js +18 -2
  340. package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
  341. package/lib/cjs/polyface/IndexedEdgeMatcher.d.ts +33 -23
  342. package/lib/cjs/polyface/IndexedEdgeMatcher.d.ts.map +1 -1
  343. package/lib/cjs/polyface/IndexedEdgeMatcher.js +63 -33
  344. package/lib/cjs/polyface/IndexedEdgeMatcher.js.map +1 -1
  345. package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts +3 -2
  346. package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
  347. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js +11 -2
  348. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  349. package/lib/cjs/polyface/IndexedPolyfaceWalker.d.ts +233 -0
  350. package/lib/cjs/polyface/IndexedPolyfaceWalker.d.ts.map +1 -0
  351. package/lib/cjs/polyface/IndexedPolyfaceWalker.js +353 -0
  352. package/lib/cjs/polyface/IndexedPolyfaceWalker.js.map +1 -0
  353. package/lib/cjs/polyface/Polyface.d.ts +35 -10
  354. package/lib/cjs/polyface/Polyface.d.ts.map +1 -1
  355. package/lib/cjs/polyface/Polyface.js +73 -12
  356. package/lib/cjs/polyface/Polyface.js.map +1 -1
  357. package/lib/cjs/polyface/PolyfaceBuilder.d.ts +14 -27
  358. package/lib/cjs/polyface/PolyfaceBuilder.d.ts.map +1 -1
  359. package/lib/cjs/polyface/PolyfaceBuilder.js +47 -79
  360. package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
  361. package/lib/cjs/polyface/PolyfaceClip.js +8 -0
  362. package/lib/cjs/polyface/PolyfaceClip.js.map +1 -1
  363. package/lib/cjs/polyface/PolyfaceData.d.ts +28 -0
  364. package/lib/cjs/polyface/PolyfaceData.d.ts.map +1 -1
  365. package/lib/cjs/polyface/PolyfaceData.js +87 -5
  366. package/lib/cjs/polyface/PolyfaceData.js.map +1 -1
  367. package/lib/cjs/polyface/PolyfaceQuery.js +47 -7
  368. package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
  369. package/lib/cjs/polyface/RangeLengthData.js +7 -0
  370. package/lib/cjs/polyface/RangeLengthData.js.map +1 -1
  371. package/lib/cjs/polyface/RangeTree/LineString3dRangeTreeContext.js +12 -0
  372. package/lib/cjs/polyface/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
  373. package/lib/cjs/polyface/RangeTree/MinimumValueTester.js +5 -2
  374. package/lib/cjs/polyface/RangeTree/MinimumValueTester.js.map +1 -1
  375. package/lib/cjs/polyface/RangeTree/Point3dArrayRangeTreeContext.js +12 -0
  376. package/lib/cjs/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
  377. package/lib/cjs/polyface/RangeTree/PolyfaceRangeTreeContext.js +14 -0
  378. package/lib/cjs/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
  379. package/lib/cjs/polyface/RangeTree/RangeTreeNode.js +5 -0
  380. package/lib/cjs/polyface/RangeTree/RangeTreeNode.js.map +1 -1
  381. package/lib/cjs/polyface/RangeTree/RangeTreeSearchHandlers.js +43 -0
  382. package/lib/cjs/polyface/RangeTree/RangeTreeSearchHandlers.js.map +1 -1
  383. package/lib/cjs/polyface/TaggedNumericData.js +8 -0
  384. package/lib/cjs/polyface/TaggedNumericData.js.map +1 -1
  385. package/lib/cjs/polyface/TriangleCandidate.js +3 -0
  386. package/lib/cjs/polyface/TriangleCandidate.js.map +1 -1
  387. package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.js +7 -0
  388. package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
  389. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js +6 -0
  390. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
  391. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js +3 -0
  392. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
  393. package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.js +3 -0
  394. package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
  395. package/lib/cjs/polyface/multiclip/OffsetMeshContext.js +32 -0
  396. package/lib/cjs/polyface/multiclip/OffsetMeshContext.js.map +1 -1
  397. package/lib/cjs/polyface/multiclip/RangeSearch.js +5 -5
  398. package/lib/cjs/polyface/multiclip/RangeSearch.js.map +1 -1
  399. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js +21 -8
  400. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  401. package/lib/cjs/polyface/multiclip/XYPointBuckets.js +6 -0
  402. package/lib/cjs/polyface/multiclip/XYPointBuckets.js.map +1 -1
  403. package/lib/cjs/serialization/BGFBAccessors.js +82 -164
  404. package/lib/cjs/serialization/BGFBAccessors.js.map +1 -1
  405. package/lib/cjs/serialization/BGFBReader.js +22 -22
  406. package/lib/cjs/serialization/BGFBReader.js.map +1 -1
  407. package/lib/cjs/serialization/BGFBWriter.js +1 -0
  408. package/lib/cjs/serialization/BGFBWriter.js.map +1 -1
  409. package/lib/cjs/serialization/DeepCompare.js +17 -17
  410. package/lib/cjs/serialization/DeepCompare.js.map +1 -1
  411. package/lib/cjs/serialization/GeometrySamples.d.ts +5 -5
  412. package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -1
  413. package/lib/cjs/serialization/GeometrySamples.js +113 -112
  414. package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
  415. package/lib/cjs/serialization/IModelJsonSchema.d.ts +70 -63
  416. package/lib/cjs/serialization/IModelJsonSchema.d.ts.map +1 -1
  417. package/lib/cjs/serialization/IModelJsonSchema.js +87 -74
  418. package/lib/cjs/serialization/IModelJsonSchema.js.map +1 -1
  419. package/lib/cjs/solid/Box.js +7 -2
  420. package/lib/cjs/solid/Box.js.map +1 -1
  421. package/lib/cjs/solid/Cone.d.ts +39 -14
  422. package/lib/cjs/solid/Cone.d.ts.map +1 -1
  423. package/lib/cjs/solid/Cone.js +52 -16
  424. package/lib/cjs/solid/Cone.js.map +1 -1
  425. package/lib/cjs/solid/LinearSweep.js +4 -2
  426. package/lib/cjs/solid/LinearSweep.js.map +1 -1
  427. package/lib/cjs/solid/RotationalSweep.js +5 -2
  428. package/lib/cjs/solid/RotationalSweep.js.map +1 -1
  429. package/lib/cjs/solid/RuledSweep.d.ts +26 -23
  430. package/lib/cjs/solid/RuledSweep.d.ts.map +1 -1
  431. package/lib/cjs/solid/RuledSweep.js +32 -24
  432. package/lib/cjs/solid/RuledSweep.js.map +1 -1
  433. package/lib/cjs/solid/SolidPrimitive.d.ts +12 -11
  434. package/lib/cjs/solid/SolidPrimitive.d.ts.map +1 -1
  435. package/lib/cjs/solid/SolidPrimitive.js +11 -6
  436. package/lib/cjs/solid/SolidPrimitive.js.map +1 -1
  437. package/lib/cjs/solid/Sphere.d.ts +34 -17
  438. package/lib/cjs/solid/Sphere.d.ts.map +1 -1
  439. package/lib/cjs/solid/Sphere.js +51 -24
  440. package/lib/cjs/solid/Sphere.js.map +1 -1
  441. package/lib/cjs/solid/SweepContour.d.ts +24 -15
  442. package/lib/cjs/solid/SweepContour.d.ts.map +1 -1
  443. package/lib/cjs/solid/SweepContour.js +33 -15
  444. package/lib/cjs/solid/SweepContour.js.map +1 -1
  445. package/lib/cjs/solid/TorusPipe.js +7 -2
  446. package/lib/cjs/solid/TorusPipe.js.map +1 -1
  447. package/lib/cjs/topology/ChainMerge.js +16 -4
  448. package/lib/cjs/topology/ChainMerge.js.map +1 -1
  449. package/lib/cjs/topology/Graph.js +41 -6
  450. package/lib/cjs/topology/Graph.js.map +1 -1
  451. package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.d.ts +1 -1
  452. package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.js +5 -1
  453. package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
  454. package/lib/cjs/topology/HalfEdgeGraphSearch.js +2 -0
  455. package/lib/cjs/topology/HalfEdgeGraphSearch.js.map +1 -1
  456. package/lib/cjs/topology/HalfEdgeGraphSpineContext.js +9 -2
  457. package/lib/cjs/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  458. package/lib/cjs/topology/HalfEdgeGraphValidation.js +7 -9
  459. package/lib/cjs/topology/HalfEdgeGraphValidation.js.map +1 -1
  460. package/lib/cjs/topology/HalfEdgeMarkSet.js +5 -0
  461. package/lib/cjs/topology/HalfEdgeMarkSet.js.map +1 -1
  462. package/lib/cjs/topology/HalfEdgeNodeXYZUV.js +6 -0
  463. package/lib/cjs/topology/HalfEdgeNodeXYZUV.js.map +1 -1
  464. package/lib/cjs/topology/HalfEdgePointInGraphSearch.js +1 -0
  465. package/lib/cjs/topology/HalfEdgePointInGraphSearch.js.map +1 -1
  466. package/lib/cjs/topology/HalfEdgePositionDetail.js +16 -0
  467. package/lib/cjs/topology/HalfEdgePositionDetail.js.map +1 -1
  468. package/lib/cjs/topology/HalfEdgePriorityQueue.js +2 -0
  469. package/lib/cjs/topology/HalfEdgePriorityQueue.js.map +1 -1
  470. package/lib/cjs/topology/InsertAndRetriangulateContext.js +4 -0
  471. package/lib/cjs/topology/InsertAndRetriangulateContext.js.map +1 -1
  472. package/lib/cjs/topology/MaskManager.js +3 -0
  473. package/lib/cjs/topology/MaskManager.js.map +1 -1
  474. package/lib/cjs/topology/Merging.js +11 -6
  475. package/lib/cjs/topology/Merging.js.map +1 -1
  476. package/lib/cjs/topology/RegularizeFace.js +22 -0
  477. package/lib/cjs/topology/RegularizeFace.js.map +1 -1
  478. package/lib/cjs/topology/SignedDataSummary.js +22 -0
  479. package/lib/cjs/topology/SignedDataSummary.js.map +1 -1
  480. package/lib/cjs/topology/Triangulation.js +21 -11
  481. package/lib/cjs/topology/Triangulation.js.map +1 -1
  482. package/lib/cjs/topology/XYParitySearchContext.js +13 -0
  483. package/lib/cjs/topology/XYParitySearchContext.js.map +1 -1
  484. package/lib/esm/Constant.js +17 -17
  485. package/lib/esm/Constant.js.map +1 -1
  486. package/lib/esm/Geometry.d.ts +2 -4
  487. package/lib/esm/Geometry.d.ts.map +1 -1
  488. package/lib/esm/Geometry.js +37 -39
  489. package/lib/esm/Geometry.js.map +1 -1
  490. package/lib/esm/bspline/AkimaCurve3d.js +3 -1
  491. package/lib/esm/bspline/AkimaCurve3d.js.map +1 -1
  492. package/lib/esm/bspline/BSpline1dNd.d.ts +90 -54
  493. package/lib/esm/bspline/BSpline1dNd.d.ts.map +1 -1
  494. package/lib/esm/bspline/BSpline1dNd.js +137 -84
  495. package/lib/esm/bspline/BSpline1dNd.js.map +1 -1
  496. package/lib/esm/bspline/BSplineCurve.d.ts +193 -155
  497. package/lib/esm/bspline/BSplineCurve.d.ts.map +1 -1
  498. package/lib/esm/bspline/BSplineCurve.js +249 -181
  499. package/lib/esm/bspline/BSplineCurve.js.map +1 -1
  500. package/lib/esm/bspline/BSplineCurve3dH.js +1 -0
  501. package/lib/esm/bspline/BSplineCurve3dH.js.map +1 -1
  502. package/lib/esm/bspline/BSplineCurveOps.d.ts.map +1 -1
  503. package/lib/esm/bspline/BSplineCurveOps.js +18 -21
  504. package/lib/esm/bspline/BSplineCurveOps.js.map +1 -1
  505. package/lib/esm/bspline/BSplineSurface.js +22 -2
  506. package/lib/esm/bspline/BSplineSurface.js.map +1 -1
  507. package/lib/esm/bspline/Bezier1dNd.js +6 -0
  508. package/lib/esm/bspline/Bezier1dNd.js.map +1 -1
  509. package/lib/esm/bspline/BezierCurve3d.d.ts +3 -1
  510. package/lib/esm/bspline/BezierCurve3d.d.ts.map +1 -1
  511. package/lib/esm/bspline/BezierCurve3d.js +5 -5
  512. package/lib/esm/bspline/BezierCurve3d.js.map +1 -1
  513. package/lib/esm/bspline/BezierCurve3dH.js +2 -0
  514. package/lib/esm/bspline/BezierCurve3dH.js.map +1 -1
  515. package/lib/esm/bspline/BezierCurveBase.d.ts.map +1 -1
  516. package/lib/esm/bspline/BezierCurveBase.js +21 -2
  517. package/lib/esm/bspline/BezierCurveBase.js.map +1 -1
  518. package/lib/esm/bspline/InterpolationCurve3d.js +12 -1
  519. package/lib/esm/bspline/InterpolationCurve3d.js.map +1 -1
  520. package/lib/esm/bspline/KnotVector.d.ts +82 -60
  521. package/lib/esm/bspline/KnotVector.d.ts.map +1 -1
  522. package/lib/esm/bspline/KnotVector.js +144 -84
  523. package/lib/esm/bspline/KnotVector.js.map +1 -1
  524. package/lib/esm/bspline/SurfaceLocationDetail.js +12 -0
  525. package/lib/esm/bspline/SurfaceLocationDetail.js.map +1 -1
  526. package/lib/esm/clipping/AlternatingConvexClipTree.js +14 -13
  527. package/lib/esm/clipping/AlternatingConvexClipTree.js.map +1 -1
  528. package/lib/esm/clipping/BooleanClipNode.js +4 -0
  529. package/lib/esm/clipping/BooleanClipNode.js.map +1 -1
  530. package/lib/esm/clipping/ClipPlane.js +10 -1
  531. package/lib/esm/clipping/ClipPlane.js.map +1 -1
  532. package/lib/esm/clipping/ClipPrimitive.js +19 -0
  533. package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
  534. package/lib/esm/clipping/ClipUtils.js +5 -1
  535. package/lib/esm/clipping/ClipUtils.js.map +1 -1
  536. package/lib/esm/clipping/ClipVector.js +11 -8
  537. package/lib/esm/clipping/ClipVector.js.map +1 -1
  538. package/lib/esm/clipping/ConvexClipPlaneSet.js +5 -3
  539. package/lib/esm/clipping/ConvexClipPlaneSet.js.map +1 -1
  540. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js +2 -1
  541. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  542. package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js +3 -0
  543. package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
  544. package/lib/esm/core-geometry.d.ts +1 -0
  545. package/lib/esm/core-geometry.d.ts.map +1 -1
  546. package/lib/esm/core-geometry.js +1 -0
  547. package/lib/esm/core-geometry.js.map +1 -1
  548. package/lib/esm/curve/Arc3d.d.ts +17 -3
  549. package/lib/esm/curve/Arc3d.d.ts.map +1 -1
  550. package/lib/esm/curve/Arc3d.js +50 -21
  551. package/lib/esm/curve/Arc3d.js.map +1 -1
  552. package/lib/esm/curve/ConstructCurveBetweenCurves.js +3 -0
  553. package/lib/esm/curve/ConstructCurveBetweenCurves.js.map +1 -1
  554. package/lib/esm/curve/CoordinateXYZ.js +3 -2
  555. package/lib/esm/curve/CoordinateXYZ.js.map +1 -1
  556. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts +0 -2
  557. package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
  558. package/lib/esm/curve/CurveChainWithDistanceIndex.js +25 -10
  559. package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
  560. package/lib/esm/curve/CurveCollection.d.ts +10 -0
  561. package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
  562. package/lib/esm/curve/CurveCollection.js +35 -9
  563. package/lib/esm/curve/CurveCollection.js.map +1 -1
  564. package/lib/esm/curve/CurveFactory.d.ts +87 -53
  565. package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
  566. package/lib/esm/curve/CurveFactory.js +213 -135
  567. package/lib/esm/curve/CurveFactory.js.map +1 -1
  568. package/lib/esm/curve/CurveLocationDetail.js +44 -0
  569. package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
  570. package/lib/esm/curve/CurvePrimitive.d.ts +7 -10
  571. package/lib/esm/curve/CurvePrimitive.d.ts.map +1 -1
  572. package/lib/esm/curve/CurvePrimitive.js +27 -12
  573. package/lib/esm/curve/CurvePrimitive.js.map +1 -1
  574. package/lib/esm/curve/CurveProcessor.js +2 -0
  575. package/lib/esm/curve/CurveProcessor.js.map +1 -1
  576. package/lib/esm/curve/CurveWireMomentsXYZ.js +2 -0
  577. package/lib/esm/curve/CurveWireMomentsXYZ.js.map +1 -1
  578. package/lib/esm/curve/LineSegment3d.js +6 -2
  579. package/lib/esm/curve/LineSegment3d.js.map +1 -1
  580. package/lib/esm/curve/LineString3d.js +27 -7
  581. package/lib/esm/curve/LineString3d.js.map +1 -1
  582. package/lib/esm/curve/Loop.js +12 -4
  583. package/lib/esm/curve/Loop.js.map +1 -1
  584. package/lib/esm/curve/OffsetOptions.js +25 -21
  585. package/lib/esm/curve/OffsetOptions.js.map +1 -1
  586. package/lib/esm/curve/ParityRegion.js +4 -2
  587. package/lib/esm/curve/ParityRegion.js.map +1 -1
  588. package/lib/esm/curve/Path.js +2 -2
  589. package/lib/esm/curve/Path.js.map +1 -1
  590. package/lib/esm/curve/PointString3d.js +3 -2
  591. package/lib/esm/curve/PointString3d.js.map +1 -1
  592. package/lib/esm/curve/ProxyCurve.js +1 -0
  593. package/lib/esm/curve/ProxyCurve.js.map +1 -1
  594. package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.js +1 -0
  595. package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
  596. package/lib/esm/curve/Query/CurveSplitContext.js +3 -0
  597. package/lib/esm/curve/Query/CurveSplitContext.js.map +1 -1
  598. package/lib/esm/curve/Query/CylindricalRange.js +6 -2
  599. package/lib/esm/curve/Query/CylindricalRange.js.map +1 -1
  600. package/lib/esm/curve/Query/PlanarSubdivision.js +4 -6
  601. package/lib/esm/curve/Query/PlanarSubdivision.js.map +1 -1
  602. package/lib/esm/curve/Query/StrokeCountChain.js +12 -0
  603. package/lib/esm/curve/Query/StrokeCountChain.js.map +1 -1
  604. package/lib/esm/curve/Query/StrokeCountMap.js +14 -0
  605. package/lib/esm/curve/Query/StrokeCountMap.js.map +1 -1
  606. package/lib/esm/curve/RegionMomentsXY.js +4 -5
  607. package/lib/esm/curve/RegionMomentsXY.js.map +1 -1
  608. package/lib/esm/curve/RegionOps.js +9 -10
  609. package/lib/esm/curve/RegionOps.js.map +1 -1
  610. package/lib/esm/curve/RegionOpsClassificationSweeps.js +24 -1
  611. package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -1
  612. package/lib/esm/curve/StrokeOptions.d.ts +4 -4
  613. package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
  614. package/lib/esm/curve/StrokeOptions.js +23 -6
  615. package/lib/esm/curve/StrokeOptions.js.map +1 -1
  616. package/lib/esm/curve/UnionRegion.js +4 -2
  617. package/lib/esm/curve/UnionRegion.js.map +1 -1
  618. package/lib/esm/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js +13 -7
  619. package/lib/esm/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
  620. package/lib/esm/curve/internalContexts/ChainCollectorContext.js +6 -0
  621. package/lib/esm/curve/internalContexts/ChainCollectorContext.js.map +1 -1
  622. package/lib/esm/curve/internalContexts/CloneCurvesContext.js +2 -0
  623. package/lib/esm/curve/internalContexts/CloneCurvesContext.js.map +1 -1
  624. package/lib/esm/curve/internalContexts/ClosestPointStrokeHandler.js +13 -5
  625. package/lib/esm/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
  626. package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js +3 -0
  627. package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
  628. package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js +18 -5
  629. package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
  630. package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js +26 -13
  631. package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
  632. package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js +11 -5
  633. package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
  634. package/lib/esm/curve/internalContexts/CurveLengthContext.js +6 -0
  635. package/lib/esm/curve/internalContexts/CurveLengthContext.js.map +1 -1
  636. package/lib/esm/curve/internalContexts/CurveOffsetXYHandler.js +8 -6
  637. package/lib/esm/curve/internalContexts/CurveOffsetXYHandler.js.map +1 -1
  638. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js +38 -5
  639. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
  640. package/lib/esm/curve/internalContexts/GapSearchContext.js +1 -0
  641. package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
  642. package/lib/esm/curve/internalContexts/MultiChainCollector.js +12 -0
  643. package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -1
  644. package/lib/esm/curve/internalContexts/NewtonRtoRStrokeHandler.js +1 -0
  645. package/lib/esm/curve/internalContexts/NewtonRtoRStrokeHandler.js.map +1 -1
  646. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js +7 -0
  647. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  648. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js +22 -4
  649. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  650. package/lib/esm/curve/internalContexts/SumLengthsContext.js +1 -0
  651. package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
  652. package/lib/esm/curve/internalContexts/TransformInPlaceContext.js +3 -0
  653. package/lib/esm/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
  654. package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js +2 -0
  655. package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
  656. package/lib/esm/curve/spiral/ClothoidSeries.js +4 -0
  657. package/lib/esm/curve/spiral/ClothoidSeries.js.map +1 -1
  658. package/lib/esm/curve/spiral/CubicEvaluator.js +2 -0
  659. package/lib/esm/curve/spiral/CubicEvaluator.js.map +1 -1
  660. package/lib/esm/curve/spiral/CzechSpiralEvaluator.js +4 -0
  661. package/lib/esm/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
  662. package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js +5 -0
  663. package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
  664. package/lib/esm/curve/spiral/DirectSpiral3d.js +12 -2
  665. package/lib/esm/curve/spiral/DirectSpiral3d.js.map +1 -1
  666. package/lib/esm/curve/spiral/IntegratedSpiral3d.js +24 -4
  667. package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  668. package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js +2 -0
  669. package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
  670. package/lib/esm/curve/spiral/NormalizedTransition.js +5 -0
  671. package/lib/esm/curve/spiral/NormalizedTransition.js.map +1 -1
  672. package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js +2 -0
  673. package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
  674. package/lib/esm/curve/spiral/TransitionConditionalProperties.js +10 -0
  675. package/lib/esm/curve/spiral/TransitionConditionalProperties.js.map +1 -1
  676. package/lib/esm/curve/spiral/TransitionSpiral3d.js +10 -0
  677. package/lib/esm/curve/spiral/TransitionSpiral3d.js.map +1 -1
  678. package/lib/esm/curve/spiral/XYCurveEvaluator.js +6 -0
  679. package/lib/esm/curve/spiral/XYCurveEvaluator.js.map +1 -1
  680. package/lib/esm/geometry3d/Angle.js +18 -16
  681. package/lib/esm/geometry3d/Angle.js.map +1 -1
  682. package/lib/esm/geometry3d/AngleSweep.d.ts +7 -2
  683. package/lib/esm/geometry3d/AngleSweep.d.ts.map +1 -1
  684. package/lib/esm/geometry3d/AngleSweep.js +14 -2
  685. package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
  686. package/lib/esm/geometry3d/BarycentricTriangle.js +25 -0
  687. package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
  688. package/lib/esm/geometry3d/BilinearPatch.js +8 -0
  689. package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
  690. package/lib/esm/geometry3d/CoincidentGeometryOps.js +5 -0
  691. package/lib/esm/geometry3d/CoincidentGeometryOps.js.map +1 -1
  692. package/lib/esm/geometry3d/Ellipsoid.js +48 -0
  693. package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
  694. package/lib/esm/geometry3d/FrameBuilder.js +12 -4
  695. package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
  696. package/lib/esm/geometry3d/FrustumAnimation.js +7 -0
  697. package/lib/esm/geometry3d/FrustumAnimation.js.map +1 -1
  698. package/lib/esm/geometry3d/GrowableBlockedArray.js +12 -0
  699. package/lib/esm/geometry3d/GrowableBlockedArray.js.map +1 -1
  700. package/lib/esm/geometry3d/GrowableFloat64Array.js +3 -0
  701. package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -1
  702. package/lib/esm/geometry3d/GrowableXYArray.d.ts +0 -5
  703. package/lib/esm/geometry3d/GrowableXYArray.d.ts.map +1 -1
  704. package/lib/esm/geometry3d/GrowableXYArray.js +16 -7
  705. package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -1
  706. package/lib/esm/geometry3d/GrowableXYZArray.d.ts +32 -10
  707. package/lib/esm/geometry3d/GrowableXYZArray.d.ts.map +1 -1
  708. package/lib/esm/geometry3d/GrowableXYZArray.js +70 -16
  709. package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -1
  710. package/lib/esm/geometry3d/IndexedCollectionInterval.js +6 -0
  711. package/lib/esm/geometry3d/IndexedCollectionInterval.js.map +1 -1
  712. package/lib/esm/geometry3d/IndexedXYCollection.js +1 -0
  713. package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
  714. package/lib/esm/geometry3d/IndexedXYZCollection.d.ts +13 -2
  715. package/lib/esm/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
  716. package/lib/esm/geometry3d/IndexedXYZCollection.js +26 -11
  717. package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
  718. package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js +3 -0
  719. package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
  720. package/lib/esm/geometry3d/Matrix3d.d.ts +3 -4
  721. package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
  722. package/lib/esm/geometry3d/Matrix3d.js +36 -14
  723. package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
  724. package/lib/esm/geometry3d/OrderedRotationAngles.js +10 -2
  725. package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -1
  726. package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js +2 -0
  727. package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
  728. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js +7 -0
  729. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  730. package/lib/esm/geometry3d/Point2dArrayCarrier.js +2 -0
  731. package/lib/esm/geometry3d/Point2dArrayCarrier.js.map +1 -1
  732. package/lib/esm/geometry3d/Point2dVector2d.js +4 -0
  733. package/lib/esm/geometry3d/Point2dVector2d.js.map +1 -1
  734. package/lib/esm/geometry3d/Point3dArrayCarrier.js +3 -1
  735. package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
  736. package/lib/esm/geometry3d/Point3dVector3d.d.ts +7 -10
  737. package/lib/esm/geometry3d/Point3dVector3d.d.ts.map +1 -1
  738. package/lib/esm/geometry3d/Point3dVector3d.js +16 -10
  739. package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
  740. package/lib/esm/geometry3d/PointHelpers.d.ts +4 -4
  741. package/lib/esm/geometry3d/PointHelpers.d.ts.map +1 -1
  742. package/lib/esm/geometry3d/PointHelpers.js +8 -8
  743. package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
  744. package/lib/esm/geometry3d/PointStreaming.js +12 -4
  745. package/lib/esm/geometry3d/PointStreaming.js.map +1 -1
  746. package/lib/esm/geometry3d/PolygonOps.d.ts +2 -2
  747. package/lib/esm/geometry3d/PolygonOps.js +62 -25
  748. package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
  749. package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js +7 -3
  750. package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
  751. package/lib/esm/geometry3d/PolylineOps.d.ts +9 -5
  752. package/lib/esm/geometry3d/PolylineOps.d.ts.map +1 -1
  753. package/lib/esm/geometry3d/PolylineOps.js +12 -5
  754. package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
  755. package/lib/esm/geometry3d/Range.js +21 -4
  756. package/lib/esm/geometry3d/Range.js.map +1 -1
  757. package/lib/esm/geometry3d/Ray2d.js +2 -0
  758. package/lib/esm/geometry3d/Ray2d.js.map +1 -1
  759. package/lib/esm/geometry3d/Ray3d.d.ts +2 -2
  760. package/lib/esm/geometry3d/Ray3d.d.ts.map +1 -1
  761. package/lib/esm/geometry3d/Ray3d.js +20 -11
  762. package/lib/esm/geometry3d/Ray3d.js.map +1 -1
  763. package/lib/esm/geometry3d/ReusableObjectCache.js +4 -0
  764. package/lib/esm/geometry3d/ReusableObjectCache.js.map +1 -1
  765. package/lib/esm/geometry3d/Segment1d.js +4 -0
  766. package/lib/esm/geometry3d/Segment1d.js.map +1 -1
  767. package/lib/esm/geometry3d/SortablePolygon.js +11 -0
  768. package/lib/esm/geometry3d/SortablePolygon.js.map +1 -1
  769. package/lib/esm/geometry3d/Transform.d.ts +1 -1
  770. package/lib/esm/geometry3d/Transform.js +4 -1
  771. package/lib/esm/geometry3d/Transform.js.map +1 -1
  772. package/lib/esm/geometry3d/YawPitchRollAngles.js +6 -0
  773. package/lib/esm/geometry3d/YawPitchRollAngles.js.map +1 -1
  774. package/lib/esm/geometry4d/Map4d.js +2 -0
  775. package/lib/esm/geometry4d/Map4d.js.map +1 -1
  776. package/lib/esm/geometry4d/Matrix4d.js +1 -0
  777. package/lib/esm/geometry4d/Matrix4d.js.map +1 -1
  778. package/lib/esm/geometry4d/MomentData.d.ts +72 -73
  779. package/lib/esm/geometry4d/MomentData.d.ts.map +1 -1
  780. package/lib/esm/geometry4d/MomentData.js +90 -66
  781. package/lib/esm/geometry4d/MomentData.js.map +1 -1
  782. package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.js +6 -0
  783. package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
  784. package/lib/esm/geometry4d/Point4d.js +2 -0
  785. package/lib/esm/geometry4d/Point4d.js.map +1 -1
  786. package/lib/esm/numerics/BezierPolynomials.js +8 -0
  787. package/lib/esm/numerics/BezierPolynomials.js.map +1 -1
  788. package/lib/esm/numerics/ClusterableArray.js +29 -13
  789. package/lib/esm/numerics/ClusterableArray.js.map +1 -1
  790. package/lib/esm/numerics/Complex.js +2 -0
  791. package/lib/esm/numerics/Complex.js.map +1 -1
  792. package/lib/esm/numerics/ConvexPolygon2d.js +3 -0
  793. package/lib/esm/numerics/ConvexPolygon2d.js.map +1 -1
  794. package/lib/esm/numerics/Newton.js +59 -4
  795. package/lib/esm/numerics/Newton.js.map +1 -1
  796. package/lib/esm/numerics/PascalCoefficients.js +1 -1
  797. package/lib/esm/numerics/PascalCoefficients.js.map +1 -1
  798. package/lib/esm/numerics/PolarData.js +13 -1
  799. package/lib/esm/numerics/PolarData.js.map +1 -1
  800. package/lib/esm/numerics/Polynomials.js +64 -26
  801. package/lib/esm/numerics/Polynomials.js.map +1 -1
  802. package/lib/esm/numerics/Quadrature.js +26 -20
  803. package/lib/esm/numerics/Quadrature.js.map +1 -1
  804. package/lib/esm/numerics/TriDiagonalSystem.js +11 -0
  805. package/lib/esm/numerics/TriDiagonalSystem.js.map +1 -1
  806. package/lib/esm/numerics/UnionFind.js +1 -0
  807. package/lib/esm/numerics/UnionFind.js.map +1 -1
  808. package/lib/esm/numerics/UsageSums.js +10 -0
  809. package/lib/esm/numerics/UsageSums.js.map +1 -1
  810. package/lib/esm/polyface/AuxData.js +16 -0
  811. package/lib/esm/polyface/AuxData.js.map +1 -1
  812. package/lib/esm/polyface/BoxTopology.js +67 -67
  813. package/lib/esm/polyface/BoxTopology.js.map +1 -1
  814. package/lib/esm/polyface/FacetFaceData.d.ts +1 -1
  815. package/lib/esm/polyface/FacetFaceData.js +3 -1
  816. package/lib/esm/polyface/FacetFaceData.js.map +1 -1
  817. package/lib/esm/polyface/FacetLocationDetail.js +30 -0
  818. package/lib/esm/polyface/FacetLocationDetail.js.map +1 -1
  819. package/lib/esm/polyface/FacetOrientation.js +12 -1
  820. package/lib/esm/polyface/FacetOrientation.js.map +1 -1
  821. package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js +18 -2
  822. package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
  823. package/lib/esm/polyface/IndexedEdgeMatcher.d.ts +33 -23
  824. package/lib/esm/polyface/IndexedEdgeMatcher.d.ts.map +1 -1
  825. package/lib/esm/polyface/IndexedEdgeMatcher.js +63 -33
  826. package/lib/esm/polyface/IndexedEdgeMatcher.js.map +1 -1
  827. package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts +3 -2
  828. package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
  829. package/lib/esm/polyface/IndexedPolyfaceVisitor.js +11 -2
  830. package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  831. package/lib/esm/polyface/IndexedPolyfaceWalker.d.ts +233 -0
  832. package/lib/esm/polyface/IndexedPolyfaceWalker.d.ts.map +1 -0
  833. package/lib/esm/polyface/IndexedPolyfaceWalker.js +349 -0
  834. package/lib/esm/polyface/IndexedPolyfaceWalker.js.map +1 -0
  835. package/lib/esm/polyface/Polyface.d.ts +35 -10
  836. package/lib/esm/polyface/Polyface.d.ts.map +1 -1
  837. package/lib/esm/polyface/Polyface.js +73 -12
  838. package/lib/esm/polyface/Polyface.js.map +1 -1
  839. package/lib/esm/polyface/PolyfaceBuilder.d.ts +14 -27
  840. package/lib/esm/polyface/PolyfaceBuilder.d.ts.map +1 -1
  841. package/lib/esm/polyface/PolyfaceBuilder.js +48 -80
  842. package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
  843. package/lib/esm/polyface/PolyfaceClip.js +8 -0
  844. package/lib/esm/polyface/PolyfaceClip.js.map +1 -1
  845. package/lib/esm/polyface/PolyfaceData.d.ts +28 -0
  846. package/lib/esm/polyface/PolyfaceData.d.ts.map +1 -1
  847. package/lib/esm/polyface/PolyfaceData.js +87 -5
  848. package/lib/esm/polyface/PolyfaceData.js.map +1 -1
  849. package/lib/esm/polyface/PolyfaceQuery.js +47 -7
  850. package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
  851. package/lib/esm/polyface/RangeLengthData.js +7 -0
  852. package/lib/esm/polyface/RangeLengthData.js.map +1 -1
  853. package/lib/esm/polyface/RangeTree/LineString3dRangeTreeContext.js +12 -0
  854. package/lib/esm/polyface/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
  855. package/lib/esm/polyface/RangeTree/MinimumValueTester.js +5 -2
  856. package/lib/esm/polyface/RangeTree/MinimumValueTester.js.map +1 -1
  857. package/lib/esm/polyface/RangeTree/Point3dArrayRangeTreeContext.js +12 -0
  858. package/lib/esm/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
  859. package/lib/esm/polyface/RangeTree/PolyfaceRangeTreeContext.js +14 -0
  860. package/lib/esm/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
  861. package/lib/esm/polyface/RangeTree/RangeTreeNode.js +5 -0
  862. package/lib/esm/polyface/RangeTree/RangeTreeNode.js.map +1 -1
  863. package/lib/esm/polyface/RangeTree/RangeTreeSearchHandlers.js +43 -0
  864. package/lib/esm/polyface/RangeTree/RangeTreeSearchHandlers.js.map +1 -1
  865. package/lib/esm/polyface/TaggedNumericData.js +8 -0
  866. package/lib/esm/polyface/TaggedNumericData.js.map +1 -1
  867. package/lib/esm/polyface/TriangleCandidate.js +3 -0
  868. package/lib/esm/polyface/TriangleCandidate.js.map +1 -1
  869. package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js +7 -0
  870. package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
  871. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js +6 -0
  872. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
  873. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js +3 -0
  874. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
  875. package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js +3 -0
  876. package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
  877. package/lib/esm/polyface/multiclip/OffsetMeshContext.js +32 -0
  878. package/lib/esm/polyface/multiclip/OffsetMeshContext.js.map +1 -1
  879. package/lib/esm/polyface/multiclip/RangeSearch.js +5 -5
  880. package/lib/esm/polyface/multiclip/RangeSearch.js.map +1 -1
  881. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js +21 -8
  882. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  883. package/lib/esm/polyface/multiclip/XYPointBuckets.js +6 -0
  884. package/lib/esm/polyface/multiclip/XYPointBuckets.js.map +1 -1
  885. package/lib/esm/serialization/BGFBAccessors.js +82 -164
  886. package/lib/esm/serialization/BGFBAccessors.js.map +1 -1
  887. package/lib/esm/serialization/BGFBReader.js +22 -22
  888. package/lib/esm/serialization/BGFBReader.js.map +1 -1
  889. package/lib/esm/serialization/BGFBWriter.js +1 -0
  890. package/lib/esm/serialization/BGFBWriter.js.map +1 -1
  891. package/lib/esm/serialization/DeepCompare.js +17 -17
  892. package/lib/esm/serialization/DeepCompare.js.map +1 -1
  893. package/lib/esm/serialization/GeometrySamples.d.ts +5 -5
  894. package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -1
  895. package/lib/esm/serialization/GeometrySamples.js +113 -112
  896. package/lib/esm/serialization/GeometrySamples.js.map +1 -1
  897. package/lib/esm/serialization/IModelJsonSchema.d.ts +70 -63
  898. package/lib/esm/serialization/IModelJsonSchema.d.ts.map +1 -1
  899. package/lib/esm/serialization/IModelJsonSchema.js +87 -74
  900. package/lib/esm/serialization/IModelJsonSchema.js.map +1 -1
  901. package/lib/esm/solid/Box.js +7 -2
  902. package/lib/esm/solid/Box.js.map +1 -1
  903. package/lib/esm/solid/Cone.d.ts +39 -14
  904. package/lib/esm/solid/Cone.d.ts.map +1 -1
  905. package/lib/esm/solid/Cone.js +53 -17
  906. package/lib/esm/solid/Cone.js.map +1 -1
  907. package/lib/esm/solid/LinearSweep.js +4 -2
  908. package/lib/esm/solid/LinearSweep.js.map +1 -1
  909. package/lib/esm/solid/RotationalSweep.js +5 -2
  910. package/lib/esm/solid/RotationalSweep.js.map +1 -1
  911. package/lib/esm/solid/RuledSweep.d.ts +26 -23
  912. package/lib/esm/solid/RuledSweep.d.ts.map +1 -1
  913. package/lib/esm/solid/RuledSweep.js +32 -24
  914. package/lib/esm/solid/RuledSweep.js.map +1 -1
  915. package/lib/esm/solid/SolidPrimitive.d.ts +12 -11
  916. package/lib/esm/solid/SolidPrimitive.d.ts.map +1 -1
  917. package/lib/esm/solid/SolidPrimitive.js +11 -6
  918. package/lib/esm/solid/SolidPrimitive.js.map +1 -1
  919. package/lib/esm/solid/Sphere.d.ts +34 -17
  920. package/lib/esm/solid/Sphere.d.ts.map +1 -1
  921. package/lib/esm/solid/Sphere.js +52 -25
  922. package/lib/esm/solid/Sphere.js.map +1 -1
  923. package/lib/esm/solid/SweepContour.d.ts +24 -15
  924. package/lib/esm/solid/SweepContour.d.ts.map +1 -1
  925. package/lib/esm/solid/SweepContour.js +33 -15
  926. package/lib/esm/solid/SweepContour.js.map +1 -1
  927. package/lib/esm/solid/TorusPipe.js +7 -2
  928. package/lib/esm/solid/TorusPipe.js.map +1 -1
  929. package/lib/esm/topology/ChainMerge.js +16 -4
  930. package/lib/esm/topology/ChainMerge.js.map +1 -1
  931. package/lib/esm/topology/Graph.js +41 -6
  932. package/lib/esm/topology/Graph.js.map +1 -1
  933. package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.d.ts +1 -1
  934. package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.js +5 -1
  935. package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
  936. package/lib/esm/topology/HalfEdgeGraphSearch.js +2 -0
  937. package/lib/esm/topology/HalfEdgeGraphSearch.js.map +1 -1
  938. package/lib/esm/topology/HalfEdgeGraphSpineContext.js +9 -2
  939. package/lib/esm/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  940. package/lib/esm/topology/HalfEdgeGraphValidation.js +7 -9
  941. package/lib/esm/topology/HalfEdgeGraphValidation.js.map +1 -1
  942. package/lib/esm/topology/HalfEdgeMarkSet.js +5 -0
  943. package/lib/esm/topology/HalfEdgeMarkSet.js.map +1 -1
  944. package/lib/esm/topology/HalfEdgeNodeXYZUV.js +6 -0
  945. package/lib/esm/topology/HalfEdgeNodeXYZUV.js.map +1 -1
  946. package/lib/esm/topology/HalfEdgePointInGraphSearch.js +1 -0
  947. package/lib/esm/topology/HalfEdgePointInGraphSearch.js.map +1 -1
  948. package/lib/esm/topology/HalfEdgePositionDetail.js +16 -0
  949. package/lib/esm/topology/HalfEdgePositionDetail.js.map +1 -1
  950. package/lib/esm/topology/HalfEdgePriorityQueue.js +2 -0
  951. package/lib/esm/topology/HalfEdgePriorityQueue.js.map +1 -1
  952. package/lib/esm/topology/InsertAndRetriangulateContext.js +4 -0
  953. package/lib/esm/topology/InsertAndRetriangulateContext.js.map +1 -1
  954. package/lib/esm/topology/MaskManager.js +3 -0
  955. package/lib/esm/topology/MaskManager.js.map +1 -1
  956. package/lib/esm/topology/Merging.js +11 -6
  957. package/lib/esm/topology/Merging.js.map +1 -1
  958. package/lib/esm/topology/RegularizeFace.js +22 -0
  959. package/lib/esm/topology/RegularizeFace.js.map +1 -1
  960. package/lib/esm/topology/SignedDataSummary.js +22 -0
  961. package/lib/esm/topology/SignedDataSummary.js.map +1 -1
  962. package/lib/esm/topology/Triangulation.js +21 -11
  963. package/lib/esm/topology/Triangulation.js.map +1 -1
  964. package/lib/esm/topology/XYParitySearchContext.js +13 -0
  965. package/lib/esm/topology/XYParitySearchContext.js.map +1 -1
  966. package/package.json +9 -9
@@ -8,37 +8,39 @@ import { Transform } from "../geometry3d/Transform";
8
8
  import { SolidPrimitive } from "./SolidPrimitive";
9
9
  import { SweepContour } from "./SweepContour";
10
10
  /**
11
- * * type for a function argument taking 2 curves and returning another curve or failing with undefined.
12
- * * This is used (for instance) by `RuleSweep.mutatePartners`
11
+ * Type for a function argument taking 2 curves and returning another curve or failing with undefined.
12
+ * * This is used (for instance) by `RuleSweep.mutatePartners`.
13
13
  * @public
14
14
  */
15
15
  export type CurvePrimitiveMutator = (primitiveA: CurvePrimitive, primitiveB: CurvePrimitive) => CurvePrimitive | undefined;
16
16
  /**
17
17
  * A ruled sweep (surface) is a collection of 2 or more contours.
18
- * * All contours must have identical number and type of geometry. (paths, loops, parity regions, lines, arcs, other curves)
18
+ * * All contours must have identical number and type of geometry. (paths, loops, parity regions, lines, arcs, other curves).
19
19
  * @public
20
20
  */
21
21
  export declare class RuledSweep extends SolidPrimitive {
22
- /** String name for schema properties */
22
+ /** String name for schema properties. */
23
23
  readonly solidPrimitiveType = "ruledSweep";
24
24
  private _contours;
25
25
  private constructor();
26
26
  /**
27
27
  * Create a ruled sweep from an array of contours.
28
- * * the contours are CAPTURED (not cloned)
28
+ * * The contours are CAPTURED (not cloned).
29
29
  */
30
30
  static create(contours: AnyCurve[], capped: boolean): RuledSweep | undefined;
31
31
  /** Return a reference to the array of SweepContour. */
32
32
  sweepContoursRef(): SweepContour[];
33
- /** Return clones of all the sweep contours
34
- * * See also cloneContours, which returns the spatial contours without their local coordinate system definitions)
33
+ /**
34
+ * Return clones of the sweep contours.
35
+ * * See also [[cloneContours]], which returns the contours without their local coordinate system definitions.
35
36
  */
36
37
  cloneSweepContours(): SweepContour[];
37
- /** Return clones of all the contours
38
- * * See also cloneContours, which returns the contours in their local coordinate systems
38
+ /**
39
+ * Return clones of the sweep contours, each as a [[CurveCollection]].
40
+ * * See also [[cloneSweepContours]], which returns the contours with their local coordinate system definitions.
39
41
  */
40
42
  cloneContours(): CurveCollection[];
41
- /** Return a deep clone */
43
+ /** Return a deep clone. */
42
44
  clone(): RuledSweep;
43
45
  /**
44
46
  * Transform all contours in place.
@@ -50,33 +52,34 @@ export declare class RuledSweep extends SolidPrimitive {
50
52
  * * This fails if the transformation is singular.
51
53
  */
52
54
  cloneTransformed(transform: Transform): RuledSweep | undefined;
53
- /** Return a coordinate frame (right handed unit vectors)
54
- * * origin on base contour
55
+ /**
56
+ * Return a coordinate frame (right handed unit vectors)
57
+ * * origin on base contour.
55
58
  * * x, y directions from base contour.
56
- * * z direction perpendicular
59
+ * * z direction perpendicular.
57
60
  */
58
61
  getConstructiveFrame(): Transform | undefined;
59
- /** Test if `other` is an instance of a `RuledSweep` */
62
+ /** Test if `other` is an instance of a `RuledSweep`. */
60
63
  isSameGeometryClass(other: any): boolean;
61
- /** test same contour geometry and capping. */
64
+ /** Test for near equality of two RuledSweeps. */
62
65
  isAlmostEqual(other: GeometryQuery): boolean;
63
- /** dispatch to strongly typed `handler.handleRuledSweep(this)` */
66
+ /** Dispatch to strongly typed `handler.handleRuledSweep(this)`. */
64
67
  dispatchToGeometryHandler(handler: GeometryHandler): any;
65
68
  /**
66
- * Return the section curves at a fraction of the sweep
67
- * @param vFraction fractional position along the sweep direction
69
+ * Return the section curves at a fraction of the sweep.
70
+ * @param vFraction fractional position along the sweep direction.
68
71
  */
69
72
  constantVSection(vFraction: number): CurveCollection | undefined;
70
- /** Pass each contour to `extendRange` */
73
+ /** Pass each contour to `extendRange`. */
71
74
  extendRange(rangeToExtend: Range3d, transform?: Transform): void;
72
- /** Construct a CurveCollection with the same structure as collectionA and collectionB, with primitives constructed by the caller-supplied primitiveMutator function.
75
+ /**
76
+ * Construct a CurveCollection with the same structure as collectionA and collectionB, with primitives constructed
77
+ * by the caller-supplied primitiveMutator function.
73
78
  * @returns Returns undefined if there is any type mismatch between the two collections.
74
79
  */
75
80
  static mutatePartners(collectionA: CurveCollection, collectionB: CurveCollection, primitiveMutator: CurvePrimitiveMutator): CurveCollection | undefined;
76
81
  /**
77
- * Return true if this is a closed volume, as observed by
78
- * * cap flag
79
- * identical first and last contours.
82
+ * @return true if this is a closed volume.
80
83
  */
81
84
  get isClosedVolume(): boolean;
82
85
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RuledSweep.d.ts","sourceRoot":"","sources":["../../../src/solid/RuledSweep.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAA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zC,SAAgB,kBAAkB,gBAAgB;IAElD,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO;IAIP;;;OAGG;WACW,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS;IAUnF,uDAAuD;IAChD,gBAAgB,IAAI,YAAY,EAAE;IAGzC;;;OAGG;IACI,kBAAkB,IAAI,YAAY,EAAE;IAO3C;;;OAGG;IACI,aAAa,IAAI,eAAe,EAAE;IAOzC,2BAA2B;IACpB,KAAK,IAAI,UAAU;IAG1B;;;OAGG;IACI,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO;IASzD;;;OAGG;IACI,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS;IAIrE;;;;;OAKG;IACI,oBAAoB,IAAI,SAAS,GAAG,SAAS;IAKpD,wDAAwD;IACjD,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAG/C,iDAAiD;IACjC,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IAc5D,mEAAmE;IAC5D,yBAAyB,CAAC,OAAO,EAAE,eAAe,GAAG,GAAG;IAG/D;;;OAGG;IACI,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS;IAwBvE,0CAA0C;IACnC,WAAW,CAAC,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI;IAKvE;;;;OAIG;WACW,cAAc,CAC1B,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,qBAAqB,GAClG,eAAe,GAAG,SAAS;IA6C9B;;OAEG;IACH,IAAW,cAAc,IAAI,OAAO,CAGnC;CACF"}
@@ -16,19 +16,20 @@ const SolidPrimitive_1 = require("./SolidPrimitive");
16
16
  const SweepContour_1 = require("./SweepContour");
17
17
  /**
18
18
  * A ruled sweep (surface) is a collection of 2 or more contours.
19
- * * All contours must have identical number and type of geometry. (paths, loops, parity regions, lines, arcs, other curves)
19
+ * * All contours must have identical number and type of geometry. (paths, loops, parity regions, lines, arcs, other curves).
20
20
  * @public
21
21
  */
22
22
  class RuledSweep extends SolidPrimitive_1.SolidPrimitive {
23
+ /** String name for schema properties. */
24
+ solidPrimitiveType = "ruledSweep";
25
+ _contours;
23
26
  constructor(contours, capped) {
24
27
  super(capped);
25
- /** String name for schema properties */
26
- this.solidPrimitiveType = "ruledSweep";
27
28
  this._contours = contours;
28
29
  }
29
30
  /**
30
31
  * Create a ruled sweep from an array of contours.
31
- * * the contours are CAPTURED (not cloned)
32
+ * * The contours are CAPTURED (not cloned).
32
33
  */
33
34
  static create(contours, capped) {
34
35
  const sweepContours = [];
@@ -41,9 +42,12 @@ class RuledSweep extends SolidPrimitive_1.SolidPrimitive {
41
42
  return new RuledSweep(sweepContours, capped);
42
43
  }
43
44
  /** Return a reference to the array of SweepContour. */
44
- sweepContoursRef() { return this._contours; }
45
- /** Return clones of all the sweep contours
46
- * * See also cloneContours, which returns the spatial contours without their local coordinate system definitions)
45
+ sweepContoursRef() {
46
+ return this._contours;
47
+ }
48
+ /**
49
+ * Return clones of the sweep contours.
50
+ * * See also [[cloneContours]], which returns the contours without their local coordinate system definitions.
47
51
  */
48
52
  cloneSweepContours() {
49
53
  const result = [];
@@ -52,8 +56,9 @@ class RuledSweep extends SolidPrimitive_1.SolidPrimitive {
52
56
  }
53
57
  return result;
54
58
  }
55
- /** Return clones of all the contours
56
- * * See also cloneContours, which returns the contours in their local coordinate systems
59
+ /**
60
+ * Return clones of the sweep contours, each as a [[CurveCollection]].
61
+ * * See also [[cloneSweepContours]], which returns the contours with their local coordinate system definitions.
57
62
  */
58
63
  cloneContours() {
59
64
  const result = [];
@@ -62,7 +67,7 @@ class RuledSweep extends SolidPrimitive_1.SolidPrimitive {
62
67
  }
63
68
  return result;
64
69
  }
65
- /** Return a deep clone */
70
+ /** Return a deep clone. */
66
71
  clone() {
67
72
  return new RuledSweep(this.cloneSweepContours(), this.capped);
68
73
  }
@@ -87,19 +92,22 @@ class RuledSweep extends SolidPrimitive_1.SolidPrimitive {
87
92
  const result = this.clone();
88
93
  return result.tryTransformInPlace(transform) ? result : undefined;
89
94
  }
90
- /** Return a coordinate frame (right handed unit vectors)
91
- * * origin on base contour
95
+ /**
96
+ * Return a coordinate frame (right handed unit vectors)
97
+ * * origin on base contour.
92
98
  * * x, y directions from base contour.
93
- * * z direction perpendicular
99
+ * * z direction perpendicular.
94
100
  */
95
101
  getConstructiveFrame() {
96
102
  if (this._contours.length === 0)
97
103
  return undefined;
98
104
  return this._contours[0].localToWorld.cloneRigid();
99
105
  }
100
- /** Test if `other` is an instance of a `RuledSweep` */
101
- isSameGeometryClass(other) { return other instanceof RuledSweep; }
102
- /** test same contour geometry and capping. */
106
+ /** Test if `other` is an instance of a `RuledSweep`. */
107
+ isSameGeometryClass(other) {
108
+ return other instanceof RuledSweep;
109
+ }
110
+ /** Test for near equality of two RuledSweeps. */
103
111
  isAlmostEqual(other) {
104
112
  if (other instanceof RuledSweep) {
105
113
  if (this.capped !== other.capped)
@@ -114,13 +122,13 @@ class RuledSweep extends SolidPrimitive_1.SolidPrimitive {
114
122
  }
115
123
  return false;
116
124
  }
117
- /** dispatch to strongly typed `handler.handleRuledSweep(this)` */
125
+ /** Dispatch to strongly typed `handler.handleRuledSweep(this)`. */
118
126
  dispatchToGeometryHandler(handler) {
119
127
  return handler.handleRuledSweep(this);
120
128
  }
121
129
  /**
122
- * Return the section curves at a fraction of the sweep
123
- * @param vFraction fractional position along the sweep direction
130
+ * Return the section curves at a fraction of the sweep.
131
+ * @param vFraction fractional position along the sweep direction.
124
132
  */
125
133
  constantVSection(vFraction) {
126
134
  const numSection = this._contours.length;
@@ -143,12 +151,14 @@ class RuledSweep extends SolidPrimitive_1.SolidPrimitive {
143
151
  return undefined;
144
152
  });
145
153
  }
146
- /** Pass each contour to `extendRange` */
154
+ /** Pass each contour to `extendRange`. */
147
155
  extendRange(rangeToExtend, transform) {
148
156
  for (const contour of this._contours)
149
157
  contour.curves.extendRange(rangeToExtend, transform);
150
158
  }
151
- /** Construct a CurveCollection with the same structure as collectionA and collectionB, with primitives constructed by the caller-supplied primitiveMutator function.
159
+ /**
160
+ * Construct a CurveCollection with the same structure as collectionA and collectionB, with primitives constructed
161
+ * by the caller-supplied primitiveMutator function.
152
162
  * @returns Returns undefined if there is any type mismatch between the two collections.
153
163
  */
154
164
  static mutatePartners(collectionA, collectionB, primitiveMutator) {
@@ -199,9 +209,7 @@ class RuledSweep extends SolidPrimitive_1.SolidPrimitive {
199
209
  return undefined;
200
210
  }
201
211
  /**
202
- * Return true if this is a closed volume, as observed by
203
- * * cap flag
204
- * identical first and last contours.
212
+ * @return true if this is a closed volume.
205
213
  */
206
214
  get isClosedVolume() {
207
215
  const n = this._contours.length;
@@ -1 +1 @@
1
- {"version":3,"file":"RuledSweep.js","sourceRoot":"","sources":["../../../src/solid/RuledSweep.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sFAAmF;AAEnF,8DAAuE;AACvE,4DAAyD;AAEzD,0CAAuC;AAIvC,qDAAkD;AAClD,iDAA8C;AAQ9C;;;;GAIG;AACH,MAAa,UAAW,SAAQ,+BAAc;IAK5C,YAAoB,QAAwB,EAAE,MAAe;QAC3D,KAAK,CAAC,MAAM,CAAC,CAAC;QALhB,wCAAwC;QACxB,uBAAkB,GAAG,YAAY,CAAC;QAKhD,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IACD;;;OAGG;IACI,MAAM,CAAC,MAAM,CAAC,QAAoB,EAAE,MAAe;QACxD,MAAM,aAAa,GAAG,EAAE,CAAC;QACzB,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,MAAM,SAAS,GAAG,2BAAY,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;YAC7D,IAAI,SAAS,KAAK,SAAS;gB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AG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC1C,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;gBAC5B,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;gBAC5B,IAAI,MAAM,YAAY,+BAAc,IAAI,MAAM,YAAY,+BAAc,EAAE,CAAC;oBACzE,MAAM,YAAY,GAAG,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;oBACtD,IAAI,CAAC,YAAY;wBACf,OAAO,SAAS,CAAC;oBACnB,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBAC/B,CAAC;qBAAM,IAAI,MAAM,YAAY,iCAAe,IAAI,MAAM,YAAY,iCAAe,EAAE,CAAC;oBAClF,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;oBACvE,IAAI,CAAC,QAAQ;wBACX,OAAO,SAAS,CAAC;oBACnB,IAAI,QAAQ,YAAY,iCAAe;wBACrC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC7B,CAAC;YACH,CAAC;YACD,OAAO,WAAW,CAAC;QACrB,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD;;;;OAIG;IACH,IAAW,cAAc;QACvB,MAAM,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1F,CAAC;CAEF;AA1LD,gCA0LC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module Solid\n */\n\nimport { ConstructCurveBetweenCurves } from \"../curve/ConstructCurveBetweenCurves\";\nimport { AnyCurve } from \"../curve/CurveTypes\";\nimport { CurveChain, CurveCollection } from \"../curve/CurveCollection\";\nimport { CurvePrimitive } from \"../curve/CurvePrimitive\";\nimport { GeometryQuery } from \"../curve/GeometryQuery\";\nimport { Geometry } from \"../Geometry\";\nimport { GeometryHandler } from \"../geometry3d/GeometryHandler\";\nimport { Range3d } from \"../geometry3d/Range\";\nimport { Transform } from \"../geometry3d/Transform\";\nimport { SolidPrimitive } from \"./SolidPrimitive\";\nimport { SweepContour } from \"./SweepContour\";\n\n/**\n * * type for a function argument taking 2 curves and returning another curve or failing with undefined.\n * * This is used (for instance) by `RuleSweep.mutatePartners`\n * @public\n */\nexport type CurvePrimitiveMutator = (primitiveA: CurvePrimitive, primitiveB: CurvePrimitive) => CurvePrimitive | undefined;\n/**\n * A ruled sweep (surface) is a collection of 2 or more contours.\n * * All contours must have identical number and type of geometry. (paths, loops, parity regions, lines, arcs, other curves)\n * @public\n */\nexport class RuledSweep extends SolidPrimitive {\n /** String name for schema properties */\n public readonly solidPrimitiveType = \"ruledSweep\";\n\n private _contours: SweepContour[];\n private constructor(contours: SweepContour[], capped: boolean) {\n super(capped);\n this._contours = contours;\n }\n /**\n * Create a ruled sweep from an array of contours.\n * * the contours are CAPTURED (not cloned)\n */\n public static create(contours: AnyCurve[], capped: boolean): RuledSweep | undefined {\n const sweepContours = [];\n for (const contour of contours) {\n const sweepable = SweepContour.createForLinearSweep(contour);\n if (sweepable === undefined) return undefined;\n sweepContours.push(sweepable);\n }\n return new RuledSweep(sweepContours, capped);\n }\n /** Return a reference to the array of SweepContour. */\n public sweepContoursRef(): SweepContour[] { return this._contours; }\n /** Return clones of all the sweep contours\n * * See also cloneContours, which returns the spatial contours without their local coordinate system definitions)\n */\n public cloneSweepContours(): SweepContour[] {\n const result = [];\n for (const sweepable of this._contours) {\n result.push(sweepable.clone());\n }\n return result;\n }\n /** Return clones of all the contours\n * * See also cloneContours, which returns the contours in their local coordinate systems\n */\n public cloneContours(): CurveCollection[] {\n const result = [];\n for (const sweepable of this._contours) {\n result.push(sweepable.curves.clone());\n }\n return result;\n }\n /** Return a deep clone */\n public clone(): RuledSweep {\n return new RuledSweep(this.cloneSweepContours(), this.capped);\n }\n /**\n * Transform all contours in place.\n * * This fails if the transformation is singular.\n */\n public tryTransformInPlace(transform: Transform): boolean {\n if (transform.matrix.isSingular())\n return false;\n for (const contour of this._contours) {\n if (!contour.tryTransformInPlace(transform))\n return false;\n }\n return true;\n }\n /**\n * Return a transformed clone.\n * * This fails if the transformation is singular.\n */\n public cloneTransformed(transform: Transform): RuledSweep | undefined {\n const result = this.clone();\n return result.tryTransformInPlace(transform) ? result : undefined;\n }\n /** Return a coordinate frame (right handed unit vectors)\n * * origin on base contour\n * * x, y directions from base contour.\n * * z direction perpendicular\n */\n public getConstructiveFrame(): Transform | undefined {\n if (this._contours.length === 0) return undefined;\n return this._contours[0].localToWorld.cloneRigid();\n }\n /** Test if `other` is an instance of a `RuledSweep` */\n public isSameGeometryClass(other: any): boolean { return other instanceof RuledSweep; }\n /** test same contour geometry and capping. */\n public override isAlmostEqual(other: GeometryQuery): boolean {\n if (other instanceof RuledSweep) {\n if (this.capped !== other.capped) return false;\n if (this._contours.length !== other._contours.length) return false;\n for (let i = 0; i < this._contours.length; i++) {\n if (!this._contours[i].isAlmostEqual(other._contours[i]))\n return false;\n }\n return true;\n }\n return false;\n }\n /** dispatch to strongly typed `handler.handleRuledSweep(this)` */\n public dispatchToGeometryHandler(handler: GeometryHandler): any {\n return handler.handleRuledSweep(this);\n }\n /**\n * Return the section curves at a fraction of the sweep\n * @param vFraction fractional position along the sweep direction\n */\n public constantVSection(vFraction: number): CurveCollection | undefined {\n const numSection = this._contours.length;\n if (numSection < 2)\n return undefined;\n const q = vFraction * numSection;\n let section0 = 0;\n if (vFraction >= 1.0)\n section0 = numSection - 1;\n else\n section0 = Math.floor(q);\n if (section0 + 1 >= numSection)\n section0 = numSection - 2;\n const section1 = section0 + 1;\n const localFraction = Geometry.clampToStartEnd(q - section0, 0, 1);\n return RuledSweep.mutatePartners(this._contours[section0].curves, this._contours[section1].curves,\n (primitive0: CurvePrimitive, primitive1: CurvePrimitive): CurvePrimitive | undefined => {\n const newPrimitive = ConstructCurveBetweenCurves.interpolateBetween(primitive0, localFraction, primitive1);\n if (newPrimitive instanceof CurvePrimitive) return newPrimitive;\n return undefined;\n });\n }\n /** Pass each contour to `extendRange` */\n public extendRange(rangeToExtend: Range3d, transform?: Transform): void {\n for (const contour of this._contours)\n contour.curves.extendRange(rangeToExtend, transform);\n }\n\n /** Construct a CurveCollection with the same structure as collectionA and collectionB, with primitives constructed by the caller-supplied primitiveMutator function.\n * @returns Returns undefined if there is any type mismatch between the two collections.\n */\n public static mutatePartners(collectionA: CurveCollection, collectionB: CurveCollection, primitiveMutator: CurvePrimitiveMutator): CurveCollection | undefined {\n if (!collectionA.isSameGeometryClass(collectionB))\n return undefined;\n if (collectionA instanceof CurveChain && collectionB instanceof CurveChain) {\n const chainA = collectionA;\n const chainB = collectionB;\n const chainC = chainA.cloneEmptyPeer() as CurveChain;\n const childrenA = chainA.children;\n const childrenB = chainB.children;\n if (childrenA.length !== childrenB.length)\n return undefined;\n for (let i = 0; i < childrenA.length; i++) {\n const newChild = primitiveMutator(childrenA[i], childrenB[i]);\n if (!newChild)\n return undefined;\n chainC.children.push(newChild);\n }\n return chainC;\n } else if (collectionA instanceof CurveCollection && collectionB instanceof CurveCollection) {\n const collectionC = collectionA.cloneEmptyPeer();\n const childrenA = collectionA.children;\n const childrenB = collectionB.children;\n const childrenC = collectionC.children;\n if (childrenA === undefined || childrenB === undefined || childrenC === undefined || childrenA.length !== childrenB.length)\n return undefined;\n for (let i = 0; i < childrenA.length; i++) {\n const childA = childrenA[i];\n const childB = childrenB[i];\n if (childA instanceof CurvePrimitive && childB instanceof CurvePrimitive) {\n const newPrimitive = primitiveMutator(childA, childB);\n if (!newPrimitive)\n return undefined;\n childrenC.push(newPrimitive);\n } else if (childA instanceof CurveCollection && childB instanceof CurveCollection) {\n const newChild = this.mutatePartners(childA, childB, primitiveMutator);\n if (!newChild)\n return undefined;\n if (newChild instanceof CurveCollection)\n childrenC.push(newChild);\n }\n }\n return collectionC;\n }\n return undefined;\n }\n /**\n * Return true if this is a closed volume, as observed by\n * * cap flag\n * identical first and last contours.\n */\n public get isClosedVolume(): boolean {\n const n = this._contours.length;\n return n > 1 && (this.capped || this._contours[0].isAlmostEqual(this._contours[n - 1]));\n }\n\n}\n"]}
1
+ {"version":3,"file":"RuledSweep.js","sourceRoot":"","sources":["../../../src/solid/RuledSweep.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sFAAmF;AAEnF,8DAAuE;AACvE,4DAAyD;AAEzD,0CAAuC;AAIvC,qDAAkD;AAClD,iDAA8C;AAQ9C;;;;GAIG;AACH,MAAa,UAAW,SAAQ,+BAAc;IAC5C,yCAAyC;IACzB,kBAAkB,GAAG,YAAY,CAAC;IAE1C,SAAS,CAAiB;IAClC,YAAoB,QAAwB,EAAE,MAAe;QAC3D,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IACD;;;OAGG;IACI,MAAM,CAAC,MAAM,CAAC,QAAoB,EAAE,MAAe;QACxD,MAAM,aAAa,GAAG,EAAE,CAAC;QACzB,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,MAAM,SAAS,GAAG,2BAAY,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;YAC7D,IAAI,SAAS,KAAK,SAAS;gBACzB,OAAO,SAAS,CAAC;YACnB,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,IAAI,UAAU,CAA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,CAAC,CAAC,CAAC,CAAC;gBAC5B,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;gBAC5B,IAAI,MAAM,YAAY,+BAAc,IAAI,MAAM,YAAY,+BAAc,EAAE,CAAC;oBACzE,MAAM,YAAY,GAAG,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;oBACtD,IAAI,CAAC,YAAY;wBACf,OAAO,SAAS,CAAC;oBACnB,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBAC/B,CAAC;qBAAM,IAAI,MAAM,YAAY,iCAAe,IAAI,MAAM,YAAY,iCAAe,EAAE,CAAC;oBAClF,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;oBACvE,IAAI,CAAC,QAAQ;wBACX,OAAO,SAAS,CAAC;oBACnB,IAAI,QAAQ,YAAY,iCAAe;wBACrC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC7B,CAAC;YACH,CAAC;YACD,OAAO,WAAW,CAAC;QACrB,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD;;OAEG;IACH,IAAW,cAAc;QACvB,MAAM,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1F,CAAC;CACF;AAzMD,gCAyMC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module Solid\n */\n\nimport { ConstructCurveBetweenCurves } from \"../curve/ConstructCurveBetweenCurves\";\nimport { AnyCurve } from \"../curve/CurveTypes\";\nimport { CurveChain, CurveCollection } from \"../curve/CurveCollection\";\nimport { CurvePrimitive } from \"../curve/CurvePrimitive\";\nimport { GeometryQuery } from \"../curve/GeometryQuery\";\nimport { Geometry } from \"../Geometry\";\nimport { GeometryHandler } from \"../geometry3d/GeometryHandler\";\nimport { Range3d } from \"../geometry3d/Range\";\nimport { Transform } from \"../geometry3d/Transform\";\nimport { SolidPrimitive } from \"./SolidPrimitive\";\nimport { SweepContour } from \"./SweepContour\";\n\n/**\n * Type for a function argument taking 2 curves and returning another curve or failing with undefined.\n * * This is used (for instance) by `RuleSweep.mutatePartners`.\n * @public\n */\nexport type CurvePrimitiveMutator = (primitiveA: CurvePrimitive, primitiveB: CurvePrimitive) => CurvePrimitive | undefined;\n/**\n * A ruled sweep (surface) is a collection of 2 or more contours.\n * * All contours must have identical number and type of geometry. (paths, loops, parity regions, lines, arcs, other curves).\n * @public\n */\nexport class RuledSweep extends SolidPrimitive {\n /** String name for schema properties. */\n public readonly solidPrimitiveType = \"ruledSweep\";\n\n private _contours: SweepContour[];\n private constructor(contours: SweepContour[], capped: boolean) {\n super(capped);\n this._contours = contours;\n }\n /**\n * Create a ruled sweep from an array of contours.\n * * The contours are CAPTURED (not cloned).\n */\n public static create(contours: AnyCurve[], capped: boolean): RuledSweep | undefined {\n const sweepContours = [];\n for (const contour of contours) {\n const sweepable = SweepContour.createForLinearSweep(contour);\n if (sweepable === undefined)\n return undefined;\n sweepContours.push(sweepable);\n }\n return new RuledSweep(sweepContours, capped);\n }\n /** Return a reference to the array of SweepContour. */\n public sweepContoursRef(): SweepContour[] {\n return this._contours;\n }\n /**\n * Return clones of the sweep contours.\n * * See also [[cloneContours]], which returns the contours without their local coordinate system definitions.\n */\n public cloneSweepContours(): SweepContour[] {\n const result = [];\n for (const sweepable of this._contours) {\n result.push(sweepable.clone());\n }\n return result;\n }\n /**\n * Return clones of the sweep contours, each as a [[CurveCollection]].\n * * See also [[cloneSweepContours]], which returns the contours with their local coordinate system definitions.\n */\n public cloneContours(): CurveCollection[] {\n const result = [];\n for (const sweepable of this._contours) {\n result.push(sweepable.curves.clone());\n }\n return result;\n }\n /** Return a deep clone. */\n public clone(): RuledSweep {\n return new RuledSweep(this.cloneSweepContours(), this.capped);\n }\n /**\n * Transform all contours in place.\n * * This fails if the transformation is singular.\n */\n public tryTransformInPlace(transform: Transform): boolean {\n if (transform.matrix.isSingular())\n return false;\n for (const contour of this._contours) {\n if (!contour.tryTransformInPlace(transform))\n return false;\n }\n return true;\n }\n /**\n * Return a transformed clone.\n * * This fails if the transformation is singular.\n */\n public cloneTransformed(transform: Transform): RuledSweep | undefined {\n const result = this.clone();\n return result.tryTransformInPlace(transform) ? result : undefined;\n }\n /**\n * Return a coordinate frame (right handed unit vectors)\n * * origin on base contour.\n * * x, y directions from base contour.\n * * z direction perpendicular.\n */\n public getConstructiveFrame(): Transform | undefined {\n if (this._contours.length === 0)\n return undefined;\n return this._contours[0].localToWorld.cloneRigid();\n }\n /** Test if `other` is an instance of a `RuledSweep`. */\n public isSameGeometryClass(other: any): boolean {\n return other instanceof RuledSweep;\n }\n /** Test for near equality of two RuledSweeps. */\n public override isAlmostEqual(other: GeometryQuery): boolean {\n if (other instanceof RuledSweep) {\n if (this.capped !== other.capped)\n return false;\n if (this._contours.length !== other._contours.length)\n return false;\n for (let i = 0; i < this._contours.length; i++) {\n if (!this._contours[i].isAlmostEqual(other._contours[i]))\n return false;\n }\n return true;\n }\n return false;\n }\n /** Dispatch to strongly typed `handler.handleRuledSweep(this)`. */\n public dispatchToGeometryHandler(handler: GeometryHandler): any {\n return handler.handleRuledSweep(this);\n }\n /**\n * Return the section curves at a fraction of the sweep.\n * @param vFraction fractional position along the sweep direction.\n */\n public constantVSection(vFraction: number): CurveCollection | undefined {\n const numSection = this._contours.length;\n if (numSection < 2)\n return undefined;\n const q = vFraction * numSection;\n let section0 = 0;\n if (vFraction >= 1.0)\n section0 = numSection - 1;\n else\n section0 = Math.floor(q);\n if (section0 + 1 >= numSection)\n section0 = numSection - 2;\n const section1 = section0 + 1;\n const localFraction = Geometry.clampToStartEnd(q - section0, 0, 1);\n return RuledSweep.mutatePartners(\n this._contours[section0].curves,\n this._contours[section1].curves,\n (primitive0: CurvePrimitive, primitive1: CurvePrimitive): CurvePrimitive | undefined => {\n const newPrimitive = ConstructCurveBetweenCurves.interpolateBetween(primitive0, localFraction, primitive1);\n if (newPrimitive instanceof CurvePrimitive) return newPrimitive;\n return undefined;\n },\n );\n }\n /** Pass each contour to `extendRange`. */\n public extendRange(rangeToExtend: Range3d, transform?: Transform): void {\n for (const contour of this._contours)\n contour.curves.extendRange(rangeToExtend, transform);\n }\n\n /**\n * Construct a CurveCollection with the same structure as collectionA and collectionB, with primitives constructed\n * by the caller-supplied primitiveMutator function.\n * @returns Returns undefined if there is any type mismatch between the two collections.\n */\n public static mutatePartners(\n collectionA: CurveCollection, collectionB: CurveCollection, primitiveMutator: CurvePrimitiveMutator,\n ): CurveCollection | undefined {\n if (!collectionA.isSameGeometryClass(collectionB))\n return undefined;\n if (collectionA instanceof CurveChain && collectionB instanceof CurveChain) {\n const chainA = collectionA;\n const chainB = collectionB;\n const chainC = chainA.cloneEmptyPeer() as CurveChain;\n const childrenA = chainA.children;\n const childrenB = chainB.children;\n if (childrenA.length !== childrenB.length)\n return undefined;\n for (let i = 0; i < childrenA.length; i++) {\n const newChild = primitiveMutator(childrenA[i], childrenB[i]);\n if (!newChild)\n return undefined;\n chainC.children.push(newChild);\n }\n return chainC;\n } else if (collectionA instanceof CurveCollection && collectionB instanceof CurveCollection) {\n const collectionC = collectionA.cloneEmptyPeer();\n const childrenA = collectionA.children;\n const childrenB = collectionB.children;\n const childrenC = collectionC.children;\n if (childrenA === undefined || childrenB === undefined || childrenC === undefined || childrenA.length !== childrenB.length)\n return undefined;\n for (let i = 0; i < childrenA.length; i++) {\n const childA = childrenA[i];\n const childB = childrenB[i];\n if (childA instanceof CurvePrimitive && childB instanceof CurvePrimitive) {\n const newPrimitive = primitiveMutator(childA, childB);\n if (!newPrimitive)\n return undefined;\n childrenC.push(newPrimitive);\n } else if (childA instanceof CurveCollection && childB instanceof CurveCollection) {\n const newChild = this.mutatePartners(childA, childB, primitiveMutator);\n if (!newChild)\n return undefined;\n if (newChild instanceof CurveCollection)\n childrenC.push(newChild);\n }\n }\n return collectionC;\n }\n return undefined;\n }\n /**\n * @return true if this is a closed volume.\n */\n public get isClosedVolume(): boolean {\n const n = this._contours.length;\n return n > 1 && (this.capped || this._contours[0].isAlmostEqual(this._contours[n - 1]));\n }\n}\n"]}
@@ -11,8 +11,9 @@ import { RotationalSweep } from "./RotationalSweep";
11
11
  import { RuledSweep } from "./RuledSweep";
12
12
  import { Sphere } from "./Sphere";
13
13
  import { TorusPipe } from "./TorusPipe";
14
- /** Describes the concrete type of a [[SolidPrimitive]]. Each type name maps to a specific subclass and can be used for type-switching in conditional statements.
15
- *
14
+ /**
15
+ * Describes the concrete type of a [[SolidPrimitive]]. Each type name maps to a specific subclass and can be used for
16
+ * type-switching in conditional statements.
16
17
  * - "box" => [[Box]]
17
18
  * - "cone" => [[Cone]]
18
19
  * - "sphere" => [[Sphere]]
@@ -20,39 +21,39 @@ import { TorusPipe } from "./TorusPipe";
20
21
  * - "rotationalSweep" => [[RotationalSweep]]
21
22
  * - "ruledSweep" => [[RuledSweep]]
22
23
  * - "torusPipe" => [[TorusPipe]]
23
- *
24
24
  * @public
25
25
  */
26
26
  export type SolidPrimitiveType = "box" | "cone" | "sphere" | "linearSweep" | "rotationalSweep" | "ruledSweep" | "torusPipe";
27
- /** Union type of all subclasses of [[SolidPrimitive]].
27
+ /**
28
+ * Union type of all subclasses of [[SolidPrimitive]].
28
29
  * @public
29
30
  */
30
31
  export type AnySolidPrimitive = Box | Cone | Sphere | LinearSweep | RotationalSweep | RuledSweep | TorusPipe;
31
32
  /**
32
33
  * Base class for SolidPrimitive variants.
33
- *
34
34
  * * The base class holds capped flag for all derived classes.
35
35
  * @public
36
36
  */
37
37
  export declare abstract class SolidPrimitive extends GeometryQuery {
38
- /** String name for schema properties */
38
+ /** String name for schema properties. */
39
39
  readonly geometryCategory = "solid";
40
- /** String name for schema properties */
40
+ /** String name for schema properties. */
41
41
  abstract readonly solidPrimitiveType: SolidPrimitiveType;
42
- /** flag indicating whether cap region is considered closed (i.e. a planar region, rather than just a wire in space) */
42
+ /** Flag indicating whether cap region is considered closed (i.e. a planar region, rather than just a wire in space). */
43
43
  protected _capped: boolean;
44
44
  protected constructor(capped: boolean);
45
- /** Whether this is a capped solid */
45
+ /** Whether this is a capped solid. */
46
46
  get capped(): boolean;
47
47
  set capped(capped: boolean);
48
48
  /** Return a cross section at specified vFraction. */
49
49
  abstract constantVSection(_vFraction: number): CurveCollection | undefined;
50
- /** Return a Transform from the local system of the solid to world.
50
+ /**
51
+ * Return a Transform from the local system of the solid to world.
51
52
  * * The particulars of origin and orientation are specific to each SolidPrimitive type.
52
53
  */
53
54
  abstract getConstructiveFrame(): Transform | undefined;
54
55
  /**
55
- * @return true if this is a closed volume.
56
+ * Return true if this is a closed volume
56
57
  * * LinearSweep, Box, Cone only depend on capped.
57
58
  * * Sphere affected by capped and latitude sweep
58
59
  * * TorusPipe and RotationalSweep affected by capped and sweep
@@ -1 +1 @@
1
- {"version":3,"file":"SolidPrimitive.d.ts","sourceRoot":"","sources":["../../../src/solid/SolidPrimitive.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,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/GeometryQuery");
9
9
  /**
10
10
  * Base class for SolidPrimitive variants.
11
- *
12
11
  * * The base class holds capped flag for all derived classes.
13
12
  * @public
14
13
  */
15
14
  class SolidPrimitive extends GeometryQuery_1.GeometryQuery {
15
+ /** String name for schema properties. */
16
+ geometryCategory = "solid";
17
+ /** Flag indicating whether cap region is considered closed (i.e. a planar region, rather than just a wire in space). */
18
+ _capped;
16
19
  constructor(capped) {
17
20
  super();
18
- /** String name for schema properties */
19
- this.geometryCategory = "solid";
20
21
  this._capped = capped;
21
22
  }
22
- /** Whether this is a capped solid */
23
- get capped() { return this._capped; }
24
- set capped(capped) { this._capped = capped; }
23
+ /** Whether this is a capped solid. */
24
+ get capped() {
25
+ return this._capped;
26
+ }
27
+ set capped(capped) {
28
+ this._capped = capped;
29
+ }
25
30
  }
26
31
  exports.SolidPrimitive = SolidPrimitive;
27
32
  //# sourceMappingURL=SolidPrimitive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidPrimitive.js","sourceRoot":"","sources":["../../../src/solid/SolidPrimitive.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAO/F,0DAAuD;AA6BvD;;;;;GAKG;AACH,MAAsB,cAAe,SAAQ,6BAAa;IAQxD,YAAsB,MAAe;QAAI,KAAK,EAAE,CAAC;QAPjD,wCAAwC;QACxB,qBAAgB,GAAG,OAAO,CAAC;QAMO,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAAC,CAAC;IAC1E,qCAAqC;IACrC,IAAW,MAAM,KAAc,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACrD,IAAW,MAAM,CAAC,MAAe,IAAI,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;CAe9D;AA1BD,wCA0BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module Solid\n */\n\nimport { CurveCollection } from \"../curve/CurveCollection\";\nimport { GeometryQuery } from \"../curve/GeometryQuery\";\nimport { Transform } from \"../geometry3d/Transform\";\nimport { Box } from \"./Box\";\nimport { Cone } from \"./Cone\";\nimport { LinearSweep } from \"./LinearSweep\";\nimport { RotationalSweep } from \"./RotationalSweep\";\nimport { RuledSweep } from \"./RuledSweep\";\nimport { Sphere } from \"./Sphere\";\nimport { TorusPipe } from \"./TorusPipe\";\n\n/** Describes the concrete type of a [[SolidPrimitive]]. Each type name maps to a specific subclass and can be used for type-switching in conditional statements.\n *\n * - \"box\" => [[Box]]\n * - \"cone\" => [[Cone]]\n * - \"sphere\" => [[Sphere]]\n * - \"linearSweep\" => [[LinearSweep]]\n * - \"rotationalSweep\" => [[RotationalSweep]]\n * - \"ruledSweep\" => [[RuledSweep]]\n * - \"torusPipe\" => [[TorusPipe]]\n *\n * @public\n */\nexport type SolidPrimitiveType = \"box\" | \"cone\" | \"sphere\" | \"linearSweep\" | \"rotationalSweep\" | \"ruledSweep\" | \"torusPipe\";\n\n/** Union type of all subclasses of [[SolidPrimitive]].\n * @public\n */\nexport type AnySolidPrimitive = Box | Cone | Sphere | LinearSweep | RotationalSweep | RuledSweep | TorusPipe;\n\n/**\n * Base class for SolidPrimitive variants.\n *\n * * The base class holds capped flag for all derived classes.\n * @public\n */\nexport abstract class SolidPrimitive extends GeometryQuery {\n /** String name for schema properties */\n public readonly geometryCategory = \"solid\";\n /** String name for schema properties */\n public abstract readonly solidPrimitiveType: SolidPrimitiveType;\n\n /** flag indicating whether cap region is considered closed (i.e. a planar region, rather than just a wire in space) */\n protected _capped: boolean;\n protected constructor(capped: boolean) { super(); this._capped = capped; }\n /** Whether this is a capped solid */\n public get capped(): boolean { return this._capped; }\n public set capped(capped: boolean) { this._capped = capped; }\n /** Return a cross section at specified vFraction. */\n public abstract constantVSection(_vFraction: number): CurveCollection | undefined;\n /** Return a Transform from the local system of the solid to world.\n * * The particulars of origin and orientation are specific to each SolidPrimitive type.\n */\n public abstract getConstructiveFrame(): Transform | undefined;\n /**\n * @return true if this is a closed volume.\n * * LinearSweep, Box, Cone only depend on capped.\n * * Sphere affected by capped and latitude sweep\n * * TorusPipe and RotationalSweep affected by capped and sweep\n * * RuledSweep is affected by capped and match of first, last contour\n */\n public abstract get isClosedVolume(): boolean;\n}\n"]}
1
+ {"version":3,"file":"SolidPrimitive.js","sourceRoot":"","sources":["../../../src/solid/SolidPrimitive.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAO/F,0DAAuD;AA8BvD;;;;GAIG;AACH,MAAsB,cAAe,SAAQ,6BAAa;IACxD,yCAAyC;IACzB,gBAAgB,GAAG,OAAO,CAAC;IAG3C,wHAAwH;IAC9G,OAAO,CAAU;IAC3B,YAAsB,MAAe;QACnC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IACD,sCAAsC;IACtC,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,IAAW,MAAM,CAAC,MAAe;QAC/B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CAgBF;AAjCD,wCAiCC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module Solid\n */\n\nimport { CurveCollection } from \"../curve/CurveCollection\";\nimport { GeometryQuery } from \"../curve/GeometryQuery\";\nimport { Transform } from \"../geometry3d/Transform\";\nimport { Box } from \"./Box\";\nimport { Cone } from \"./Cone\";\nimport { LinearSweep } from \"./LinearSweep\";\nimport { RotationalSweep } from \"./RotationalSweep\";\nimport { RuledSweep } from \"./RuledSweep\";\nimport { Sphere } from \"./Sphere\";\nimport { TorusPipe } from \"./TorusPipe\";\n\n/**\n * Describes the concrete type of a [[SolidPrimitive]]. Each type name maps to a specific subclass and can be used for\n * type-switching in conditional statements.\n * - \"box\" => [[Box]]\n * - \"cone\" => [[Cone]]\n * - \"sphere\" => [[Sphere]]\n * - \"linearSweep\" => [[LinearSweep]]\n * - \"rotationalSweep\" => [[RotationalSweep]]\n * - \"ruledSweep\" => [[RuledSweep]]\n * - \"torusPipe\" => [[TorusPipe]]\n * @public\n */\nexport type SolidPrimitiveType = \"box\" | \"cone\" | \"sphere\" | \"linearSweep\" | \"rotationalSweep\" | \"ruledSweep\" | \"torusPipe\";\n\n/**\n * Union type of all subclasses of [[SolidPrimitive]].\n * @public\n */\nexport type AnySolidPrimitive = Box | Cone | Sphere | LinearSweep | RotationalSweep | RuledSweep | TorusPipe;\n\n/**\n * Base class for SolidPrimitive variants.\n * * The base class holds capped flag for all derived classes.\n * @public\n */\nexport abstract class SolidPrimitive extends GeometryQuery {\n /** String name for schema properties. */\n public readonly geometryCategory = \"solid\";\n /** String name for schema properties. */\n public abstract readonly solidPrimitiveType: SolidPrimitiveType;\n /** Flag indicating whether cap region is considered closed (i.e. a planar region, rather than just a wire in space). */\n protected _capped: boolean;\n protected constructor(capped: boolean) {\n super();\n this._capped = capped;\n }\n /** Whether this is a capped solid. */\n public get capped(): boolean {\n return this._capped;\n }\n public set capped(capped: boolean) {\n this._capped = capped;\n }\n /** Return a cross section at specified vFraction. */\n public abstract constantVSection(_vFraction: number): CurveCollection | undefined;\n /**\n * Return a Transform from the local system of the solid to world.\n * * The particulars of origin and orientation are specific to each SolidPrimitive type.\n */\n public abstract getConstructiveFrame(): Transform | undefined;\n /**\n * Return true if this is a closed volume\n * * LinearSweep, Box, Cone only depend on capped.\n * * Sphere affected by capped and latitude sweep\n * * TorusPipe and RotationalSweep affected by capped and sweep\n * * RuledSweep is affected by capped and match of first, last contour\n */\n public abstract get isClosedVolume(): boolean;\n}\n"]}
@@ -1,6 +1,10 @@
1
- import { CurveCollection } from "../curve/CurveCollection";
1
+ /** @packageDocumentation
2
+ * @module Solid
3
+ */
4
+ import { Arc3d } from "../curve/Arc3d";
2
5
  import { GeometryQuery } from "../curve/GeometryQuery";
3
6
  import { LineString3d } from "../curve/LineString3d";
7
+ import { Loop } from "../curve/Loop";
4
8
  import { StrokeOptions } from "../curve/StrokeOptions";
5
9
  import { AngleSweep } from "../geometry3d/AngleSweep";
6
10
  import { GeometryHandler, UVSurface } from "../geometry3d/GeometryHandler";
@@ -12,11 +16,11 @@ import { Range3d } from "../geometry3d/Range";
12
16
  import { Transform } from "../geometry3d/Transform";
13
17
  import { SolidPrimitive } from "./SolidPrimitive";
14
18
  /**
15
- * A Sphere is
16
- *
17
- * * A unit sphere (but read on ....)
18
- * * mapped by an arbitrary (possibly skewed, non-uniform scaled) transform
19
- * * hence possibly the final geometry is ellipsoidal
19
+ * A sphere mapped by an arbitrary transform.
20
+ * * Typically, the stored matrix has orthogonal columns. In this case, if two columns have equal length, the
21
+ * resulting geometry is ellipsoidal; if all three columns have equal length, the resulting geometry is a sphere.
22
+ * * Creating a Sphere without orthogonal columns is possible, but not recommended, for the resulting geometry
23
+ * lacks portability; for example, such a Sphere cannot be represented as a DGN element (see [[createDgnSphere]]).
20
24
  * @public
21
25
  */
22
26
  export declare class Sphere extends SolidPrimitive implements UVSurface {
@@ -42,22 +46,29 @@ export declare class Sphere extends SolidPrimitive implements UVSurface {
42
46
  * * Fails if the transform is singular.
43
47
  */
44
48
  cloneTransformed(transform: Transform): Sphere | undefined;
45
- /** Return a coordinate frame (right handed, unit axes)
46
- * * origin at sphere center
47
- * * equator in xy plane
48
- * * z axis perpendicular
49
+ /**
50
+ * Construct a rigid coordinate frame from the local coordinate frame.
51
+ * * The returned frame is right-handed, with perpendicular unit axes.
52
+ * * Compare to [[cloneLocalToWorld]].
49
53
  */
50
54
  getConstructiveFrame(): Transform | undefined;
51
55
  /** Return the latitude sweep as fraction of south pole to north pole. */
52
56
  get latitudeSweepFraction(): number;
53
57
  /** Create from center and radius, with optional restricted latitudes. */
54
- static createCenterRadius(center: Point3d, radius: number, latitudeSweep?: AngleSweep): Sphere;
58
+ static createCenterRadius(center: Point3d, radius: number, latitudeSweep?: AngleSweep, capped?: boolean): Sphere;
55
59
  /** Create an ellipsoid which is a unit sphere mapped to position by an (arbitrary, possibly skewed and scaled) transform. */
56
- static createEllipsoid(localToWorld: Transform, latitudeSweep: AngleSweep, capped: boolean): Sphere | undefined;
57
- /** Create a sphere from the typical parameters of the Dgn file */
58
- static createDgnSphere(center: Point3d, vectorX: Vector3d, vectorZ: Vector3d, radiusXY: number, radiusZ: number, latitudeSweep: AngleSweep, capped: boolean): Sphere | undefined;
59
- /** Create a sphere from the typical parameters of the Dgn file */
60
- static createFromAxesAndScales(center: Point3d, axes: undefined | Matrix3d, radiusX: number, radiusY: number, radiusZ: number, latitudeSweep: AngleSweep | undefined, capped: boolean): Sphere | undefined;
60
+ static createEllipsoid(localToWorld: Transform, latitudeSweep?: AngleSweep, capped?: boolean): Sphere | undefined;
61
+ /**
62
+ * Create a sphere from the typical parameters of the DGN file.
63
+ * * This method normalizes the input vectors, squares `vectorX` against `vectorZ`, and scales the radii by the vectors' original lengths.
64
+ * * These restrictions allow the sphere to be represented by an element in the DGN file.
65
+ */
66
+ static createDgnSphere(center: Point3d, vectorX: Vector3d, vectorZ: Vector3d, radiusXY: number, radiusZ: number, latitudeSweep?: AngleSweep, capped?: boolean): Sphere | undefined;
67
+ /**
68
+ * Create a sphere.
69
+ * * If `axes` is supplied, its columns are scaled by the radii to form the sphere's local frame.
70
+ */
71
+ static createFromAxesAndScales(center: Point3d, axes: undefined | Matrix3d, radiusX: number, radiusY: number, radiusZ: number, latitudeSweep?: AngleSweep, capped?: boolean): Sphere | undefined;
61
72
  /** return (copy of) sphere center */
62
73
  cloneCenter(): Point3d;
63
74
  /** return the (full length, i.e. scaled by radius) X vector from the sphere transform */
@@ -76,6 +87,7 @@ export declare class Sphere extends SolidPrimitive implements UVSurface {
76
87
  maxAxisRadius(): number;
77
88
  /**
78
89
  * Return a (clone of) the sphere's local to world transformation.
90
+ * * Compare to [[getConstructiveFrame]].
79
91
  */
80
92
  cloneLocalToWorld(): Transform;
81
93
  /** Test if `other` is a `Sphere` */
@@ -97,11 +109,16 @@ export declare class Sphere extends SolidPrimitive implements UVSurface {
97
109
  strokeConstantVSection(v: number, fixedStrokeCount?: number, options?: StrokeOptions): LineString3d;
98
110
  /** Second step of double dispatch: call `handler.handleSphere(this)` */
99
111
  dispatchToGeometryHandler(handler: GeometryHandler): any;
112
+ /**
113
+ * Return the Arc3d section at uFraction. For the sphere, this is a meridian arc.
114
+ * @param uFraction fractional position along the equator.
115
+ */
116
+ constantUSection(uFraction: number): Arc3d;
100
117
  /**
101
118
  * Return the Arc3d section at vFraction. For the sphere, this is a latitude circle.
102
119
  * @param vFraction fractional position along the sweep direction
103
120
  */
104
- constantVSection(vFraction: number): CurveCollection | undefined;
121
+ constantVSection(vFraction: number): Loop;
105
122
  /** Extend a range to contain this sphere. */
106
123
  extendRange(range: Range3d, transform?: Transform): void;
107
124
  /** Evaluate as a uv surface
@@ -1 +1 @@
1
- {"version":3,"file":"Sphere.d.ts","sourceRoot":"","sources":["../../../src/solid/Sphere.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,OAAO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