@itwin/core-geometry 5.0.0-dev.4 → 5.0.0-dev.40

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 (434) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/lib/cjs/Constant.js +17 -17
  3. package/lib/cjs/Constant.js.map +1 -1
  4. package/lib/cjs/Geometry.js +35 -35
  5. package/lib/cjs/Geometry.js.map +1 -1
  6. package/lib/cjs/bspline/BSplineCurveOps.d.ts.map +1 -1
  7. package/lib/cjs/bspline/BSplineCurveOps.js +18 -21
  8. package/lib/cjs/bspline/BSplineCurveOps.js.map +1 -1
  9. package/lib/cjs/bspline/BezierCurveBase.d.ts.map +1 -1
  10. package/lib/cjs/bspline/BezierCurveBase.js.map +1 -1
  11. package/lib/cjs/bspline/KnotVector.js +2 -2
  12. package/lib/cjs/bspline/KnotVector.js.map +1 -1
  13. package/lib/cjs/clipping/AlternatingConvexClipTree.js +2 -2
  14. package/lib/cjs/clipping/AlternatingConvexClipTree.js.map +1 -1
  15. package/lib/cjs/clipping/ClipPlane.js +1 -1
  16. package/lib/cjs/clipping/ClipPlane.js.map +1 -1
  17. package/lib/cjs/clipping/ClipUtils.js +1 -1
  18. package/lib/cjs/clipping/ClipUtils.js.map +1 -1
  19. package/lib/cjs/clipping/ClipVector.js +1 -1
  20. package/lib/cjs/clipping/ClipVector.js.map +1 -1
  21. package/lib/cjs/clipping/ConvexClipPlaneSet.js +3 -3
  22. package/lib/cjs/clipping/ConvexClipPlaneSet.js.map +1 -1
  23. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js +1 -1
  24. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  25. package/lib/cjs/curve/Arc3d.d.ts +40 -8
  26. package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
  27. package/lib/cjs/curve/Arc3d.js +80 -22
  28. package/lib/cjs/curve/Arc3d.js.map +1 -1
  29. package/lib/cjs/curve/CurveChainWithDistanceIndex.js +4 -4
  30. package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
  31. package/lib/cjs/curve/CurveCollection.d.ts +16 -2
  32. package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
  33. package/lib/cjs/curve/CurveCollection.js +33 -2
  34. package/lib/cjs/curve/CurveCollection.js.map +1 -1
  35. package/lib/cjs/curve/CurveFactory.d.ts +87 -53
  36. package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
  37. package/lib/cjs/curve/CurveFactory.js +213 -135
  38. package/lib/cjs/curve/CurveFactory.js.map +1 -1
  39. package/lib/cjs/curve/LineString3d.d.ts +12 -8
  40. package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
  41. package/lib/cjs/curve/LineString3d.js +34 -13
  42. package/lib/cjs/curve/LineString3d.js.map +1 -1
  43. package/lib/cjs/curve/Loop.d.ts +12 -6
  44. package/lib/cjs/curve/Loop.d.ts.map +1 -1
  45. package/lib/cjs/curve/Loop.js +12 -6
  46. package/lib/cjs/curve/Loop.js.map +1 -1
  47. package/lib/cjs/curve/Query/CylindricalRange.d.ts +8 -6
  48. package/lib/cjs/curve/Query/CylindricalRange.d.ts.map +1 -1
  49. package/lib/cjs/curve/Query/CylindricalRange.js +13 -9
  50. package/lib/cjs/curve/Query/CylindricalRange.js.map +1 -1
  51. package/lib/cjs/curve/RegionOpsClassificationSweeps.js +1 -1
  52. package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -1
  53. package/lib/cjs/curve/StrokeOptions.d.ts +4 -4
  54. package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
  55. package/lib/cjs/curve/StrokeOptions.js +1 -1
  56. package/lib/cjs/curve/StrokeOptions.js.map +1 -1
  57. package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js +5 -5
  58. package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
  59. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js +13 -13
  60. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
  61. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js +5 -5
  62. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
  63. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.d.ts.map +1 -1
  64. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js +29 -23
  65. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
  66. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js +4 -4
  67. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  68. package/lib/cjs/curve/spiral/IntegratedSpiral3d.js +2 -2
  69. package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  70. package/lib/cjs/geometry3d/Angle.js +16 -16
  71. package/lib/cjs/geometry3d/Angle.js.map +1 -1
  72. package/lib/cjs/geometry3d/AngleSweep.d.ts +1 -1
  73. package/lib/cjs/geometry3d/AngleSweep.d.ts.map +1 -1
  74. package/lib/cjs/geometry3d/AngleSweep.js +1 -1
  75. package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
  76. package/lib/cjs/geometry3d/BarycentricTriangle.d.ts +14 -8
  77. package/lib/cjs/geometry3d/BarycentricTriangle.d.ts.map +1 -1
  78. package/lib/cjs/geometry3d/BarycentricTriangle.js +17 -8
  79. package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
  80. package/lib/cjs/geometry3d/FrameBuilder.js +4 -4
  81. package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
  82. package/lib/cjs/geometry3d/GrowableFloat64Array.d.ts +2 -0
  83. package/lib/cjs/geometry3d/GrowableFloat64Array.d.ts.map +1 -1
  84. package/lib/cjs/geometry3d/GrowableFloat64Array.js +4 -0
  85. package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -1
  86. package/lib/cjs/geometry3d/GrowableXYZArray.d.ts +32 -10
  87. package/lib/cjs/geometry3d/GrowableXYZArray.d.ts.map +1 -1
  88. package/lib/cjs/geometry3d/GrowableXYZArray.js +54 -16
  89. package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -1
  90. package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts +13 -2
  91. package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
  92. package/lib/cjs/geometry3d/IndexedXYZCollection.js +24 -10
  93. package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
  94. package/lib/cjs/geometry3d/Matrix3d.d.ts +11 -8
  95. package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
  96. package/lib/cjs/geometry3d/Matrix3d.js +36 -34
  97. package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
  98. package/lib/cjs/geometry3d/OrderedRotationAngles.js +2 -2
  99. package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -1
  100. package/lib/cjs/geometry3d/Point3dArrayCarrier.js +1 -1
  101. package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
  102. package/lib/cjs/geometry3d/Point3dVector3d.d.ts +6 -6
  103. package/lib/cjs/geometry3d/Point3dVector3d.js +6 -6
  104. package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
  105. package/lib/cjs/geometry3d/PointHelpers.js +5 -5
  106. package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
  107. package/lib/cjs/geometry3d/PolygonOps.d.ts +12 -6
  108. package/lib/cjs/geometry3d/PolygonOps.d.ts.map +1 -1
  109. package/lib/cjs/geometry3d/PolygonOps.js +117 -70
  110. package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
  111. package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js +3 -3
  112. package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
  113. package/lib/cjs/geometry3d/PolylineOps.d.ts +9 -5
  114. package/lib/cjs/geometry3d/PolylineOps.d.ts.map +1 -1
  115. package/lib/cjs/geometry3d/PolylineOps.js +9 -5
  116. package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
  117. package/lib/cjs/geometry3d/Range.js +4 -4
  118. package/lib/cjs/geometry3d/Range.js.map +1 -1
  119. package/lib/cjs/geometry4d/MomentData.d.ts +72 -73
  120. package/lib/cjs/geometry4d/MomentData.d.ts.map +1 -1
  121. package/lib/cjs/geometry4d/MomentData.js +62 -64
  122. package/lib/cjs/geometry4d/MomentData.js.map +1 -1
  123. package/lib/cjs/numerics/ClusterableArray.js +13 -13
  124. package/lib/cjs/numerics/ClusterableArray.js.map +1 -1
  125. package/lib/cjs/numerics/PascalCoefficients.js +1 -1
  126. package/lib/cjs/numerics/PascalCoefficients.js.map +1 -1
  127. package/lib/cjs/numerics/PolarData.js +1 -1
  128. package/lib/cjs/numerics/PolarData.js.map +1 -1
  129. package/lib/cjs/numerics/Polynomials.d.ts +5 -5
  130. package/lib/cjs/numerics/Polynomials.js +32 -32
  131. package/lib/cjs/numerics/Polynomials.js.map +1 -1
  132. package/lib/cjs/numerics/Quadrature.js +20 -20
  133. package/lib/cjs/numerics/Quadrature.js.map +1 -1
  134. package/lib/cjs/polyface/AuxData.d.ts +2 -2
  135. package/lib/cjs/polyface/AuxData.d.ts.map +1 -1
  136. package/lib/cjs/polyface/AuxData.js +11 -3
  137. package/lib/cjs/polyface/AuxData.js.map +1 -1
  138. package/lib/cjs/polyface/BoxTopology.js +67 -67
  139. package/lib/cjs/polyface/BoxTopology.js.map +1 -1
  140. package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js +2 -2
  141. package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
  142. package/lib/cjs/polyface/IndexedEdgeMatcher.d.ts +27 -20
  143. package/lib/cjs/polyface/IndexedEdgeMatcher.d.ts.map +1 -1
  144. package/lib/cjs/polyface/IndexedEdgeMatcher.js +56 -30
  145. package/lib/cjs/polyface/IndexedEdgeMatcher.js.map +1 -1
  146. package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts +2 -1
  147. package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
  148. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js +2 -1
  149. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  150. package/lib/cjs/polyface/Polyface.d.ts +3 -5
  151. package/lib/cjs/polyface/Polyface.d.ts.map +1 -1
  152. package/lib/cjs/polyface/Polyface.js +6 -13
  153. package/lib/cjs/polyface/Polyface.js.map +1 -1
  154. package/lib/cjs/polyface/PolyfaceBuilder.d.ts +14 -7
  155. package/lib/cjs/polyface/PolyfaceBuilder.d.ts.map +1 -1
  156. package/lib/cjs/polyface/PolyfaceBuilder.js +59 -64
  157. package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
  158. package/lib/cjs/polyface/PolyfaceData.d.ts +13 -3
  159. package/lib/cjs/polyface/PolyfaceData.d.ts.map +1 -1
  160. package/lib/cjs/polyface/PolyfaceData.js +26 -9
  161. package/lib/cjs/polyface/PolyfaceData.js.map +1 -1
  162. package/lib/cjs/polyface/PolyfaceQuery.d.ts +2 -2
  163. package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
  164. package/lib/cjs/polyface/PolyfaceQuery.js +11 -10
  165. package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
  166. package/lib/cjs/polyface/multiclip/RangeSearch.js +5 -5
  167. package/lib/cjs/polyface/multiclip/RangeSearch.js.map +1 -1
  168. package/lib/cjs/serialization/BGFBReader.js +22 -22
  169. package/lib/cjs/serialization/BGFBReader.js.map +1 -1
  170. package/lib/cjs/serialization/GeometrySamples.d.ts +5 -5
  171. package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -1
  172. package/lib/cjs/serialization/GeometrySamples.js +112 -112
  173. package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
  174. package/lib/cjs/solid/Box.d.ts +9 -3
  175. package/lib/cjs/solid/Box.d.ts.map +1 -1
  176. package/lib/cjs/solid/Box.js +10 -5
  177. package/lib/cjs/solid/Box.js.map +1 -1
  178. package/lib/cjs/solid/Cone.d.ts +3 -2
  179. package/lib/cjs/solid/Cone.d.ts.map +1 -1
  180. package/lib/cjs/solid/Cone.js +3 -3
  181. package/lib/cjs/solid/Cone.js.map +1 -1
  182. package/lib/cjs/solid/LinearSweep.d.ts +9 -3
  183. package/lib/cjs/solid/LinearSweep.d.ts.map +1 -1
  184. package/lib/cjs/solid/LinearSweep.js +9 -4
  185. package/lib/cjs/solid/LinearSweep.js.map +1 -1
  186. package/lib/cjs/solid/RotationalSweep.d.ts +15 -4
  187. package/lib/cjs/solid/RotationalSweep.d.ts.map +1 -1
  188. package/lib/cjs/solid/RotationalSweep.js +20 -7
  189. package/lib/cjs/solid/RotationalSweep.js.map +1 -1
  190. package/lib/cjs/solid/RuledSweep.d.ts +35 -26
  191. package/lib/cjs/solid/RuledSweep.d.ts.map +1 -1
  192. package/lib/cjs/solid/RuledSweep.js +41 -28
  193. package/lib/cjs/solid/RuledSweep.js.map +1 -1
  194. package/lib/cjs/solid/SolidPrimitive.d.ts +12 -11
  195. package/lib/cjs/solid/SolidPrimitive.d.ts.map +1 -1
  196. package/lib/cjs/solid/SolidPrimitive.js +8 -5
  197. package/lib/cjs/solid/SolidPrimitive.js.map +1 -1
  198. package/lib/cjs/solid/Sphere.d.ts +17 -7
  199. package/lib/cjs/solid/Sphere.d.ts.map +1 -1
  200. package/lib/cjs/solid/Sphere.js +22 -16
  201. package/lib/cjs/solid/Sphere.js.map +1 -1
  202. package/lib/cjs/solid/SweepContour.d.ts +25 -16
  203. package/lib/cjs/solid/SweepContour.d.ts.map +1 -1
  204. package/lib/cjs/solid/SweepContour.js +25 -16
  205. package/lib/cjs/solid/SweepContour.js.map +1 -1
  206. package/lib/cjs/solid/TorusPipe.d.ts +8 -2
  207. package/lib/cjs/solid/TorusPipe.d.ts.map +1 -1
  208. package/lib/cjs/solid/TorusPipe.js +9 -5
  209. package/lib/cjs/solid/TorusPipe.js.map +1 -1
  210. package/lib/cjs/topology/ChainMerge.js +4 -4
  211. package/lib/cjs/topology/ChainMerge.js.map +1 -1
  212. package/lib/cjs/topology/Graph.js +5 -5
  213. package/lib/cjs/topology/Graph.js.map +1 -1
  214. package/lib/cjs/topology/HalfEdgeGraphSpineContext.js +2 -2
  215. package/lib/cjs/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  216. package/lib/cjs/topology/Triangulation.js +11 -11
  217. package/lib/cjs/topology/Triangulation.js.map +1 -1
  218. package/lib/esm/Constant.js +17 -17
  219. package/lib/esm/Constant.js.map +1 -1
  220. package/lib/esm/Geometry.js +35 -35
  221. package/lib/esm/Geometry.js.map +1 -1
  222. package/lib/esm/bspline/BSplineCurveOps.d.ts.map +1 -1
  223. package/lib/esm/bspline/BSplineCurveOps.js +18 -21
  224. package/lib/esm/bspline/BSplineCurveOps.js.map +1 -1
  225. package/lib/esm/bspline/BezierCurveBase.d.ts.map +1 -1
  226. package/lib/esm/bspline/BezierCurveBase.js.map +1 -1
  227. package/lib/esm/bspline/KnotVector.js +2 -2
  228. package/lib/esm/bspline/KnotVector.js.map +1 -1
  229. package/lib/esm/clipping/AlternatingConvexClipTree.js +2 -2
  230. package/lib/esm/clipping/AlternatingConvexClipTree.js.map +1 -1
  231. package/lib/esm/clipping/ClipPlane.js +1 -1
  232. package/lib/esm/clipping/ClipPlane.js.map +1 -1
  233. package/lib/esm/clipping/ClipUtils.js +1 -1
  234. package/lib/esm/clipping/ClipUtils.js.map +1 -1
  235. package/lib/esm/clipping/ClipVector.js +1 -1
  236. package/lib/esm/clipping/ClipVector.js.map +1 -1
  237. package/lib/esm/clipping/ConvexClipPlaneSet.js +3 -3
  238. package/lib/esm/clipping/ConvexClipPlaneSet.js.map +1 -1
  239. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js +1 -1
  240. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  241. package/lib/esm/curve/Arc3d.d.ts +40 -8
  242. package/lib/esm/curve/Arc3d.d.ts.map +1 -1
  243. package/lib/esm/curve/Arc3d.js +80 -22
  244. package/lib/esm/curve/Arc3d.js.map +1 -1
  245. package/lib/esm/curve/CurveChainWithDistanceIndex.js +4 -4
  246. package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
  247. package/lib/esm/curve/CurveCollection.d.ts +16 -2
  248. package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
  249. package/lib/esm/curve/CurveCollection.js +33 -2
  250. package/lib/esm/curve/CurveCollection.js.map +1 -1
  251. package/lib/esm/curve/CurveFactory.d.ts +87 -53
  252. package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
  253. package/lib/esm/curve/CurveFactory.js +213 -135
  254. package/lib/esm/curve/CurveFactory.js.map +1 -1
  255. package/lib/esm/curve/LineString3d.d.ts +12 -8
  256. package/lib/esm/curve/LineString3d.d.ts.map +1 -1
  257. package/lib/esm/curve/LineString3d.js +34 -13
  258. package/lib/esm/curve/LineString3d.js.map +1 -1
  259. package/lib/esm/curve/Loop.d.ts +12 -6
  260. package/lib/esm/curve/Loop.d.ts.map +1 -1
  261. package/lib/esm/curve/Loop.js +12 -6
  262. package/lib/esm/curve/Loop.js.map +1 -1
  263. package/lib/esm/curve/Query/CylindricalRange.d.ts +8 -6
  264. package/lib/esm/curve/Query/CylindricalRange.d.ts.map +1 -1
  265. package/lib/esm/curve/Query/CylindricalRange.js +13 -9
  266. package/lib/esm/curve/Query/CylindricalRange.js.map +1 -1
  267. package/lib/esm/curve/RegionOpsClassificationSweeps.js +1 -1
  268. package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -1
  269. package/lib/esm/curve/StrokeOptions.d.ts +4 -4
  270. package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
  271. package/lib/esm/curve/StrokeOptions.js +1 -1
  272. package/lib/esm/curve/StrokeOptions.js.map +1 -1
  273. package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js +5 -5
  274. package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
  275. package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js +13 -13
  276. package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
  277. package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js +5 -5
  278. package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
  279. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.d.ts.map +1 -1
  280. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js +29 -23
  281. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
  282. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js +4 -4
  283. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  284. package/lib/esm/curve/spiral/IntegratedSpiral3d.js +2 -2
  285. package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  286. package/lib/esm/geometry3d/Angle.js +16 -16
  287. package/lib/esm/geometry3d/Angle.js.map +1 -1
  288. package/lib/esm/geometry3d/AngleSweep.d.ts +1 -1
  289. package/lib/esm/geometry3d/AngleSweep.d.ts.map +1 -1
  290. package/lib/esm/geometry3d/AngleSweep.js +1 -1
  291. package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
  292. package/lib/esm/geometry3d/BarycentricTriangle.d.ts +14 -8
  293. package/lib/esm/geometry3d/BarycentricTriangle.d.ts.map +1 -1
  294. package/lib/esm/geometry3d/BarycentricTriangle.js +17 -8
  295. package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
  296. package/lib/esm/geometry3d/FrameBuilder.js +4 -4
  297. package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
  298. package/lib/esm/geometry3d/GrowableFloat64Array.d.ts +2 -0
  299. package/lib/esm/geometry3d/GrowableFloat64Array.d.ts.map +1 -1
  300. package/lib/esm/geometry3d/GrowableFloat64Array.js +4 -0
  301. package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -1
  302. package/lib/esm/geometry3d/GrowableXYZArray.d.ts +32 -10
  303. package/lib/esm/geometry3d/GrowableXYZArray.d.ts.map +1 -1
  304. package/lib/esm/geometry3d/GrowableXYZArray.js +54 -16
  305. package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -1
  306. package/lib/esm/geometry3d/IndexedXYZCollection.d.ts +13 -2
  307. package/lib/esm/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
  308. package/lib/esm/geometry3d/IndexedXYZCollection.js +24 -10
  309. package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
  310. package/lib/esm/geometry3d/Matrix3d.d.ts +11 -8
  311. package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
  312. package/lib/esm/geometry3d/Matrix3d.js +36 -34
  313. package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
  314. package/lib/esm/geometry3d/OrderedRotationAngles.js +2 -2
  315. package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -1
  316. package/lib/esm/geometry3d/Point3dArrayCarrier.js +1 -1
  317. package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
  318. package/lib/esm/geometry3d/Point3dVector3d.d.ts +6 -6
  319. package/lib/esm/geometry3d/Point3dVector3d.js +6 -6
  320. package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
  321. package/lib/esm/geometry3d/PointHelpers.js +5 -5
  322. package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
  323. package/lib/esm/geometry3d/PolygonOps.d.ts +12 -6
  324. package/lib/esm/geometry3d/PolygonOps.d.ts.map +1 -1
  325. package/lib/esm/geometry3d/PolygonOps.js +117 -70
  326. package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
  327. package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js +3 -3
  328. package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
  329. package/lib/esm/geometry3d/PolylineOps.d.ts +9 -5
  330. package/lib/esm/geometry3d/PolylineOps.d.ts.map +1 -1
  331. package/lib/esm/geometry3d/PolylineOps.js +9 -5
  332. package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
  333. package/lib/esm/geometry3d/Range.js +4 -4
  334. package/lib/esm/geometry3d/Range.js.map +1 -1
  335. package/lib/esm/geometry4d/MomentData.d.ts +72 -73
  336. package/lib/esm/geometry4d/MomentData.d.ts.map +1 -1
  337. package/lib/esm/geometry4d/MomentData.js +62 -64
  338. package/lib/esm/geometry4d/MomentData.js.map +1 -1
  339. package/lib/esm/numerics/ClusterableArray.js +13 -13
  340. package/lib/esm/numerics/ClusterableArray.js.map +1 -1
  341. package/lib/esm/numerics/PascalCoefficients.js +1 -1
  342. package/lib/esm/numerics/PascalCoefficients.js.map +1 -1
  343. package/lib/esm/numerics/PolarData.js +1 -1
  344. package/lib/esm/numerics/PolarData.js.map +1 -1
  345. package/lib/esm/numerics/Polynomials.d.ts +5 -5
  346. package/lib/esm/numerics/Polynomials.js +32 -32
  347. package/lib/esm/numerics/Polynomials.js.map +1 -1
  348. package/lib/esm/numerics/Quadrature.js +20 -20
  349. package/lib/esm/numerics/Quadrature.js.map +1 -1
  350. package/lib/esm/polyface/AuxData.d.ts +2 -2
  351. package/lib/esm/polyface/AuxData.d.ts.map +1 -1
  352. package/lib/esm/polyface/AuxData.js +11 -3
  353. package/lib/esm/polyface/AuxData.js.map +1 -1
  354. package/lib/esm/polyface/BoxTopology.js +67 -67
  355. package/lib/esm/polyface/BoxTopology.js.map +1 -1
  356. package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js +2 -2
  357. package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
  358. package/lib/esm/polyface/IndexedEdgeMatcher.d.ts +27 -20
  359. package/lib/esm/polyface/IndexedEdgeMatcher.d.ts.map +1 -1
  360. package/lib/esm/polyface/IndexedEdgeMatcher.js +56 -30
  361. package/lib/esm/polyface/IndexedEdgeMatcher.js.map +1 -1
  362. package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts +2 -1
  363. package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
  364. package/lib/esm/polyface/IndexedPolyfaceVisitor.js +2 -1
  365. package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  366. package/lib/esm/polyface/Polyface.d.ts +3 -5
  367. package/lib/esm/polyface/Polyface.d.ts.map +1 -1
  368. package/lib/esm/polyface/Polyface.js +6 -13
  369. package/lib/esm/polyface/Polyface.js.map +1 -1
  370. package/lib/esm/polyface/PolyfaceBuilder.d.ts +14 -7
  371. package/lib/esm/polyface/PolyfaceBuilder.d.ts.map +1 -1
  372. package/lib/esm/polyface/PolyfaceBuilder.js +60 -65
  373. package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
  374. package/lib/esm/polyface/PolyfaceData.d.ts +13 -3
  375. package/lib/esm/polyface/PolyfaceData.d.ts.map +1 -1
  376. package/lib/esm/polyface/PolyfaceData.js +26 -9
  377. package/lib/esm/polyface/PolyfaceData.js.map +1 -1
  378. package/lib/esm/polyface/PolyfaceQuery.d.ts +2 -2
  379. package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
  380. package/lib/esm/polyface/PolyfaceQuery.js +11 -10
  381. package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
  382. package/lib/esm/polyface/multiclip/RangeSearch.js +5 -5
  383. package/lib/esm/polyface/multiclip/RangeSearch.js.map +1 -1
  384. package/lib/esm/serialization/BGFBReader.js +22 -22
  385. package/lib/esm/serialization/BGFBReader.js.map +1 -1
  386. package/lib/esm/serialization/GeometrySamples.d.ts +5 -5
  387. package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -1
  388. package/lib/esm/serialization/GeometrySamples.js +112 -112
  389. package/lib/esm/serialization/GeometrySamples.js.map +1 -1
  390. package/lib/esm/solid/Box.d.ts +9 -3
  391. package/lib/esm/solid/Box.d.ts.map +1 -1
  392. package/lib/esm/solid/Box.js +10 -5
  393. package/lib/esm/solid/Box.js.map +1 -1
  394. package/lib/esm/solid/Cone.d.ts +3 -2
  395. package/lib/esm/solid/Cone.d.ts.map +1 -1
  396. package/lib/esm/solid/Cone.js +3 -3
  397. package/lib/esm/solid/Cone.js.map +1 -1
  398. package/lib/esm/solid/LinearSweep.d.ts +9 -3
  399. package/lib/esm/solid/LinearSweep.d.ts.map +1 -1
  400. package/lib/esm/solid/LinearSweep.js +9 -4
  401. package/lib/esm/solid/LinearSweep.js.map +1 -1
  402. package/lib/esm/solid/RotationalSweep.d.ts +15 -4
  403. package/lib/esm/solid/RotationalSweep.d.ts.map +1 -1
  404. package/lib/esm/solid/RotationalSweep.js +20 -7
  405. package/lib/esm/solid/RotationalSweep.js.map +1 -1
  406. package/lib/esm/solid/RuledSweep.d.ts +35 -26
  407. package/lib/esm/solid/RuledSweep.d.ts.map +1 -1
  408. package/lib/esm/solid/RuledSweep.js +41 -28
  409. package/lib/esm/solid/RuledSweep.js.map +1 -1
  410. package/lib/esm/solid/SolidPrimitive.d.ts +12 -11
  411. package/lib/esm/solid/SolidPrimitive.d.ts.map +1 -1
  412. package/lib/esm/solid/SolidPrimitive.js +8 -5
  413. package/lib/esm/solid/SolidPrimitive.js.map +1 -1
  414. package/lib/esm/solid/Sphere.d.ts +17 -7
  415. package/lib/esm/solid/Sphere.d.ts.map +1 -1
  416. package/lib/esm/solid/Sphere.js +22 -16
  417. package/lib/esm/solid/Sphere.js.map +1 -1
  418. package/lib/esm/solid/SweepContour.d.ts +25 -16
  419. package/lib/esm/solid/SweepContour.d.ts.map +1 -1
  420. package/lib/esm/solid/SweepContour.js +25 -16
  421. package/lib/esm/solid/SweepContour.js.map +1 -1
  422. package/lib/esm/solid/TorusPipe.d.ts +8 -2
  423. package/lib/esm/solid/TorusPipe.d.ts.map +1 -1
  424. package/lib/esm/solid/TorusPipe.js +9 -5
  425. package/lib/esm/solid/TorusPipe.js.map +1 -1
  426. package/lib/esm/topology/ChainMerge.js +4 -4
  427. package/lib/esm/topology/ChainMerge.js.map +1 -1
  428. package/lib/esm/topology/Graph.js +5 -5
  429. package/lib/esm/topology/Graph.js.map +1 -1
  430. package/lib/esm/topology/HalfEdgeGraphSpineContext.js +2 -2
  431. package/lib/esm/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  432. package/lib/esm/topology/Triangulation.js +11 -11
  433. package/lib/esm/topology/Triangulation.js.map +1 -1
  434. package/package.json +5 -5
@@ -10,135 +10,137 @@ import { Matrix4d } from "./Matrix4d";
10
10
  * * origin = local origin used as moments are summed.
11
11
  * * sums = array of summed moments.
12
12
  * * The [i,j] entry of the sums is a summed or integrated moment for product of axis i and j.
13
- * * axes 0,1,2 are x,y,z
13
+ * * axes 0,1,2 are x,y,z.
14
14
  * * e.g. entry [0,1] is summed product xy
15
15
  * * axis 3 is "w", which is 1 in sums.
16
- * * e.g. entry 03 is summed x
17
- * * In this level,
16
+ * * e.g. entry 03 is summed x.
17
+ * * In this level:
18
18
  * * the `absoluteQuantity` member is undefined.
19
19
  * * the `localToWorldMap` and `radiiOfGyration` are created by have undefined contents.
20
- * * Second level: after a call to inertiaProductsToPrincipalAxes, the `localToWorldMap`, `absoluteQuantity` and `radiiOfGyration` are filled in.
20
+ * * Second level: after a call to inertiaProductsToPrincipalAxes, the `localToWorldMap`, `absoluteQuantity` and
21
+ * `radiiOfGyration` are filled in.
21
22
  * @public
22
23
  */
23
24
  export declare class MomentData {
24
25
  /** Origin used for sums. */
25
26
  origin: Point3d;
26
- /** flag to request deferred origin setup. */
27
+ /** Flag to request deferred origin setup. */
27
28
  needOrigin: boolean;
28
- /** Moment sums.
29
+ /**
30
+ * Moment sums.
29
31
  * * Set to zero at initialization and if requested later.
30
32
  * * Accumulated during data entry phase.
31
33
  */
32
34
  sums: Matrix4d;
33
- /** the mapping between principal and world system.
35
+ /**
36
+ * The mapping between principal and world system.
34
37
  * * This set up with its inverse already constructed.
35
38
  */
36
39
  localToWorldMap: Transform;
37
- /** Return the lower-right (3,3) entry in the sums.
38
- * * This is the quantity (i.e. length, area, or volume) summed
40
+ private static _vectorA?;
41
+ private static _vectorB?;
42
+ private static _vectorC?;
43
+ private _point0;
44
+ private _point1;
45
+ /**
46
+ * Return the lower-right (3,3) entry in the sums.
47
+ * * This is the quantity (i.e. length, area, or volume) summed.
39
48
  */
40
49
  get quantitySum(): number;
41
- /** Return a scale factor to make these sums match the target orientation sign.
50
+ /**
51
+ * Return a scale factor to make these sums match the target orientation sign.
42
52
  * * 1.0 if `this.quantitySum` has the same sign as `targetSign`.
43
53
  * * -1.0 if `this.quantitySum` has the opposite sign from `targetSign`
44
54
  */
45
55
  signFactor(targetSign: number): number;
46
- /**
47
- * If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag.
48
- *
49
- */
56
+ /** If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag. */
50
57
  setOriginIfNeeded(origin: Point3d): void;
51
- /**
52
- * If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag.
53
- *
54
- */
58
+ /** If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag. */
55
59
  setOriginFromGrowableXYZArrayIfNeeded(points: GrowableXYZArray): void;
56
- /**
57
- * If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag.
58
- *
59
- */
60
+ /** If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag. */
60
61
  setOriginXYZIfNeeded(x: number, y: number, z: number): void;
61
- /** radii of gyration (square roots of principal second moments)
62
- */
62
+ /** Radii of gyration (square roots of principal second moments). */
63
63
  radiusOfGyration: Vector3d;
64
- /** principal quantity (e.g. length, area, or volume). This is undefined in raw moments, and becomes defined by
65
- *
64
+ /**
65
+ * Principal quantity (e.g. length, area, or volume). This is undefined in raw moments, and becomes defined by
66
+ * inertiaProductsToPrincipalAxes.
66
67
  */
67
68
  absoluteQuantity?: number;
69
+ /** Constructor. */
68
70
  private constructor();
69
- /** Create moments with optional origin.
70
- * * origin and needOrigin are quirky.
71
+ /**
72
+ * Create moments with optional origin.
73
+ * * Origin and needOrigin are quirky.
71
74
  * * (undefined, true) sets up to use first incoming point as origin.
72
- * * (origin) sets up to use that durable origin, set needsOrigin flag false
73
- * * (origin, true) the "true" is meaningless
74
- * * (undefined, false) makes 000 the durable origin
75
+ * * (origin) sets up to use that durable origin, set needsOrigin flag false.
76
+ * * (origin, true) the "true" is meaningless.
77
+ * * (undefined, false) makes 000 the durable origin.
75
78
  */
76
79
  static create(origin?: Point3d | undefined, needOrigin?: boolean): MomentData;
77
80
  /**
78
- * Return the formal tensor of integrated values `[yy+zz,xy,xz][yx,xx+zz,yz][zx,xy,xx+yy]`
79
- * @param products matrix of (integrated) `[xx,xy,xz][yx,yy,yz][zx,xy,zz]`
81
+ * Return the formal tensor of integrated values `[yy+zz,xy,xz][yx,xx+zz,yz][zx,xy,xx+yy]`.
82
+ * @param products matrix of (integrated) `[xx,xy,xz][yx,yy,yz][zx,xy,zz]`.
80
83
  */
81
84
  static momentTensorFromInertiaProducts(products: Matrix3d): Matrix3d;
82
85
  /** Sort the columns of the matrix for increasing moments. */
83
86
  static sortColumnsForIncreasingMoments(axes: Matrix3d, moments: Vector3d): void;
84
87
  /**
85
88
  * Return the principal moment data for an array of points.
86
- * @param points array of points
89
+ * @param points array of points.
87
90
  */
88
91
  static pointsToPrincipalAxes(points: Point3d[]): MomentData | undefined;
89
92
  /**
90
- * Compute principal axes from inertial products
91
- * * The radii of gyration are sorted smallest to largest
92
- * * Hence x axis is long direction
93
- * * Hence planar data generates large moment as Z
93
+ * Compute principal axes from inertial products.
94
+ * * The radii of gyration are sorted smallest to largest.
95
+ * * Hence x axis is long direction.
96
+ * * Hence planar data generates large moment as Z.
94
97
  * @param origin The origin used for the inertia products.
95
- * @param inertiaProducts The inertia products -- sums or integrals of [xx,xy,xz,xw; yx,yy, yz,yw; zx,zy,zz,zw; wx,wy,wz,w]
98
+ * @param inertiaProducts The inertia products: sums or integrals of [xx,xy,xz,xw; yx,yy, yz,yw; zx,zy,zz,zw; wx,wy,wz,w].
96
99
  */
97
100
  static inertiaProductsToPrincipalAxes(origin: XYZ, inertiaProducts: Matrix4d): MomentData | undefined;
98
101
  /**
99
- * Test for match among selected members as they exist after `inertiaProductsToPrincipalAxes`
100
- * * The members considered are
101
- * * origin of local to world map (i.e. centroid)
102
- * * radius of gyration
102
+ * Test for match among selected members as they exist after `inertiaProductsToPrincipalAxes`.
103
+ * * The members considered are:
104
+ * * origin of local to world map (i.e. centroid),
105
+ * * radius of gyration,
103
106
  * * axes of localToWorldMap.
104
107
  * * Axis direction tests allow these quirks:
105
108
  * * opposite orientation is considered matched.
106
109
  * * Full xyz symmetry: If x,y,z radii are matched, axes are not tested.
107
- * * Symmetry in xy plane: If x and y radii are matched, the x and y axes area allowed to spin freely. Only Z direction is tested.
110
+ * * Symmetry in xy plane: If x and y radii are matched, the x and y axes area allowed to spin freely. Only Z direction
111
+ * is tested.
108
112
  * * If either or both are undefined, returns false.
109
- * @param dataA first set of moments
110
- * @param dataB second set of moments
113
+ * @param dataA first set of moments.
114
+ * @param dataB second set of moments.
111
115
  */
112
116
  static areEquivalentPrincipalAxes(dataA: MomentData | undefined, dataB: MomentData | undefined): boolean;
113
117
  /** Clear the MomentData sums to zero, and establish a new origin. */
114
118
  clearSums(origin?: Point3d): void;
115
119
  /** Accumulate products-of-components for given points. */
116
120
  accumulatePointMomentsFromOrigin(points: Point3d[]): void;
117
- /** revise the accumulated sums to be "around the centroid" */
121
+ /** Revise the accumulated sums to be "around the centroid". */
118
122
  shiftOriginAndSumsToCentroidOfSums(): boolean;
119
- /** revise the accumulated sums
123
+ /**
124
+ * Revise the accumulated sums.
120
125
  * * add ax,ay,ax to the origin coordinates.
121
126
  * * apply the negative translation to the sums.
122
127
  */
123
128
  shiftOriginAndSumsByXYZ(ax: number, ay: number, az: number): void;
124
- /** revise the accumulated sums so they are based at a specified origin. */
129
+ /** Revise the accumulated sums so they are based at a specified origin. */
125
130
  shiftOriginAndSumsToNewOrigin(newOrigin: XYAndZ): void;
126
- private static _vectorA?;
127
- private static _vectorB?;
128
- private static _vectorC?;
129
- /** compute moments of a triangle from the origin to the given line.
131
+ /**
132
+ * Compute moments of a triangle from the origin to the given line.
130
133
  * Accumulate them to this.sums.
131
134
  * * If `pointA` is undefined, use `this.origin` as pointA.
132
135
  * * If `this.needOrigin` is set, pointB is used
133
136
  */
134
137
  accumulateTriangleMomentsXY(pointA: XAndY | undefined, pointB: XAndY, pointC: XAndY): void;
135
- /** add scaled outer product of (4d, unit weight) point to this.sums */
138
+ /** Add scaled outer product of (4d, unit weight) point to this.sums. */
136
139
  accumulateScaledOuterProduct(point: XYAndZ, scaleFactor: number): void;
137
140
  /** Accumulate wire moment integral from pointA to pointB */
138
141
  accumulateLineMomentsXYZ(pointA: Point3d, pointB: Point3d): void;
139
- private _point0;
140
- private _point1;
141
- /** compute moments of triangles from a base point to the given linestring.
142
+ /**
143
+ * Compute moments of triangles from a base point to the given linestring.
142
144
  * Accumulate them to this.sums.
143
145
  * * If `pointA` is undefined, use `this.origin` as pointA.
144
146
  * * If `this.needOrigin` is set, the first point of the array is captured as local origin for subsequent sums.
@@ -147,34 +149,31 @@ export declare class MomentData {
147
149
  accumulateTriangleToLineStringMomentsXY(sweepBase: XAndY | undefined, points: GrowableXYZArray): void;
148
150
  /**
149
151
  * * Assemble XX, YY, XY products into a full matrix form [xx,xy,0,0; xy,yy,0,0;0,0,0,0;0,0,0,1].
150
- * * Sandwich this between transforms with columns [vectorU, vectorV, 0000, origin]. (Column weights 0001) (only xy parts of vectors)
152
+ * * Sandwich this between transforms with columns [vectorU, vectorV, 0000, origin]. (Column weights 0001) (only xy
153
+ * parts of vectors).
151
154
  * * scale by detJ for the xy-only determinant of the vectors.
152
155
  * @param productXX
153
156
  * @param productXY
154
157
  * @param productYY
155
- * @param area Area in caller's system
156
- * @param origin Caller's origin
157
- * @param vectorU Caller's U axis (not necessarily unit)
158
- * @param vectorV Caller's V axis (not necessarily unit)
158
+ * @param area Area in caller's system.
159
+ * @param origin Caller's origin.
160
+ * @param vectorU Caller's U axis (not necessarily unit).
161
+ * @param vectorV Caller's V axis (not necessarily unit).
159
162
  */
160
163
  accumulateXYProductsInCentroidalFrame(productXX: number, productXY: number, productYY: number, area: number, origin: XAndY, vectorU: XAndY, vectorV: XAndY): void;
161
164
  /**
162
165
  * Accumulate sums from other moments.
163
- * * scale by given scaleFactor (e.g. sign to correct orientation)
164
- * * pull the origin from `other` if `this` needs an origin.
165
- * *
166
+ * * Scale by given scaleFactor (e.g. sign to correct orientation).
167
+ * * Pull the origin from `other` if `this` needs an origin.
166
168
  */
167
169
  accumulateProducts(other: MomentData, scale: number): void;
168
170
  /**
169
- * Accumulate sums from Matrix4d and origin.
170
- * * scale by given scaleFactor (e.g. sign to correct orientation)
171
- * * trap the origin if `this` needs an origin.
172
- * *
173
- */
174
- accumulateProductsFromOrigin(origin: Point3d, products: Matrix4d, scale: number): void;
175
- /**
176
- * Convert to a json data object with:
171
+ * Accumulate sums from Matrix4d and origin.
172
+ * * Scale by given scaleFactor (e.g. sign to correct orientation).
173
+ * * Trap the origin if `this` needs an origin.
177
174
  */
175
+ accumulateProductsFromOrigin(origin: Point3d, products: Matrix4d, scale: number): void;
176
+ /** Convert to a json data object. */
178
177
  toJSON(): any;
179
178
  }
180
179
  //# sourceMappingURL=MomentData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MomentData.d.ts","sourceRoot":"","sources":["../../../src/geometry4d/MomentData.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAA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IA8B1F,wEAAwE;IACjE,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAOtE,4DAA4D;IACrD,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO;IAmBhE;;;;;;OAMG;IACI,uCAAuC,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,MAAM,EAAE,gBAAgB;IAWrG;;;;;;;;;;;;OAYG;IACI,qCAAqC,CAC1C,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EACvD,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK;IAmB7D;;;;OAIG;IACI,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM;IAO1D;;;;OAIG;IACI,4BAA4B,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM;IAMtF,qCAAqC;IAC9B,MAAM,IAAI,GAAG;CAQrB"}
@@ -5,8 +5,8 @@
5
5
  /** @packageDocumentation
6
6
  * @module Numerics
7
7
  */
8
- // import { Point2d } from "./Geometry2d";
9
8
  /* eslint-disable @typescript-eslint/naming-convention */
9
+ // cspell:word ABAT
10
10
  import { Geometry } from "../Geometry";
11
11
  import { Matrix3d } from "../geometry3d/Matrix3d";
12
12
  import { Point3d, Vector3d } from "../geometry3d/Point3dVector3d";
@@ -19,58 +19,55 @@ import { Point4d } from "./Point4d";
19
19
  * * origin = local origin used as moments are summed.
20
20
  * * sums = array of summed moments.
21
21
  * * The [i,j] entry of the sums is a summed or integrated moment for product of axis i and j.
22
- * * axes 0,1,2 are x,y,z
22
+ * * axes 0,1,2 are x,y,z.
23
23
  * * e.g. entry [0,1] is summed product xy
24
24
  * * axis 3 is "w", which is 1 in sums.
25
- * * e.g. entry 03 is summed x
26
- * * In this level,
25
+ * * e.g. entry 03 is summed x.
26
+ * * In this level:
27
27
  * * the `absoluteQuantity` member is undefined.
28
28
  * * the `localToWorldMap` and `radiiOfGyration` are created by have undefined contents.
29
- * * Second level: after a call to inertiaProductsToPrincipalAxes, the `localToWorldMap`, `absoluteQuantity` and `radiiOfGyration` are filled in.
29
+ * * Second level: after a call to inertiaProductsToPrincipalAxes, the `localToWorldMap`, `absoluteQuantity` and
30
+ * `radiiOfGyration` are filled in.
30
31
  * @public
31
32
  */
32
33
  export class MomentData {
33
- /** Return the lower-right (3,3) entry in the sums.
34
- * * This is the quantity (i.e. length, area, or volume) summed
34
+ /**
35
+ * Return the lower-right (3,3) entry in the sums.
36
+ * * This is the quantity (i.e. length, area, or volume) summed.
35
37
  */
36
- get quantitySum() { return this.sums.atIJ(3, 3); }
37
- /** Return a scale factor to make these sums match the target orientation sign.
38
+ get quantitySum() {
39
+ return this.sums.atIJ(3, 3);
40
+ }
41
+ /**
42
+ * Return a scale factor to make these sums match the target orientation sign.
38
43
  * * 1.0 if `this.quantitySum` has the same sign as `targetSign`.
39
44
  * * -1.0 if `this.quantitySum` has the opposite sign from `targetSign`
40
45
  */
41
46
  signFactor(targetSign) {
42
47
  return targetSign * this.quantitySum > 0 ? 1.0 : -1.0;
43
48
  }
44
- /**
45
- * If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag.
46
- *
47
- */
49
+ /** If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag. */
48
50
  setOriginIfNeeded(origin) {
49
51
  if (this.needOrigin) {
50
52
  this.origin.setFromPoint3d(origin);
51
53
  this.needOrigin = false;
52
54
  }
53
55
  }
54
- /**
55
- * If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag.
56
- *
57
- */
56
+ /** If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag. */
58
57
  setOriginFromGrowableXYZArrayIfNeeded(points) {
59
58
  if (this.needOrigin && points.length > 0) {
60
59
  points.getPoint3dAtCheckedPointIndex(0, this.origin);
61
60
  this.needOrigin = false;
62
61
  }
63
62
  }
64
- /**
65
- * If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag.
66
- *
67
- */
63
+ /** If `this.needOrigin` flag is set, copy `origin` to `this.origin` and clear the flag. */
68
64
  setOriginXYZIfNeeded(x, y, z) {
69
65
  if (this.needOrigin) {
70
66
  this.origin.set(x, y, z);
71
67
  this.needOrigin = false;
72
68
  }
73
69
  }
70
+ /** Constructor. */
74
71
  constructor() {
75
72
  this._point0 = Point3d.create();
76
73
  this._point1 = Point3d.create();
@@ -82,12 +79,13 @@ export class MomentData {
82
79
  this.absoluteQuantity = 0.1; // so optimizer sees its type
83
80
  this.absoluteQuantity = undefined;
84
81
  }
85
- /** Create moments with optional origin.
86
- * * origin and needOrigin are quirky.
82
+ /**
83
+ * Create moments with optional origin.
84
+ * * Origin and needOrigin are quirky.
87
85
  * * (undefined, true) sets up to use first incoming point as origin.
88
- * * (origin) sets up to use that durable origin, set needsOrigin flag false
89
- * * (origin, true) the "true" is meaningless
90
- * * (undefined, false) makes 000 the durable origin
86
+ * * (origin) sets up to use that durable origin, set needsOrigin flag false.
87
+ * * (origin, true) the "true" is meaningless.
88
+ * * (undefined, false) makes 000 the durable origin.
91
89
  */
92
90
  static create(origin, needOrigin = false) {
93
91
  const data = new MomentData();
@@ -99,8 +97,8 @@ export class MomentData {
99
97
  return data;
100
98
  }
101
99
  /**
102
- * Return the formal tensor of integrated values `[yy+zz,xy,xz][yx,xx+zz,yz][zx,xy,xx+yy]`
103
- * @param products matrix of (integrated) `[xx,xy,xz][yx,yy,yz][zx,xy,zz]`
100
+ * Return the formal tensor of integrated values `[yy+zz,xy,xz][yx,xx+zz,yz][zx,xy,xx+yy]`.
101
+ * @param products matrix of (integrated) `[xx,xy,xz][yx,yy,yz][zx,xy,zz]`.
104
102
  */
105
103
  static momentTensorFromInertiaProducts(products) {
106
104
  const rr = products.sumDiagonal();
@@ -133,7 +131,7 @@ export class MomentData {
133
131
  }
134
132
  /**
135
133
  * Return the principal moment data for an array of points.
136
- * @param points array of points
134
+ * @param points array of points.
137
135
  */
138
136
  static pointsToPrincipalAxes(points) {
139
137
  const moments = new MomentData();
@@ -144,12 +142,12 @@ export class MomentData {
144
142
  return this.inertiaProductsToPrincipalAxes(moments.origin, moments.sums);
145
143
  }
146
144
  /**
147
- * Compute principal axes from inertial products
148
- * * The radii of gyration are sorted smallest to largest
149
- * * Hence x axis is long direction
150
- * * Hence planar data generates large moment as Z
145
+ * Compute principal axes from inertial products.
146
+ * * The radii of gyration are sorted smallest to largest.
147
+ * * Hence x axis is long direction.
148
+ * * Hence planar data generates large moment as Z.
151
149
  * @param origin The origin used for the inertia products.
152
- * @param inertiaProducts The inertia products -- sums or integrals of [xx,xy,xz,xw; yx,yy, yz,yw; zx,zy,zz,zw; wx,wy,wz,w]
150
+ * @param inertiaProducts The inertia products: sums or integrals of [xx,xy,xz,xw; yx,yy, yz,yw; zx,zy,zz,zw; wx,wy,wz,w].
153
151
  */
154
152
  static inertiaProductsToPrincipalAxes(origin, inertiaProducts) {
155
153
  const moments = new MomentData();
@@ -177,18 +175,19 @@ export class MomentData {
177
175
  return moments;
178
176
  }
179
177
  /**
180
- * Test for match among selected members as they exist after `inertiaProductsToPrincipalAxes`
181
- * * The members considered are
182
- * * origin of local to world map (i.e. centroid)
183
- * * radius of gyration
178
+ * Test for match among selected members as they exist after `inertiaProductsToPrincipalAxes`.
179
+ * * The members considered are:
180
+ * * origin of local to world map (i.e. centroid),
181
+ * * radius of gyration,
184
182
  * * axes of localToWorldMap.
185
183
  * * Axis direction tests allow these quirks:
186
184
  * * opposite orientation is considered matched.
187
185
  * * Full xyz symmetry: If x,y,z radii are matched, axes are not tested.
188
- * * Symmetry in xy plane: If x and y radii are matched, the x and y axes area allowed to spin freely. Only Z direction is tested.
186
+ * * Symmetry in xy plane: If x and y radii are matched, the x and y axes area allowed to spin freely. Only Z direction
187
+ * is tested.
189
188
  * * If either or both are undefined, returns false.
190
- * @param dataA first set of moments
191
- * @param dataB second set of moments
189
+ * @param dataA first set of moments.
190
+ * @param dataB second set of moments.
192
191
  */
193
192
  static areEquivalentPrincipalAxes(dataA, dataB) {
194
193
  if (dataA && dataB
@@ -236,7 +235,7 @@ export class MomentData {
236
235
  this.sums.addMomentsInPlace(p.x - this.origin.x, p.y - this.origin.y, p.z - this.origin.z, 1.0);
237
236
  }
238
237
  }
239
- /** revise the accumulated sums to be "around the centroid" */
238
+ /** Revise the accumulated sums to be "around the centroid". */
240
239
  shiftOriginAndSumsToCentroidOfSums() {
241
240
  const xyz = this.sums.columnW().realPoint();
242
241
  if (xyz) {
@@ -245,7 +244,8 @@ export class MomentData {
245
244
  }
246
245
  return false;
247
246
  }
248
- /** revise the accumulated sums
247
+ /**
248
+ * Revise the accumulated sums.
249
249
  * * add ax,ay,ax to the origin coordinates.
250
250
  * * apply the negative translation to the sums.
251
251
  */
@@ -253,11 +253,12 @@ export class MomentData {
253
253
  this.origin.addXYZInPlace(ax, ay, az);
254
254
  this.sums.multiplyTranslationSandwichInPlace(-ax, -ay, -az);
255
255
  }
256
- /** revise the accumulated sums so they are based at a specified origin. */
256
+ /** Revise the accumulated sums so they are based at a specified origin. */
257
257
  shiftOriginAndSumsToNewOrigin(newOrigin) {
258
258
  this.shiftOriginAndSumsByXYZ(newOrigin.x - this.origin.x, newOrigin.y - this.origin.y, newOrigin.z - this.origin.z);
259
259
  }
260
- /** compute moments of a triangle from the origin to the given line.
260
+ /**
261
+ * Compute moments of a triangle from the origin to the given line.
261
262
  * Accumulate them to this.sums.
262
263
  * * If `pointA` is undefined, use `this.origin` as pointA.
263
264
  * * If `this.needOrigin` is set, pointB is used
@@ -289,7 +290,7 @@ export class MomentData {
289
290
  this.sums.addScaledOuterProductInPlace(vectorC, vectorC, r1_12);
290
291
  }
291
292
  }
292
- /** add scaled outer product of (4d, unit weight) point to this.sums */
293
+ /** Add scaled outer product of (4d, unit weight) point to this.sums. */
293
294
  accumulateScaledOuterProduct(point, scaleFactor) {
294
295
  this.setOriginXYZIfNeeded(point.x, point.y, 0.0);
295
296
  const vectorA = MomentData._vectorA = Point4d.create(point.x - this.origin.x, point.y - this.origin.y, point.z - this.origin.z, 1.0, MomentData._vectorA);
@@ -311,7 +312,8 @@ export class MomentData {
311
312
  this.sums.addScaledOuterProductInPlace(vectorB, vectorA, r1_6);
312
313
  this.sums.addScaledOuterProductInPlace(vectorB, vectorB, r1_3);
313
314
  }
314
- /** compute moments of triangles from a base point to the given linestring.
315
+ /**
316
+ * Compute moments of triangles from a base point to the given linestring.
315
317
  * Accumulate them to this.sums.
316
318
  * * If `pointA` is undefined, use `this.origin` as pointA.
317
319
  * * If `this.needOrigin` is set, the first point of the array is captured as local origin for subsequent sums.
@@ -328,18 +330,18 @@ export class MomentData {
328
330
  }
329
331
  }
330
332
  }
331
- // cspell:word ABAT
332
333
  /**
333
334
  * * Assemble XX, YY, XY products into a full matrix form [xx,xy,0,0; xy,yy,0,0;0,0,0,0;0,0,0,1].
334
- * * Sandwich this between transforms with columns [vectorU, vectorV, 0000, origin]. (Column weights 0001) (only xy parts of vectors)
335
+ * * Sandwich this between transforms with columns [vectorU, vectorV, 0000, origin]. (Column weights 0001) (only xy
336
+ * parts of vectors).
335
337
  * * scale by detJ for the xy-only determinant of the vectors.
336
338
  * @param productXX
337
339
  * @param productXY
338
340
  * @param productYY
339
- * @param area Area in caller's system
340
- * @param origin Caller's origin
341
- * @param vectorU Caller's U axis (not necessarily unit)
342
- * @param vectorV Caller's V axis (not necessarily unit)
341
+ * @param area Area in caller's system.
342
+ * @param origin Caller's origin.
343
+ * @param vectorU Caller's U axis (not necessarily unit).
344
+ * @param vectorV Caller's V axis (not necessarily unit).
343
345
  */
344
346
  accumulateXYProductsInCentroidalFrame(productXX, productXY, productYY, area, origin, vectorU, vectorV) {
345
347
  const centroidalProducts = Matrix4d.createRowValues(productXX, productXY, 0, 0, productXY, productYY, 0, 0, 0, 0, 0, 0, 0, 0, 0, area);
@@ -351,27 +353,23 @@ export class MomentData {
351
353
  }
352
354
  /**
353
355
  * Accumulate sums from other moments.
354
- * * scale by given scaleFactor (e.g. sign to correct orientation)
355
- * * pull the origin from `other` if `this` needs an origin.
356
- * *
356
+ * * Scale by given scaleFactor (e.g. sign to correct orientation).
357
+ * * Pull the origin from `other` if `this` needs an origin.
357
358
  */
358
359
  accumulateProducts(other, scale) {
359
360
  this.setOriginIfNeeded(other.origin);
360
361
  this.sums.addTranslationSandwichInPlace(other.sums, this.origin.x - other.origin.x, this.origin.y - other.origin.y, this.origin.z - other.origin.z, scale);
361
362
  }
362
363
  /**
363
- * Accumulate sums from Matrix4d and origin.
364
- * * scale by given scaleFactor (e.g. sign to correct orientation)
365
- * * trap the origin if `this` needs an origin.
366
- * *
367
- */
364
+ * Accumulate sums from Matrix4d and origin.
365
+ * * Scale by given scaleFactor (e.g. sign to correct orientation).
366
+ * * Trap the origin if `this` needs an origin.
367
+ */
368
368
  accumulateProductsFromOrigin(origin, products, scale) {
369
369
  this.setOriginIfNeeded(origin);
370
370
  this.sums.addTranslationSandwichInPlace(products, this.origin.x - origin.x, this.origin.y - origin.y, this.origin.z - origin.z, scale);
371
371
  }
372
- /**
373
- * Convert to a json data object with:
374
- */
372
+ /** Convert to a json data object. */
375
373
  toJSON() {
376
374
  return {
377
375
  origin: this.origin,