@itwin/core-geometry 5.0.0-dev.3 → 5.0.0-dev.32

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 (664) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/lib/cjs/Constant.js.map +1 -1
  3. package/lib/cjs/Geometry.js.map +1 -1
  4. package/lib/cjs/bspline/AkimaCurve3d.js.map +1 -1
  5. package/lib/cjs/bspline/BSpline1dNd.js.map +1 -1
  6. package/lib/cjs/bspline/BSplineCurve.js.map +1 -1
  7. package/lib/cjs/bspline/BSplineCurve3dH.js.map +1 -1
  8. package/lib/cjs/bspline/BSplineCurveOps.d.ts.map +1 -1
  9. package/lib/cjs/bspline/BSplineCurveOps.js +18 -21
  10. package/lib/cjs/bspline/BSplineCurveOps.js.map +1 -1
  11. package/lib/cjs/bspline/BSplineSurface.js.map +1 -1
  12. package/lib/cjs/bspline/Bezier1dNd.js.map +1 -1
  13. package/lib/cjs/bspline/BezierCurve3d.js.map +1 -1
  14. package/lib/cjs/bspline/BezierCurve3dH.js.map +1 -1
  15. package/lib/cjs/bspline/BezierCurveBase.d.ts.map +1 -1
  16. package/lib/cjs/bspline/BezierCurveBase.js.map +1 -1
  17. package/lib/cjs/bspline/InterpolationCurve3d.js.map +1 -1
  18. package/lib/cjs/bspline/KnotVector.js.map +1 -1
  19. package/lib/cjs/bspline/SurfaceLocationDetail.js.map +1 -1
  20. package/lib/cjs/clipping/AlternatingConvexClipTree.js.map +1 -1
  21. package/lib/cjs/clipping/BooleanClipFactory.js.map +1 -1
  22. package/lib/cjs/clipping/BooleanClipNode.js.map +1 -1
  23. package/lib/cjs/clipping/ClipPlane.js.map +1 -1
  24. package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
  25. package/lib/cjs/clipping/ClipUtils.js.map +1 -1
  26. package/lib/cjs/clipping/ClipVector.js.map +1 -1
  27. package/lib/cjs/clipping/ConvexClipPlaneSet.js.map +1 -1
  28. package/lib/cjs/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  29. package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
  30. package/lib/cjs/core-geometry.js.map +1 -1
  31. package/lib/cjs/curve/Arc3d.d.ts +40 -8
  32. package/lib/cjs/curve/Arc3d.d.ts.map +1 -1
  33. package/lib/cjs/curve/Arc3d.js +66 -8
  34. package/lib/cjs/curve/Arc3d.js.map +1 -1
  35. package/lib/cjs/curve/ConstructCurveBetweenCurves.js.map +1 -1
  36. package/lib/cjs/curve/CoordinateXYZ.js.map +1 -1
  37. package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
  38. package/lib/cjs/curve/CurveCollection.d.ts +16 -2
  39. package/lib/cjs/curve/CurveCollection.d.ts.map +1 -1
  40. package/lib/cjs/curve/CurveCollection.js +33 -2
  41. package/lib/cjs/curve/CurveCollection.js.map +1 -1
  42. package/lib/cjs/curve/CurveCurve.js.map +1 -1
  43. package/lib/cjs/curve/CurveExtendMode.js.map +1 -1
  44. package/lib/cjs/curve/CurveFactory.d.ts +87 -53
  45. package/lib/cjs/curve/CurveFactory.d.ts.map +1 -1
  46. package/lib/cjs/curve/CurveFactory.js +213 -135
  47. package/lib/cjs/curve/CurveFactory.js.map +1 -1
  48. package/lib/cjs/curve/CurveLocationDetail.js.map +1 -1
  49. package/lib/cjs/curve/CurveOps.js.map +1 -1
  50. package/lib/cjs/curve/CurvePrimitive.js.map +1 -1
  51. package/lib/cjs/curve/CurveProcessor.js.map +1 -1
  52. package/lib/cjs/curve/CurveTypes.js.map +1 -1
  53. package/lib/cjs/curve/CurveWireMomentsXYZ.js.map +1 -1
  54. package/lib/cjs/curve/GeometryQuery.js.map +1 -1
  55. package/lib/cjs/curve/LineSegment3d.js.map +1 -1
  56. package/lib/cjs/curve/LineString3d.d.ts +12 -8
  57. package/lib/cjs/curve/LineString3d.d.ts.map +1 -1
  58. package/lib/cjs/curve/LineString3d.js +29 -8
  59. package/lib/cjs/curve/LineString3d.js.map +1 -1
  60. package/lib/cjs/curve/Loop.d.ts +12 -6
  61. package/lib/cjs/curve/Loop.d.ts.map +1 -1
  62. package/lib/cjs/curve/Loop.js +12 -6
  63. package/lib/cjs/curve/Loop.js.map +1 -1
  64. package/lib/cjs/curve/OffsetOptions.js.map +1 -1
  65. package/lib/cjs/curve/ParityRegion.js.map +1 -1
  66. package/lib/cjs/curve/Path.js.map +1 -1
  67. package/lib/cjs/curve/PointString3d.js.map +1 -1
  68. package/lib/cjs/curve/ProxyCurve.js.map +1 -1
  69. package/lib/cjs/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
  70. package/lib/cjs/curve/Query/CurveSplitContext.js.map +1 -1
  71. package/lib/cjs/curve/Query/CylindricalRange.d.ts +8 -6
  72. package/lib/cjs/curve/Query/CylindricalRange.d.ts.map +1 -1
  73. package/lib/cjs/curve/Query/CylindricalRange.js +13 -9
  74. package/lib/cjs/curve/Query/CylindricalRange.js.map +1 -1
  75. package/lib/cjs/curve/Query/InOutTests.js.map +1 -1
  76. package/lib/cjs/curve/Query/PlanarSubdivision.js.map +1 -1
  77. package/lib/cjs/curve/Query/StrokeCountChain.js.map +1 -1
  78. package/lib/cjs/curve/Query/StrokeCountMap.js.map +1 -1
  79. package/lib/cjs/curve/RegionMomentsXY.js.map +1 -1
  80. package/lib/cjs/curve/RegionOps.js.map +1 -1
  81. package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -1
  82. package/lib/cjs/curve/StrokeOptions.d.ts +4 -4
  83. package/lib/cjs/curve/StrokeOptions.d.ts.map +1 -1
  84. package/lib/cjs/curve/StrokeOptions.js +1 -1
  85. package/lib/cjs/curve/StrokeOptions.js.map +1 -1
  86. package/lib/cjs/curve/UnionRegion.js.map +1 -1
  87. package/lib/cjs/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
  88. package/lib/cjs/curve/internalContexts/ChainCollectorContext.js.map +1 -1
  89. package/lib/cjs/curve/internalContexts/CloneCurvesContext.js.map +1 -1
  90. package/lib/cjs/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -1
  91. package/lib/cjs/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
  92. package/lib/cjs/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
  93. package/lib/cjs/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
  94. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
  95. package/lib/cjs/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
  96. package/lib/cjs/curve/internalContexts/CurveLengthContext.js.map +1 -1
  97. package/lib/cjs/curve/internalContexts/CurveOffsetXYHandler.js.map +1 -1
  98. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.d.ts.map +1 -1
  99. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js +24 -18
  100. package/lib/cjs/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
  101. package/lib/cjs/curve/internalContexts/GapSearchContext.js.map +1 -1
  102. package/lib/cjs/curve/internalContexts/MultiChainCollector.js.map +1 -1
  103. package/lib/cjs/curve/internalContexts/NewtonRtoRStrokeHandler.js.map +1 -1
  104. package/lib/cjs/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  105. package/lib/cjs/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  106. package/lib/cjs/curve/internalContexts/SumLengthsContext.js.map +1 -1
  107. package/lib/cjs/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
  108. package/lib/cjs/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
  109. package/lib/cjs/curve/spiral/ClothoidSeries.js.map +1 -1
  110. package/lib/cjs/curve/spiral/CubicEvaluator.js.map +1 -1
  111. package/lib/cjs/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
  112. package/lib/cjs/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
  113. package/lib/cjs/curve/spiral/DirectSpiral3d.js.map +1 -1
  114. package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  115. package/lib/cjs/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
  116. package/lib/cjs/curve/spiral/NormalizedTransition.js.map +1 -1
  117. package/lib/cjs/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
  118. package/lib/cjs/curve/spiral/TransitionConditionalProperties.js.map +1 -1
  119. package/lib/cjs/curve/spiral/TransitionSpiral3d.js.map +1 -1
  120. package/lib/cjs/curve/spiral/XYCurveEvaluator.js.map +1 -1
  121. package/lib/cjs/geometry3d/Angle.js.map +1 -1
  122. package/lib/cjs/geometry3d/AngleSweep.d.ts +1 -1
  123. package/lib/cjs/geometry3d/AngleSweep.d.ts.map +1 -1
  124. package/lib/cjs/geometry3d/AngleSweep.js +1 -1
  125. package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
  126. package/lib/cjs/geometry3d/BarycentricTriangle.d.ts +14 -8
  127. package/lib/cjs/geometry3d/BarycentricTriangle.d.ts.map +1 -1
  128. package/lib/cjs/geometry3d/BarycentricTriangle.js +17 -8
  129. package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
  130. package/lib/cjs/geometry3d/BilinearPatch.js.map +1 -1
  131. package/lib/cjs/geometry3d/CoincidentGeometryOps.js.map +1 -1
  132. package/lib/cjs/geometry3d/Ellipsoid.js.map +1 -1
  133. package/lib/cjs/geometry3d/FrameBuilder.js +4 -4
  134. package/lib/cjs/geometry3d/FrameBuilder.js.map +1 -1
  135. package/lib/cjs/geometry3d/FrustumAnimation.js.map +1 -1
  136. package/lib/cjs/geometry3d/GeometryHandler.js.map +1 -1
  137. package/lib/cjs/geometry3d/GrowableBlockedArray.js.map +1 -1
  138. package/lib/cjs/geometry3d/GrowableFloat64Array.d.ts +2 -0
  139. package/lib/cjs/geometry3d/GrowableFloat64Array.d.ts.map +1 -1
  140. package/lib/cjs/geometry3d/GrowableFloat64Array.js +4 -0
  141. package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -1
  142. package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -1
  143. package/lib/cjs/geometry3d/GrowableXYZArray.d.ts +32 -10
  144. package/lib/cjs/geometry3d/GrowableXYZArray.d.ts.map +1 -1
  145. package/lib/cjs/geometry3d/GrowableXYZArray.js +54 -16
  146. package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -1
  147. package/lib/cjs/geometry3d/IndexedCollectionInterval.js.map +1 -1
  148. package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
  149. package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts +13 -2
  150. package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
  151. package/lib/cjs/geometry3d/IndexedXYZCollection.js +24 -10
  152. package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
  153. package/lib/cjs/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
  154. package/lib/cjs/geometry3d/Matrix3d.d.ts +11 -8
  155. package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
  156. package/lib/cjs/geometry3d/Matrix3d.js +28 -26
  157. package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
  158. package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -1
  159. package/lib/cjs/geometry3d/Plane3d.js.map +1 -1
  160. package/lib/cjs/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
  161. package/lib/cjs/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  162. package/lib/cjs/geometry3d/Point2dArrayCarrier.js.map +1 -1
  163. package/lib/cjs/geometry3d/Point2dVector2d.js.map +1 -1
  164. package/lib/cjs/geometry3d/Point3dArrayCarrier.js +1 -1
  165. package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
  166. package/lib/cjs/geometry3d/Point3dVector3d.d.ts +6 -6
  167. package/lib/cjs/geometry3d/Point3dVector3d.js +6 -6
  168. package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
  169. package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
  170. package/lib/cjs/geometry3d/PointStreaming.js.map +1 -1
  171. package/lib/cjs/geometry3d/PolygonOps.d.ts +12 -6
  172. package/lib/cjs/geometry3d/PolygonOps.d.ts.map +1 -1
  173. package/lib/cjs/geometry3d/PolygonOps.js +94 -47
  174. package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
  175. package/lib/cjs/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
  176. package/lib/cjs/geometry3d/PolylineOps.d.ts +9 -5
  177. package/lib/cjs/geometry3d/PolylineOps.d.ts.map +1 -1
  178. package/lib/cjs/geometry3d/PolylineOps.js +9 -5
  179. package/lib/cjs/geometry3d/PolylineOps.js.map +1 -1
  180. package/lib/cjs/geometry3d/Range.js.map +1 -1
  181. package/lib/cjs/geometry3d/Ray2d.js.map +1 -1
  182. package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
  183. package/lib/cjs/geometry3d/ReusableObjectCache.js.map +1 -1
  184. package/lib/cjs/geometry3d/Segment1d.js.map +1 -1
  185. package/lib/cjs/geometry3d/SortablePolygon.js.map +1 -1
  186. package/lib/cjs/geometry3d/Transform.js.map +1 -1
  187. package/lib/cjs/geometry3d/UVSurfaceOps.js.map +1 -1
  188. package/lib/cjs/geometry3d/XYZProps.js.map +1 -1
  189. package/lib/cjs/geometry3d/YawPitchRollAngles.js.map +1 -1
  190. package/lib/cjs/geometry4d/Map4d.js.map +1 -1
  191. package/lib/cjs/geometry4d/Matrix4d.js.map +1 -1
  192. package/lib/cjs/geometry4d/MomentData.d.ts +72 -73
  193. package/lib/cjs/geometry4d/MomentData.d.ts.map +1 -1
  194. package/lib/cjs/geometry4d/MomentData.js +62 -64
  195. package/lib/cjs/geometry4d/MomentData.js.map +1 -1
  196. package/lib/cjs/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
  197. package/lib/cjs/geometry4d/Point4d.js.map +1 -1
  198. package/lib/cjs/numerics/BandedSystem.js.map +1 -1
  199. package/lib/cjs/numerics/BezierPolynomials.js.map +1 -1
  200. package/lib/cjs/numerics/ClusterableArray.js.map +1 -1
  201. package/lib/cjs/numerics/Complex.js.map +1 -1
  202. package/lib/cjs/numerics/ConvexPolygon2d.js.map +1 -1
  203. package/lib/cjs/numerics/Newton.js.map +1 -1
  204. package/lib/cjs/numerics/PascalCoefficients.js.map +1 -1
  205. package/lib/cjs/numerics/PolarData.js.map +1 -1
  206. package/lib/cjs/numerics/Polynomials.d.ts +5 -5
  207. package/lib/cjs/numerics/Polynomials.js +6 -6
  208. package/lib/cjs/numerics/Polynomials.js.map +1 -1
  209. package/lib/cjs/numerics/Quadrature.js.map +1 -1
  210. package/lib/cjs/numerics/Range1dArray.js.map +1 -1
  211. package/lib/cjs/numerics/SmallSystem.js.map +1 -1
  212. package/lib/cjs/numerics/TriDiagonalSystem.js.map +1 -1
  213. package/lib/cjs/numerics/UnionFind.js.map +1 -1
  214. package/lib/cjs/numerics/UsageSums.js.map +1 -1
  215. package/lib/cjs/polyface/AuxData.d.ts +2 -2
  216. package/lib/cjs/polyface/AuxData.d.ts.map +1 -1
  217. package/lib/cjs/polyface/AuxData.js +11 -3
  218. package/lib/cjs/polyface/AuxData.js.map +1 -1
  219. package/lib/cjs/polyface/BoxTopology.js.map +1 -1
  220. package/lib/cjs/polyface/FacetFaceData.js.map +1 -1
  221. package/lib/cjs/polyface/FacetLocationDetail.js.map +1 -1
  222. package/lib/cjs/polyface/FacetOrientation.js.map +1 -1
  223. package/lib/cjs/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
  224. package/lib/cjs/polyface/IndexedEdgeMatcher.d.ts +27 -20
  225. package/lib/cjs/polyface/IndexedEdgeMatcher.d.ts.map +1 -1
  226. package/lib/cjs/polyface/IndexedEdgeMatcher.js +56 -30
  227. package/lib/cjs/polyface/IndexedEdgeMatcher.js.map +1 -1
  228. package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts +2 -1
  229. package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
  230. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js +2 -1
  231. package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  232. package/lib/cjs/polyface/Polyface.d.ts +3 -5
  233. package/lib/cjs/polyface/Polyface.d.ts.map +1 -1
  234. package/lib/cjs/polyface/Polyface.js +6 -13
  235. package/lib/cjs/polyface/Polyface.js.map +1 -1
  236. package/lib/cjs/polyface/PolyfaceBuilder.d.ts +14 -7
  237. package/lib/cjs/polyface/PolyfaceBuilder.d.ts.map +1 -1
  238. package/lib/cjs/polyface/PolyfaceBuilder.js +55 -60
  239. package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
  240. package/lib/cjs/polyface/PolyfaceClip.js.map +1 -1
  241. package/lib/cjs/polyface/PolyfaceData.d.ts +13 -3
  242. package/lib/cjs/polyface/PolyfaceData.d.ts.map +1 -1
  243. package/lib/cjs/polyface/PolyfaceData.js +21 -4
  244. package/lib/cjs/polyface/PolyfaceData.js.map +1 -1
  245. package/lib/cjs/polyface/PolyfaceQuery.d.ts +2 -2
  246. package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
  247. package/lib/cjs/polyface/PolyfaceQuery.js +4 -3
  248. package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
  249. package/lib/cjs/polyface/RangeLengthData.js.map +1 -1
  250. package/lib/cjs/polyface/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
  251. package/lib/cjs/polyface/RangeTree/MinimumValueTester.js.map +1 -1
  252. package/lib/cjs/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
  253. package/lib/cjs/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
  254. package/lib/cjs/polyface/RangeTree/RangeTreeNode.js.map +1 -1
  255. package/lib/cjs/polyface/RangeTree/RangeTreeSearchHandlers.js.map +1 -1
  256. package/lib/cjs/polyface/TaggedNumericData.js.map +1 -1
  257. package/lib/cjs/polyface/TriangleCandidate.js.map +1 -1
  258. package/lib/cjs/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
  259. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
  260. package/lib/cjs/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
  261. package/lib/cjs/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
  262. package/lib/cjs/polyface/multiclip/OffsetMeshContext.js.map +1 -1
  263. package/lib/cjs/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
  264. package/lib/cjs/polyface/multiclip/RangeSearch.js.map +1 -1
  265. package/lib/cjs/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  266. package/lib/cjs/polyface/multiclip/XYPointBuckets.js.map +1 -1
  267. package/lib/cjs/serialization/BGFBAccessors.js.map +1 -1
  268. package/lib/cjs/serialization/BGFBReader.js.map +1 -1
  269. package/lib/cjs/serialization/BGFBWriter.js.map +1 -1
  270. package/lib/cjs/serialization/BentleyGeometryFlatBuffer.js.map +1 -1
  271. package/lib/cjs/serialization/DeepCompare.js.map +1 -1
  272. package/lib/cjs/serialization/GeometrySamples.d.ts +5 -5
  273. package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -1
  274. package/lib/cjs/serialization/GeometrySamples.js +5 -5
  275. package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
  276. package/lib/cjs/serialization/IModelJsonSchema.js.map +1 -1
  277. package/lib/cjs/serialization/SerializationHelpers.js.map +1 -1
  278. package/lib/cjs/solid/Box.d.ts +9 -3
  279. package/lib/cjs/solid/Box.d.ts.map +1 -1
  280. package/lib/cjs/solid/Box.js +10 -5
  281. package/lib/cjs/solid/Box.js.map +1 -1
  282. package/lib/cjs/solid/Cone.d.ts +3 -2
  283. package/lib/cjs/solid/Cone.d.ts.map +1 -1
  284. package/lib/cjs/solid/Cone.js +3 -3
  285. package/lib/cjs/solid/Cone.js.map +1 -1
  286. package/lib/cjs/solid/LinearSweep.d.ts +9 -3
  287. package/lib/cjs/solid/LinearSweep.d.ts.map +1 -1
  288. package/lib/cjs/solid/LinearSweep.js +9 -4
  289. package/lib/cjs/solid/LinearSweep.js.map +1 -1
  290. package/lib/cjs/solid/RotationalSweep.d.ts +15 -4
  291. package/lib/cjs/solid/RotationalSweep.d.ts.map +1 -1
  292. package/lib/cjs/solid/RotationalSweep.js +20 -7
  293. package/lib/cjs/solid/RotationalSweep.js.map +1 -1
  294. package/lib/cjs/solid/RuledSweep.d.ts +35 -26
  295. package/lib/cjs/solid/RuledSweep.d.ts.map +1 -1
  296. package/lib/cjs/solid/RuledSweep.js +41 -28
  297. package/lib/cjs/solid/RuledSweep.js.map +1 -1
  298. package/lib/cjs/solid/SolidPrimitive.d.ts +12 -11
  299. package/lib/cjs/solid/SolidPrimitive.d.ts.map +1 -1
  300. package/lib/cjs/solid/SolidPrimitive.js +8 -5
  301. package/lib/cjs/solid/SolidPrimitive.js.map +1 -1
  302. package/lib/cjs/solid/Sphere.d.ts +17 -7
  303. package/lib/cjs/solid/Sphere.d.ts.map +1 -1
  304. package/lib/cjs/solid/Sphere.js +22 -16
  305. package/lib/cjs/solid/Sphere.js.map +1 -1
  306. package/lib/cjs/solid/SweepContour.d.ts +25 -16
  307. package/lib/cjs/solid/SweepContour.d.ts.map +1 -1
  308. package/lib/cjs/solid/SweepContour.js +25 -16
  309. package/lib/cjs/solid/SweepContour.js.map +1 -1
  310. package/lib/cjs/solid/TorusPipe.d.ts +8 -2
  311. package/lib/cjs/solid/TorusPipe.d.ts.map +1 -1
  312. package/lib/cjs/solid/TorusPipe.js +9 -5
  313. package/lib/cjs/solid/TorusPipe.js.map +1 -1
  314. package/lib/cjs/topology/ChainMerge.js.map +1 -1
  315. package/lib/cjs/topology/Graph.js.map +1 -1
  316. package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
  317. package/lib/cjs/topology/HalfEdgeGraphSearch.js.map +1 -1
  318. package/lib/cjs/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  319. package/lib/cjs/topology/HalfEdgeGraphValidation.js.map +1 -1
  320. package/lib/cjs/topology/HalfEdgeMarkSet.js.map +1 -1
  321. package/lib/cjs/topology/HalfEdgeNodeXYZUV.js.map +1 -1
  322. package/lib/cjs/topology/HalfEdgePointInGraphSearch.js.map +1 -1
  323. package/lib/cjs/topology/HalfEdgePositionDetail.js.map +1 -1
  324. package/lib/cjs/topology/HalfEdgePriorityQueue.js.map +1 -1
  325. package/lib/cjs/topology/InsertAndRetriangulateContext.js.map +1 -1
  326. package/lib/cjs/topology/MaskManager.js.map +1 -1
  327. package/lib/cjs/topology/Merging.js.map +1 -1
  328. package/lib/cjs/topology/RegularizeFace.js.map +1 -1
  329. package/lib/cjs/topology/SignedDataSummary.js.map +1 -1
  330. package/lib/cjs/topology/SpaceTriangulation.js.map +1 -1
  331. package/lib/cjs/topology/Triangulation.js.map +1 -1
  332. package/lib/cjs/topology/XYParitySearchContext.js.map +1 -1
  333. package/lib/esm/Constant.js.map +1 -1
  334. package/lib/esm/Geometry.js.map +1 -1
  335. package/lib/esm/bspline/AkimaCurve3d.js.map +1 -1
  336. package/lib/esm/bspline/BSpline1dNd.js.map +1 -1
  337. package/lib/esm/bspline/BSplineCurve.js.map +1 -1
  338. package/lib/esm/bspline/BSplineCurve3dH.js.map +1 -1
  339. package/lib/esm/bspline/BSplineCurveOps.d.ts.map +1 -1
  340. package/lib/esm/bspline/BSplineCurveOps.js +18 -21
  341. package/lib/esm/bspline/BSplineCurveOps.js.map +1 -1
  342. package/lib/esm/bspline/BSplineSurface.js.map +1 -1
  343. package/lib/esm/bspline/Bezier1dNd.js.map +1 -1
  344. package/lib/esm/bspline/BezierCurve3d.js.map +1 -1
  345. package/lib/esm/bspline/BezierCurve3dH.js.map +1 -1
  346. package/lib/esm/bspline/BezierCurveBase.d.ts.map +1 -1
  347. package/lib/esm/bspline/BezierCurveBase.js.map +1 -1
  348. package/lib/esm/bspline/InterpolationCurve3d.js.map +1 -1
  349. package/lib/esm/bspline/KnotVector.js.map +1 -1
  350. package/lib/esm/bspline/SurfaceLocationDetail.js.map +1 -1
  351. package/lib/esm/clipping/AlternatingConvexClipTree.js.map +1 -1
  352. package/lib/esm/clipping/BooleanClipFactory.js.map +1 -1
  353. package/lib/esm/clipping/BooleanClipNode.js.map +1 -1
  354. package/lib/esm/clipping/ClipPlane.js.map +1 -1
  355. package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
  356. package/lib/esm/clipping/ClipUtils.js.map +1 -1
  357. package/lib/esm/clipping/ClipVector.js.map +1 -1
  358. package/lib/esm/clipping/ConvexClipPlaneSet.js.map +1 -1
  359. package/lib/esm/clipping/UnionOfConvexClipPlaneSets.js.map +1 -1
  360. package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
  361. package/lib/esm/core-geometry.js.map +1 -1
  362. package/lib/esm/curve/Arc3d.d.ts +40 -8
  363. package/lib/esm/curve/Arc3d.d.ts.map +1 -1
  364. package/lib/esm/curve/Arc3d.js +66 -8
  365. package/lib/esm/curve/Arc3d.js.map +1 -1
  366. package/lib/esm/curve/ConstructCurveBetweenCurves.js.map +1 -1
  367. package/lib/esm/curve/CoordinateXYZ.js.map +1 -1
  368. package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
  369. package/lib/esm/curve/CurveCollection.d.ts +16 -2
  370. package/lib/esm/curve/CurveCollection.d.ts.map +1 -1
  371. package/lib/esm/curve/CurveCollection.js +33 -2
  372. package/lib/esm/curve/CurveCollection.js.map +1 -1
  373. package/lib/esm/curve/CurveCurve.js.map +1 -1
  374. package/lib/esm/curve/CurveExtendMode.js.map +1 -1
  375. package/lib/esm/curve/CurveFactory.d.ts +87 -53
  376. package/lib/esm/curve/CurveFactory.d.ts.map +1 -1
  377. package/lib/esm/curve/CurveFactory.js +213 -135
  378. package/lib/esm/curve/CurveFactory.js.map +1 -1
  379. package/lib/esm/curve/CurveLocationDetail.js.map +1 -1
  380. package/lib/esm/curve/CurveOps.js.map +1 -1
  381. package/lib/esm/curve/CurvePrimitive.js.map +1 -1
  382. package/lib/esm/curve/CurveProcessor.js.map +1 -1
  383. package/lib/esm/curve/CurveTypes.js.map +1 -1
  384. package/lib/esm/curve/CurveWireMomentsXYZ.js.map +1 -1
  385. package/lib/esm/curve/GeometryQuery.js.map +1 -1
  386. package/lib/esm/curve/LineSegment3d.js.map +1 -1
  387. package/lib/esm/curve/LineString3d.d.ts +12 -8
  388. package/lib/esm/curve/LineString3d.d.ts.map +1 -1
  389. package/lib/esm/curve/LineString3d.js +29 -8
  390. package/lib/esm/curve/LineString3d.js.map +1 -1
  391. package/lib/esm/curve/Loop.d.ts +12 -6
  392. package/lib/esm/curve/Loop.d.ts.map +1 -1
  393. package/lib/esm/curve/Loop.js +12 -6
  394. package/lib/esm/curve/Loop.js.map +1 -1
  395. package/lib/esm/curve/OffsetOptions.js.map +1 -1
  396. package/lib/esm/curve/ParityRegion.js.map +1 -1
  397. package/lib/esm/curve/Path.js.map +1 -1
  398. package/lib/esm/curve/PointString3d.js.map +1 -1
  399. package/lib/esm/curve/ProxyCurve.js.map +1 -1
  400. package/lib/esm/curve/Query/ConsolidateAdjacentPrimitivesContext.js.map +1 -1
  401. package/lib/esm/curve/Query/CurveSplitContext.js.map +1 -1
  402. package/lib/esm/curve/Query/CylindricalRange.d.ts +8 -6
  403. package/lib/esm/curve/Query/CylindricalRange.d.ts.map +1 -1
  404. package/lib/esm/curve/Query/CylindricalRange.js +13 -9
  405. package/lib/esm/curve/Query/CylindricalRange.js.map +1 -1
  406. package/lib/esm/curve/Query/InOutTests.js.map +1 -1
  407. package/lib/esm/curve/Query/PlanarSubdivision.js.map +1 -1
  408. package/lib/esm/curve/Query/StrokeCountChain.js.map +1 -1
  409. package/lib/esm/curve/Query/StrokeCountMap.js.map +1 -1
  410. package/lib/esm/curve/RegionMomentsXY.js.map +1 -1
  411. package/lib/esm/curve/RegionOps.js.map +1 -1
  412. package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -1
  413. package/lib/esm/curve/StrokeOptions.d.ts +4 -4
  414. package/lib/esm/curve/StrokeOptions.d.ts.map +1 -1
  415. package/lib/esm/curve/StrokeOptions.js +1 -1
  416. package/lib/esm/curve/StrokeOptions.js.map +1 -1
  417. package/lib/esm/curve/UnionRegion.js.map +1 -1
  418. package/lib/esm/curve/internalContexts/AppendPlaneIntersectionStrokeHandler.js.map +1 -1
  419. package/lib/esm/curve/internalContexts/ChainCollectorContext.js.map +1 -1
  420. package/lib/esm/curve/internalContexts/CloneCurvesContext.js.map +1 -1
  421. package/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js.map +1 -1
  422. package/lib/esm/curve/internalContexts/ClosestPointStrokeHandler.js.map +1 -1
  423. package/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js.map +1 -1
  424. package/lib/esm/curve/internalContexts/CurveCurveCloseApproachXY.js.map +1 -1
  425. package/lib/esm/curve/internalContexts/CurveCurveIntersectXY.js.map +1 -1
  426. package/lib/esm/curve/internalContexts/CurveCurveIntersectXYZ.js.map +1 -1
  427. package/lib/esm/curve/internalContexts/CurveLengthContext.js.map +1 -1
  428. package/lib/esm/curve/internalContexts/CurveOffsetXYHandler.js.map +1 -1
  429. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.d.ts.map +1 -1
  430. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js +24 -18
  431. package/lib/esm/curve/internalContexts/EllipticalArcApproximationContext.js.map +1 -1
  432. package/lib/esm/curve/internalContexts/GapSearchContext.js.map +1 -1
  433. package/lib/esm/curve/internalContexts/MultiChainCollector.js.map +1 -1
  434. package/lib/esm/curve/internalContexts/NewtonRtoRStrokeHandler.js.map +1 -1
  435. package/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js.map +1 -1
  436. package/lib/esm/curve/internalContexts/PolygonOffsetContext.js.map +1 -1
  437. package/lib/esm/curve/internalContexts/SumLengthsContext.js.map +1 -1
  438. package/lib/esm/curve/internalContexts/TransformInPlaceContext.js.map +1 -1
  439. package/lib/esm/curve/spiral/AustralianRailCorpXYEvaluator.js.map +1 -1
  440. package/lib/esm/curve/spiral/ClothoidSeries.js.map +1 -1
  441. package/lib/esm/curve/spiral/CubicEvaluator.js.map +1 -1
  442. package/lib/esm/curve/spiral/CzechSpiralEvaluator.js.map +1 -1
  443. package/lib/esm/curve/spiral/DirectHalfCosineSpiralEvaluator.js.map +1 -1
  444. package/lib/esm/curve/spiral/DirectSpiral3d.js.map +1 -1
  445. package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
  446. package/lib/esm/curve/spiral/MXCubicAlongArcSpiralEvaluator.js.map +1 -1
  447. package/lib/esm/curve/spiral/NormalizedTransition.js.map +1 -1
  448. package/lib/esm/curve/spiral/PolishCubicSpiralEvaluator.js.map +1 -1
  449. package/lib/esm/curve/spiral/TransitionConditionalProperties.js.map +1 -1
  450. package/lib/esm/curve/spiral/TransitionSpiral3d.js.map +1 -1
  451. package/lib/esm/curve/spiral/XYCurveEvaluator.js.map +1 -1
  452. package/lib/esm/geometry3d/Angle.js.map +1 -1
  453. package/lib/esm/geometry3d/AngleSweep.d.ts +1 -1
  454. package/lib/esm/geometry3d/AngleSweep.d.ts.map +1 -1
  455. package/lib/esm/geometry3d/AngleSweep.js +1 -1
  456. package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
  457. package/lib/esm/geometry3d/BarycentricTriangle.d.ts +14 -8
  458. package/lib/esm/geometry3d/BarycentricTriangle.d.ts.map +1 -1
  459. package/lib/esm/geometry3d/BarycentricTriangle.js +17 -8
  460. package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
  461. package/lib/esm/geometry3d/BilinearPatch.js.map +1 -1
  462. package/lib/esm/geometry3d/CoincidentGeometryOps.js.map +1 -1
  463. package/lib/esm/geometry3d/Ellipsoid.js.map +1 -1
  464. package/lib/esm/geometry3d/FrameBuilder.js +4 -4
  465. package/lib/esm/geometry3d/FrameBuilder.js.map +1 -1
  466. package/lib/esm/geometry3d/FrustumAnimation.js.map +1 -1
  467. package/lib/esm/geometry3d/GeometryHandler.js.map +1 -1
  468. package/lib/esm/geometry3d/GrowableBlockedArray.js.map +1 -1
  469. package/lib/esm/geometry3d/GrowableFloat64Array.d.ts +2 -0
  470. package/lib/esm/geometry3d/GrowableFloat64Array.d.ts.map +1 -1
  471. package/lib/esm/geometry3d/GrowableFloat64Array.js +4 -0
  472. package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -1
  473. package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -1
  474. package/lib/esm/geometry3d/GrowableXYZArray.d.ts +32 -10
  475. package/lib/esm/geometry3d/GrowableXYZArray.d.ts.map +1 -1
  476. package/lib/esm/geometry3d/GrowableXYZArray.js +54 -16
  477. package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -1
  478. package/lib/esm/geometry3d/IndexedCollectionInterval.js.map +1 -1
  479. package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
  480. package/lib/esm/geometry3d/IndexedXYZCollection.d.ts +13 -2
  481. package/lib/esm/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
  482. package/lib/esm/geometry3d/IndexedXYZCollection.js +24 -10
  483. package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
  484. package/lib/esm/geometry3d/LongitudeLatitudeAltitude.js.map +1 -1
  485. package/lib/esm/geometry3d/Matrix3d.d.ts +11 -8
  486. package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
  487. package/lib/esm/geometry3d/Matrix3d.js +28 -26
  488. package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
  489. package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -1
  490. package/lib/esm/geometry3d/Plane3d.js.map +1 -1
  491. package/lib/esm/geometry3d/Plane3dByOriginAndUnitNormal.js.map +1 -1
  492. package/lib/esm/geometry3d/Plane3dByOriginAndVectors.js.map +1 -1
  493. package/lib/esm/geometry3d/Point2dArrayCarrier.js.map +1 -1
  494. package/lib/esm/geometry3d/Point2dVector2d.js.map +1 -1
  495. package/lib/esm/geometry3d/Point3dArrayCarrier.js +1 -1
  496. package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
  497. package/lib/esm/geometry3d/Point3dVector3d.d.ts +6 -6
  498. package/lib/esm/geometry3d/Point3dVector3d.js +6 -6
  499. package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
  500. package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
  501. package/lib/esm/geometry3d/PointStreaming.js.map +1 -1
  502. package/lib/esm/geometry3d/PolygonOps.d.ts +12 -6
  503. package/lib/esm/geometry3d/PolygonOps.d.ts.map +1 -1
  504. package/lib/esm/geometry3d/PolygonOps.js +94 -47
  505. package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
  506. package/lib/esm/geometry3d/PolylineCompressionByEdgeOffset.js.map +1 -1
  507. package/lib/esm/geometry3d/PolylineOps.d.ts +9 -5
  508. package/lib/esm/geometry3d/PolylineOps.d.ts.map +1 -1
  509. package/lib/esm/geometry3d/PolylineOps.js +9 -5
  510. package/lib/esm/geometry3d/PolylineOps.js.map +1 -1
  511. package/lib/esm/geometry3d/Range.js.map +1 -1
  512. package/lib/esm/geometry3d/Ray2d.js.map +1 -1
  513. package/lib/esm/geometry3d/Ray3d.js.map +1 -1
  514. package/lib/esm/geometry3d/ReusableObjectCache.js.map +1 -1
  515. package/lib/esm/geometry3d/Segment1d.js.map +1 -1
  516. package/lib/esm/geometry3d/SortablePolygon.js.map +1 -1
  517. package/lib/esm/geometry3d/Transform.js.map +1 -1
  518. package/lib/esm/geometry3d/UVSurfaceOps.js.map +1 -1
  519. package/lib/esm/geometry3d/XYZProps.js.map +1 -1
  520. package/lib/esm/geometry3d/YawPitchRollAngles.js.map +1 -1
  521. package/lib/esm/geometry4d/Map4d.js.map +1 -1
  522. package/lib/esm/geometry4d/Matrix4d.js.map +1 -1
  523. package/lib/esm/geometry4d/MomentData.d.ts +72 -73
  524. package/lib/esm/geometry4d/MomentData.d.ts.map +1 -1
  525. package/lib/esm/geometry4d/MomentData.js +62 -64
  526. package/lib/esm/geometry4d/MomentData.js.map +1 -1
  527. package/lib/esm/geometry4d/PlaneByOriginAndVectors4d.js.map +1 -1
  528. package/lib/esm/geometry4d/Point4d.js.map +1 -1
  529. package/lib/esm/numerics/BandedSystem.js.map +1 -1
  530. package/lib/esm/numerics/BezierPolynomials.js.map +1 -1
  531. package/lib/esm/numerics/ClusterableArray.js.map +1 -1
  532. package/lib/esm/numerics/Complex.js.map +1 -1
  533. package/lib/esm/numerics/ConvexPolygon2d.js.map +1 -1
  534. package/lib/esm/numerics/Newton.js.map +1 -1
  535. package/lib/esm/numerics/PascalCoefficients.js.map +1 -1
  536. package/lib/esm/numerics/PolarData.js.map +1 -1
  537. package/lib/esm/numerics/Polynomials.d.ts +5 -5
  538. package/lib/esm/numerics/Polynomials.js +6 -6
  539. package/lib/esm/numerics/Polynomials.js.map +1 -1
  540. package/lib/esm/numerics/Quadrature.js.map +1 -1
  541. package/lib/esm/numerics/Range1dArray.js.map +1 -1
  542. package/lib/esm/numerics/SmallSystem.js.map +1 -1
  543. package/lib/esm/numerics/TriDiagonalSystem.js.map +1 -1
  544. package/lib/esm/numerics/UnionFind.js.map +1 -1
  545. package/lib/esm/numerics/UsageSums.js.map +1 -1
  546. package/lib/esm/polyface/AuxData.d.ts +2 -2
  547. package/lib/esm/polyface/AuxData.d.ts.map +1 -1
  548. package/lib/esm/polyface/AuxData.js +11 -3
  549. package/lib/esm/polyface/AuxData.js.map +1 -1
  550. package/lib/esm/polyface/BoxTopology.js.map +1 -1
  551. package/lib/esm/polyface/FacetFaceData.js.map +1 -1
  552. package/lib/esm/polyface/FacetLocationDetail.js.map +1 -1
  553. package/lib/esm/polyface/FacetOrientation.js.map +1 -1
  554. package/lib/esm/polyface/GreedyTriangulationBetweenLineStrings.js.map +1 -1
  555. package/lib/esm/polyface/IndexedEdgeMatcher.d.ts +27 -20
  556. package/lib/esm/polyface/IndexedEdgeMatcher.d.ts.map +1 -1
  557. package/lib/esm/polyface/IndexedEdgeMatcher.js +56 -30
  558. package/lib/esm/polyface/IndexedEdgeMatcher.js.map +1 -1
  559. package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts +2 -1
  560. package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
  561. package/lib/esm/polyface/IndexedPolyfaceVisitor.js +2 -1
  562. package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
  563. package/lib/esm/polyface/Polyface.d.ts +3 -5
  564. package/lib/esm/polyface/Polyface.d.ts.map +1 -1
  565. package/lib/esm/polyface/Polyface.js +6 -13
  566. package/lib/esm/polyface/Polyface.js.map +1 -1
  567. package/lib/esm/polyface/PolyfaceBuilder.d.ts +14 -7
  568. package/lib/esm/polyface/PolyfaceBuilder.d.ts.map +1 -1
  569. package/lib/esm/polyface/PolyfaceBuilder.js +56 -61
  570. package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
  571. package/lib/esm/polyface/PolyfaceClip.js.map +1 -1
  572. package/lib/esm/polyface/PolyfaceData.d.ts +13 -3
  573. package/lib/esm/polyface/PolyfaceData.d.ts.map +1 -1
  574. package/lib/esm/polyface/PolyfaceData.js +21 -4
  575. package/lib/esm/polyface/PolyfaceData.js.map +1 -1
  576. package/lib/esm/polyface/PolyfaceQuery.d.ts +2 -2
  577. package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
  578. package/lib/esm/polyface/PolyfaceQuery.js +4 -3
  579. package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
  580. package/lib/esm/polyface/RangeLengthData.js.map +1 -1
  581. package/lib/esm/polyface/RangeTree/LineString3dRangeTreeContext.js.map +1 -1
  582. package/lib/esm/polyface/RangeTree/MinimumValueTester.js.map +1 -1
  583. package/lib/esm/polyface/RangeTree/Point3dArrayRangeTreeContext.js.map +1 -1
  584. package/lib/esm/polyface/RangeTree/PolyfaceRangeTreeContext.js.map +1 -1
  585. package/lib/esm/polyface/RangeTree/RangeTreeNode.js.map +1 -1
  586. package/lib/esm/polyface/RangeTree/RangeTreeSearchHandlers.js.map +1 -1
  587. package/lib/esm/polyface/TaggedNumericData.js.map +1 -1
  588. package/lib/esm/polyface/TriangleCandidate.js.map +1 -1
  589. package/lib/esm/polyface/multiclip/BuildAverageNormalsContext.js.map +1 -1
  590. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSet.js.map +1 -1
  591. package/lib/esm/polyface/multiclip/GriddedRaggedRange2dSetWithOverflow.js.map +1 -1
  592. package/lib/esm/polyface/multiclip/LinearSearchRange2dArray.js.map +1 -1
  593. package/lib/esm/polyface/multiclip/OffsetMeshContext.js.map +1 -1
  594. package/lib/esm/polyface/multiclip/Range2dSearchInterface.js.map +1 -1
  595. package/lib/esm/polyface/multiclip/RangeSearch.js.map +1 -1
  596. package/lib/esm/polyface/multiclip/SweepLineStringToFacetContext.js.map +1 -1
  597. package/lib/esm/polyface/multiclip/XYPointBuckets.js.map +1 -1
  598. package/lib/esm/serialization/BGFBAccessors.js.map +1 -1
  599. package/lib/esm/serialization/BGFBReader.js.map +1 -1
  600. package/lib/esm/serialization/BGFBWriter.js.map +1 -1
  601. package/lib/esm/serialization/BentleyGeometryFlatBuffer.js.map +1 -1
  602. package/lib/esm/serialization/DeepCompare.js.map +1 -1
  603. package/lib/esm/serialization/GeometrySamples.d.ts +5 -5
  604. package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -1
  605. package/lib/esm/serialization/GeometrySamples.js +5 -5
  606. package/lib/esm/serialization/GeometrySamples.js.map +1 -1
  607. package/lib/esm/serialization/IModelJsonSchema.js.map +1 -1
  608. package/lib/esm/serialization/SerializationHelpers.js.map +1 -1
  609. package/lib/esm/solid/Box.d.ts +9 -3
  610. package/lib/esm/solid/Box.d.ts.map +1 -1
  611. package/lib/esm/solid/Box.js +10 -5
  612. package/lib/esm/solid/Box.js.map +1 -1
  613. package/lib/esm/solid/Cone.d.ts +3 -2
  614. package/lib/esm/solid/Cone.d.ts.map +1 -1
  615. package/lib/esm/solid/Cone.js +3 -3
  616. package/lib/esm/solid/Cone.js.map +1 -1
  617. package/lib/esm/solid/LinearSweep.d.ts +9 -3
  618. package/lib/esm/solid/LinearSweep.d.ts.map +1 -1
  619. package/lib/esm/solid/LinearSweep.js +9 -4
  620. package/lib/esm/solid/LinearSweep.js.map +1 -1
  621. package/lib/esm/solid/RotationalSweep.d.ts +15 -4
  622. package/lib/esm/solid/RotationalSweep.d.ts.map +1 -1
  623. package/lib/esm/solid/RotationalSweep.js +20 -7
  624. package/lib/esm/solid/RotationalSweep.js.map +1 -1
  625. package/lib/esm/solid/RuledSweep.d.ts +35 -26
  626. package/lib/esm/solid/RuledSweep.d.ts.map +1 -1
  627. package/lib/esm/solid/RuledSweep.js +41 -28
  628. package/lib/esm/solid/RuledSweep.js.map +1 -1
  629. package/lib/esm/solid/SolidPrimitive.d.ts +12 -11
  630. package/lib/esm/solid/SolidPrimitive.d.ts.map +1 -1
  631. package/lib/esm/solid/SolidPrimitive.js +8 -5
  632. package/lib/esm/solid/SolidPrimitive.js.map +1 -1
  633. package/lib/esm/solid/Sphere.d.ts +17 -7
  634. package/lib/esm/solid/Sphere.d.ts.map +1 -1
  635. package/lib/esm/solid/Sphere.js +22 -16
  636. package/lib/esm/solid/Sphere.js.map +1 -1
  637. package/lib/esm/solid/SweepContour.d.ts +25 -16
  638. package/lib/esm/solid/SweepContour.d.ts.map +1 -1
  639. package/lib/esm/solid/SweepContour.js +25 -16
  640. package/lib/esm/solid/SweepContour.js.map +1 -1
  641. package/lib/esm/solid/TorusPipe.d.ts +8 -2
  642. package/lib/esm/solid/TorusPipe.d.ts.map +1 -1
  643. package/lib/esm/solid/TorusPipe.js +9 -5
  644. package/lib/esm/solid/TorusPipe.js.map +1 -1
  645. package/lib/esm/topology/ChainMerge.js.map +1 -1
  646. package/lib/esm/topology/Graph.js.map +1 -1
  647. package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -1
  648. package/lib/esm/topology/HalfEdgeGraphSearch.js.map +1 -1
  649. package/lib/esm/topology/HalfEdgeGraphSpineContext.js.map +1 -1
  650. package/lib/esm/topology/HalfEdgeGraphValidation.js.map +1 -1
  651. package/lib/esm/topology/HalfEdgeMarkSet.js.map +1 -1
  652. package/lib/esm/topology/HalfEdgeNodeXYZUV.js.map +1 -1
  653. package/lib/esm/topology/HalfEdgePointInGraphSearch.js.map +1 -1
  654. package/lib/esm/topology/HalfEdgePositionDetail.js.map +1 -1
  655. package/lib/esm/topology/HalfEdgePriorityQueue.js.map +1 -1
  656. package/lib/esm/topology/InsertAndRetriangulateContext.js.map +1 -1
  657. package/lib/esm/topology/MaskManager.js.map +1 -1
  658. package/lib/esm/topology/Merging.js.map +1 -1
  659. package/lib/esm/topology/RegularizeFace.js.map +1 -1
  660. package/lib/esm/topology/SignedDataSummary.js.map +1 -1
  661. package/lib/esm/topology/SpaceTriangulation.js.map +1 -1
  662. package/lib/esm/topology/Triangulation.js.map +1 -1
  663. package/lib/esm/topology/XYParitySearchContext.js.map +1 -1
  664. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"CurveCurve.js","sourceRoot":"","sources":["../../../src/curve/CurveCurve.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0CAAuC;AAKvC,4FAAyF;AACzF,oFAAiF;AACjF,sFAAmF;AAEnF;;;GAGG;AACH,MAAa,UAAU;IACrB;;;;;;;;OAQG;IACI,MAAM,CAAC,mBAAmB,CAC/B,MAAgB,EAChB,OAAgB,EAChB,MAAgB,EAChB,OAAgB,EAChB,YAAoB,mBAAQ,CAAC,mBAAmB;QAEhD,OAAO,UAAU,CAAC,4BAA4B,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IACzG,CAAC;IACD;;;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AI,GAAG,CAAC,CAAC;gBACT,SAAS,GAAG,MAAM,CAAC;YACrB,CAAC;QACH,CAAC;QACD,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF;AA9HD,gCA8HC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Curve\r\n */\r\n\r\nimport { Geometry } from \"../Geometry\";\r\nimport { Matrix4d } from \"../geometry4d/Matrix4d\";\r\nimport { CurveLocationDetailPair } from \"./CurveLocationDetail\";\r\nimport { CurvePrimitive } from \"./CurvePrimitive\";\r\nimport { AnyCurve } from \"./CurveTypes\";\r\nimport { CurveCurveCloseApproachXY } from \"./internalContexts/CurveCurveCloseApproachXY\";\r\nimport { CurveCurveIntersectXY } from \"./internalContexts/CurveCurveIntersectXY\";\r\nimport { CurveCurveIntersectXYZ } from \"./internalContexts/CurveCurveIntersectXYZ\";\r\n\r\n/**\r\n * `CurveCurve` has static method for various computations that work on a pair of curves or curve collections.\r\n * @public\r\n */\r\nexport class CurveCurve {\r\n /**\r\n * Return xy intersections of 2 curves.\r\n * * Curves can be extended if extend flags are set. B-splines are not extended even if the flag is set.\r\n * @param curveA first curve\r\n * @param extendA true to allow curveA to extend\r\n * @param curveB second curve\r\n * @param extendB true to allow curveB to extend\r\n * @param tolerance optional distance tolerance for coincidence\r\n */\r\n public static intersectionXYPairs(\r\n curveA: AnyCurve,\r\n extendA: boolean,\r\n curveB: AnyCurve,\r\n extendB: boolean,\r\n tolerance: number = Geometry.smallMetricDistance,\r\n ): CurveLocationDetailPair[] {\r\n return CurveCurve.intersectionProjectedXYPairs(undefined, curveA, extendA, curveB, extendB, tolerance);\r\n }\r\n /**\r\n * Return xy intersections of 2 projected curves.\r\n * * Curves can be extended if extend flags are set. B-splines are not extended even if the flag is set.\r\n * @param worldToLocal transform (possibly perspective) defining the local coordinates in which to compute xy intersections\r\n * @param curveA first curve\r\n * @param extendA true to allow curveA to extend\r\n * @param curveB second curve\r\n * @param extendB true to allow curveB to extend\r\n * @param tolerance optional distance tolerance for coincidence\r\n */\r\n public static intersectionProjectedXYPairs(\r\n worldToLocal: Matrix4d | undefined,\r\n curveA: AnyCurve,\r\n extendA: boolean,\r\n curveB: AnyCurve,\r\n extendB: boolean,\r\n tolerance: number = Geometry.smallMetricDistance,\r\n ): CurveLocationDetailPair[] {\r\n const handler = new CurveCurveIntersectXY(worldToLocal, extendA, curveB, extendB, tolerance);\r\n curveA.dispatchToGeometryHandler(handler);\r\n return handler.grabPairedResults();\r\n }\r\n /**\r\n * Return full 3d xyz intersections of 2 curves.\r\n * * Implemented for combinations of LineSegment3d, LineString3d, Arc3d.\r\n * * Not Implemented for bspline and bezier curves.\r\n * @param curveA first curve\r\n * @param extendA true to allow curveA to extend\r\n * @param curveB second curve\r\n * @param extendB true to allow curveB to extend\r\n * @returns array of intersections structured as CurveLocationDetailPair[]\r\n */\r\n public static intersectionXYZPairs(\r\n curveA: AnyCurve, extendA: boolean, curveB: AnyCurve, extendB: boolean,\r\n ): CurveLocationDetailPair[] {\r\n const handler = new CurveCurveIntersectXYZ(extendA, curveB, extendB);\r\n curveA.dispatchToGeometryHandler(handler);\r\n return handler.grabPairedResults();\r\n }\r\n /**\r\n * Return xy intersections of input curves.\r\n * @param primitives input curves to intersect\r\n * @param tolerance optional distance tolerance for coincidence\r\n */\r\n public static allIntersectionsAmongPrimitivesXY(\r\n primitives: CurvePrimitive[], tolerance: number = Geometry.smallMetricDistance,\r\n ): CurveLocationDetailPair[] {\r\n const handler = new CurveCurveIntersectXY(undefined, false, undefined, false, tolerance);\r\n for (let i = 0; i < primitives.length; i++) {\r\n const curveA = primitives[i];\r\n for (let j = i + 1; j < primitives.length; j++) {\r\n handler.resetGeometry(primitives[j]);\r\n curveA.dispatchToGeometryHandler(handler);\r\n }\r\n }\r\n return handler.grabPairedResults();\r\n }\r\n /**\r\n * Return at least one XY close approach between 2 curves.\r\n * * Close approach xy-distances are measured without regard to z. This is equivalent to their separation distance\r\n * as seen in the top view, or as measured between their projections onto the xy-plane.\r\n * * If more than one approach is returned, one of them is the closest approach.\r\n * * If an input curve is a `CurveCollection`, then close approaches are computed to each `CurvePrimitive` child.\r\n * This can lead to many returned pairs, especially when both inputs are `CurveCollection`s. If an input curve is\r\n * an `AnyRegion` then close approaches are computed only to the boundary curves, not to the interior.\r\n * @param curveA first curve\r\n * @param curveB second curve\r\n * @param maxDistance maximum xy-distance to consider between the curves.\r\n * Close approaches further than this xy-distance are not returned.\r\n */\r\n public static closeApproachProjectedXYPairs(\r\n curveA: AnyCurve, curveB: AnyCurve, maxDistance: number,\r\n ): CurveLocationDetailPair[] {\r\n const handler = new CurveCurveCloseApproachXY(curveB);\r\n handler.maxDistanceToAccept = maxDistance;\r\n curveA.dispatchToGeometryHandler(handler);\r\n return handler.grabPairedResults();\r\n }\r\n /**\r\n * Convenience method that calls [[closeApproachProjectedXYPairs]] with a large `maxDistance`\r\n * and returns a detail pair representing the closest xy-approach between the curves.\r\n * * There may be many detail pairs that represent \"closest\" xy-approach, including coincident interval pairs,\r\n * isolated intersections, or close approaches within tolerance of each other. This method makes no attempt to\r\n * distinguish among them, and returns a pair whose `detail.point` values are separated by the smallest xy distance\r\n * found among the pairs.\r\n * @param curveA first curve\r\n * @param curveB second curve\r\n * @return detail pair of closest xy-approach, undefined if not found\r\n */\r\n public static closestApproachProjectedXYPair(curveA: AnyCurve, curveB: AnyCurve): CurveLocationDetailPair | undefined {\r\n const range = curveA.range();\r\n range.extendRange(curveB.range());\r\n const maxDistance = range.low.distanceXY(range.high);\r\n const closeApproaches = this.closeApproachProjectedXYPairs(curveA, curveB, maxDistance);\r\n if (!closeApproaches.length)\r\n return undefined;\r\n let iMin = 0;\r\n let minDistXY = 2 * maxDistance;\r\n for (let i = 0; i < closeApproaches.length; ++i) {\r\n const distXY = closeApproaches[i].detailA.point.distanceXY(closeApproaches[i].detailB.point);\r\n if (distXY < minDistXY) {\r\n iMin = i;\r\n minDistXY = distXY;\r\n }\r\n }\r\n return closeApproaches[iMin];\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"CurveCurve.js","sourceRoot":"","sources":["../../../src/curve/CurveCurve.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0CAAuC;AAKvC,4FAAyF;AACzF,oFAAiF;AACjF,sFAAmF;AAEnF;;;GAGG;AACH,MAAa,UAAU;IACrB;;;;;;;;OAQG;IACI,MAAM,CAAC,mBAAmB,CAC/B,MAAgB,EAChB,OAAgB,EAChB,MAAgB,EAChB,OAAgB,EAChB,YAAoB,mBAAQ,CAAC,mBAAmB;QAEhD,OAAO,UAAU,CAAC,4BAA4B,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IACzG,CAAC;IACD;;;;;;;;;OASG;IACI,MAAM,CAAC,4BAA4B,CACxC,YAAkC,EAClC,MAAgB,EAChB,OAAgB,EAChB,MAAgB,EAChB,OAAgB,EAChB,YAAoB,mBAAQ,CAAC,mBAAmB;QAEhD,MAAM,OAAO,GAAG,IAAI,6CAAqB,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QAC7F,MAAM,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;QAC1C,OAAO,OAAO,CAAC,iBAAiB,EAAE,CAAC;IACrC,CAAC;IACD;;;;;;;;;OASG;IACI,MAAM,CAAC,oBAAoB,CAChC,MAAgB,EAAE,OAAgB,EAAE,MAAgB,EAAE,OAAgB;QAEtE,MAAM,OAAO,GAAG,IAAI,+CAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACrE,MAAM,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;QAC1C,OAAO,OA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WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrD,MAAM,eAAe,GAAG,IAAI,CAAC,6BAA6B,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QACxF,IAAI,CAAC,eAAe,CAAC,MAAM;YACzB,OAAO,SAAS,CAAC;QACnB,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,IAAI,SAAS,GAAG,CAAC,GAAG,WAAW,CAAC;QAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;YAChD,MAAM,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC7F,IAAI,MAAM,GAAG,SAAS,EAAE,CAAC;gBACvB,IAAI,GAAG,CAAC,CAAC;gBACT,SAAS,GAAG,MAAM,CAAC;YACrB,CAAC;QACH,CAAC;QACD,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF;AA9HD,gCA8HC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Curve\n */\n\nimport { Geometry } from \"../Geometry\";\nimport { Matrix4d } from \"../geometry4d/Matrix4d\";\nimport { CurveLocationDetailPair } from \"./CurveLocationDetail\";\nimport { CurvePrimitive } from \"./CurvePrimitive\";\nimport { AnyCurve } from \"./CurveTypes\";\nimport { CurveCurveCloseApproachXY } from \"./internalContexts/CurveCurveCloseApproachXY\";\nimport { CurveCurveIntersectXY } from \"./internalContexts/CurveCurveIntersectXY\";\nimport { CurveCurveIntersectXYZ } from \"./internalContexts/CurveCurveIntersectXYZ\";\n\n/**\n * `CurveCurve` has static method for various computations that work on a pair of curves or curve collections.\n * @public\n */\nexport class CurveCurve {\n /**\n * Return xy intersections of 2 curves.\n * * Curves can be extended if extend flags are set. B-splines are not extended even if the flag is set.\n * @param curveA first curve\n * @param extendA true to allow curveA to extend\n * @param curveB second curve\n * @param extendB true to allow curveB to extend\n * @param tolerance optional distance tolerance for coincidence\n */\n public static intersectionXYPairs(\n curveA: AnyCurve,\n extendA: boolean,\n curveB: AnyCurve,\n extendB: boolean,\n tolerance: number = Geometry.smallMetricDistance,\n ): CurveLocationDetailPair[] {\n return CurveCurve.intersectionProjectedXYPairs(undefined, curveA, extendA, curveB, extendB, tolerance);\n }\n /**\n * Return xy intersections of 2 projected curves.\n * * Curves can be extended if extend flags are set. B-splines are not extended even if the flag is set.\n * @param worldToLocal transform (possibly perspective) defining the local coordinates in which to compute xy intersections\n * @param curveA first curve\n * @param extendA true to allow curveA to extend\n * @param curveB second curve\n * @param extendB true to allow curveB to extend\n * @param tolerance optional distance tolerance for coincidence\n */\n public static intersectionProjectedXYPairs(\n worldToLocal: Matrix4d | undefined,\n curveA: AnyCurve,\n extendA: boolean,\n curveB: AnyCurve,\n extendB: boolean,\n tolerance: number = Geometry.smallMetricDistance,\n ): CurveLocationDetailPair[] {\n const handler = new CurveCurveIntersectXY(worldToLocal, extendA, curveB, extendB, tolerance);\n curveA.dispatchToGeometryHandler(handler);\n return handler.grabPairedResults();\n }\n /**\n * Return full 3d xyz intersections of 2 curves.\n * * Implemented for combinations of LineSegment3d, LineString3d, Arc3d.\n * * Not Implemented for bspline and bezier curves.\n * @param curveA first curve\n * @param extendA true to allow curveA to extend\n * @param curveB second curve\n * @param extendB true to allow curveB to extend\n * @returns array of intersections structured as CurveLocationDetailPair[]\n */\n public static intersectionXYZPairs(\n curveA: AnyCurve, extendA: boolean, curveB: AnyCurve, extendB: boolean,\n ): CurveLocationDetailPair[] {\n const handler = new CurveCurveIntersectXYZ(extendA, curveB, extendB);\n curveA.dispatchToGeometryHandler(handler);\n return handler.grabPairedResults();\n }\n /**\n * Return xy intersections of input curves.\n * @param primitives input curves to intersect\n * @param tolerance optional distance tolerance for coincidence\n */\n public static allIntersectionsAmongPrimitivesXY(\n primitives: CurvePrimitive[], tolerance: number = Geometry.smallMetricDistance,\n ): CurveLocationDetailPair[] {\n const handler = new CurveCurveIntersectXY(undefined, false, undefined, false, tolerance);\n for (let i = 0; i < primitives.length; i++) {\n const curveA = primitives[i];\n for (let j = i + 1; j < primitives.length; j++) {\n handler.resetGeometry(primitives[j]);\n curveA.dispatchToGeometryHandler(handler);\n }\n }\n return handler.grabPairedResults();\n }\n /**\n * Return at least one XY close approach between 2 curves.\n * * Close approach xy-distances are measured without regard to z. This is equivalent to their separation distance\n * as seen in the top view, or as measured between their projections onto the xy-plane.\n * * If more than one approach is returned, one of them is the closest approach.\n * * If an input curve is a `CurveCollection`, then close approaches are computed to each `CurvePrimitive` child.\n * This can lead to many returned pairs, especially when both inputs are `CurveCollection`s. If an input curve is\n * an `AnyRegion` then close approaches are computed only to the boundary curves, not to the interior.\n * @param curveA first curve\n * @param curveB second curve\n * @param maxDistance maximum xy-distance to consider between the curves.\n * Close approaches further than this xy-distance are not returned.\n */\n public static closeApproachProjectedXYPairs(\n curveA: AnyCurve, curveB: AnyCurve, maxDistance: number,\n ): CurveLocationDetailPair[] {\n const handler = new CurveCurveCloseApproachXY(curveB);\n handler.maxDistanceToAccept = maxDistance;\n curveA.dispatchToGeometryHandler(handler);\n return handler.grabPairedResults();\n }\n /**\n * Convenience method that calls [[closeApproachProjectedXYPairs]] with a large `maxDistance`\n * and returns a detail pair representing the closest xy-approach between the curves.\n * * There may be many detail pairs that represent \"closest\" xy-approach, including coincident interval pairs,\n * isolated intersections, or close approaches within tolerance of each other. This method makes no attempt to\n * distinguish among them, and returns a pair whose `detail.point` values are separated by the smallest xy distance\n * found among the pairs.\n * @param curveA first curve\n * @param curveB second curve\n * @return detail pair of closest xy-approach, undefined if not found\n */\n public static closestApproachProjectedXYPair(curveA: AnyCurve, curveB: AnyCurve): CurveLocationDetailPair | undefined {\n const range = curveA.range();\n range.extendRange(curveB.range());\n const maxDistance = range.low.distanceXY(range.high);\n const closeApproaches = this.closeApproachProjectedXYPairs(curveA, curveB, maxDistance);\n if (!closeApproaches.length)\n return undefined;\n let iMin = 0;\n let minDistXY = 2 * maxDistance;\n for (let i = 0; i < closeApproaches.length; ++i) {\n const distXY = closeApproaches[i].detailA.point.distanceXY(closeApproaches[i].detailB.point);\n if (distXY < minDistXY) {\n iMin = i;\n minDistXY = distXY;\n }\n }\n return closeApproaches[iMin];\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CurveExtendMode.js","sourceRoot":"","sources":["../../../src/curve/CurveExtendMode.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0CAAuC;AAGvC;;;;GAIG;AACH,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,qDAAQ,CAAA;IACR,oDAAoD;IACpD,+DAAa,CAAA;IACb,8CAA8C;IAC9C,2DAAW,CAAA;AACb,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AACD;;;GAGG;AACH,MAAa,kBAAkB;IAC7B;;;;;;OAMG;IACI,MAAM,CAAC,mDAAmD,CAC/D,KAAkC,EAAE,QAAe;QAEnD,IAAI,KAAK,KAAK,KAAK;YACjB,OAAO,eAAe,CAAC,IAAI,CAAC;QAC9B,IAAI,KAAK,KAAK,IAAI;YAChB,OAAO,eAAe,CAAC,OAAO,CAAC;QACjC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YACtB,OAAO,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC;QAC1E,OAAO,KAAK,CAAC;IACf,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,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,CAAC;gBAC/B,CAAC;YACH,CAAC;iBAAM,IAAI,KAAK,KAAK,eAAe,CAAC,IAAI,EAAE,CAAC;gBAC1C,IAAI,QAAQ,GAAG,GAAG;oBAChB,QAAQ,IAAI,cAAc,CAAC;YAC/B,CAAC;iBAAM,CAAC,CAAC,eAAe;gBACtB,QAAQ,GAAG,mBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAtED,gDAsEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Curve\r\n */\r\n\r\nimport { Geometry } from \"../Geometry\";\r\nimport { AngleSweep } from \"../geometry3d/AngleSweep\";\r\n\r\n/**\r\n * Enumeration of condition for extending a curve beyond start or end point.\r\n * * Not all CurvePrimitives support these modes.\r\n * @public\r\n */\r\nexport enum CurveExtendMode {\r\n /** No extension allowed. */\r\n None = 0,\r\n /** Extend along continuation of the end tangent. */\r\n OnTangent = 1,\r\n /** Extend along continuation of the curve. */\r\n OnCurve = 2,\r\n}\r\n/**\r\n * Logic for deciding how a curve may be extended for closest point or intersection searches.\r\n * @public\r\n */\r\nexport class CurveExtendOptions {\r\n /**\r\n * Given a `VariantCurveExtendParameter`, isolate the particular CurveExtendMode in effect at an end.\r\n * * Return `CurveExtendMode.None` if `param === false`.\r\n * * Return `CurveExtendMode.OnCurve` if `param === true`.\r\n * * Return the param if it is a single CurveExtendMode.\r\n * * Return dereferenced array at entry `endIndex` if the param is an array of CurveExtendMode.\r\n */\r\n public static resolveVariantCurveExtendParameterToCurveExtendMode(\r\n param: VariantCurveExtendParameter, endIndex: 0 | 1,\r\n ): CurveExtendMode {\r\n if (param === false)\r\n return CurveExtendMode.None;\r\n if (param === true)\r\n return CurveExtendMode.OnCurve;\r\n if (Array.isArray(param))\r\n return param.length > endIndex ? param[endIndex] : CurveExtendMode.None;\r\n return param;\r\n }\r\n /**\r\n * Correct fraction to be within [0,1].\r\n * * If fraction is in [0,1] return it unchanged.\r\n * * If fraction is less than 0 use `extendParam` to decide whether to return it unchanged, or to return 0.\r\n * * If fraction is greater than 1 use `extendParam` to decide whether to return it unchanged, or to return 1.\r\n */\r\n public static correctFraction(extendParam: VariantCurveExtendParameter, fraction: number): number {\r\n if (fraction < 0) {\r\n const mode = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 0);\r\n if (mode === CurveExtendMode.None)\r\n fraction = 0.0;\r\n } else if (fraction > 1.0) {\r\n const mode = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 1);\r\n if (mode === CurveExtendMode.None)\r\n fraction = 1.0;\r\n }\r\n return fraction;\r\n }\r\n /**\r\n * Adjust a radians value to an angle sweep, allowing the extendParam to affect choice among periodic fractions.\r\n * * If radians is within the sweep, convert it to a fraction of the sweep.\r\n * * If radians is outside, use the extendParam to choose among:\r\n * * fraction below 0.\r\n * * fraction above 1.\r\n */\r\n public static resolveRadiansToSweepFraction(\r\n extendParam: VariantCurveExtendParameter, radians: number, sweep: AngleSweep,\r\n ): number {\r\n let fraction = sweep.radiansToSignedPeriodicFraction(radians);\r\n if (!sweep.isRadiansInSweep(radians)) {\r\n const fractionPeriod = sweep.fractionPeriod();\r\n const mode0 = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 0);\r\n const mode1 = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 1);\r\n if (mode0 !== CurveExtendMode.None) {\r\n if (mode1 !== CurveExtendMode.None) {\r\n // both extensions possible; let the sweep resolve to the \"closer\" end\r\n fraction = sweep.radiansToSignedPeriodicFraction(radians);\r\n } else {\r\n // only extend to negative\r\n if (fraction > 1.0)\r\n fraction -= fractionPeriod;\r\n }\r\n } else if (mode1 !== CurveExtendMode.None) {\r\n if (fraction < 0.0)\r\n fraction += fractionPeriod;\r\n } else { // both clamped\r\n fraction = Geometry.clamp(fraction, 0, 1);\r\n }\r\n }\r\n return fraction;\r\n }\r\n}\r\n/**\r\n * Variant options for extending a curve.\r\n * * Useful for specifying either a single boolean/`CurveExtendMode` option applicable to both ends of the curve,\r\n * or an array of options, the first entry of which applies to the curve start; the second, to curve end.\r\n * @public\r\n */\r\nexport type VariantCurveExtendParameter = boolean | CurveExtendMode | CurveExtendMode[];\r\n"]}
1
+ {"version":3,"file":"CurveExtendMode.js","sourceRoot":"","sources":["../../../src/curve/CurveExtendMode.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0CAAuC;AAGvC;;;;GAIG;AACH,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,4BAA4B;IAC5B,qDAAQ,CAAA;IACR,oDAAoD;IACpD,+DAAa,CAAA;IACb,8CAA8C;IAC9C,2DAAW,CAAA;AACb,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AACD;;;GAGG;AACH,MAAa,kBAAkB;IAC7B;;;;;;OAMG;IACI,MAAM,CAAC,mDAAmD,CAC/D,KAAkC,EAAE,QAAe;QAEnD,IAAI,KAAK,KAAK,KAAK;YACjB,OAAO,eAAe,CAAC,IAAI,CAAC;QAC9B,IAAI,KAAK,KAAK,IAAI;YAChB,OAAO,eAAe,CAAC,OAAO,CAAC;QACjC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YACtB,OAAO,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC;QAC1E,OAAO,KAAK,CAAC;IACf,CAAC;IACD;;;;;OAKG;IACI,MAAM,CAAC,eAAe,CAAC,WAAwC,EAAE,QAAgB;QACtF,IAAI,QAAQ,GA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AK,eAAe,CAAC,IAAI,EAAE,CAAC;gBAC1C,IAAI,QAAQ,GAAG,GAAG;oBAChB,QAAQ,IAAI,cAAc,CAAC;YAC/B,CAAC;iBAAM,CAAC,CAAC,eAAe;gBACtB,QAAQ,GAAG,mBAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAtED,gDAsEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Curve\n */\n\nimport { Geometry } from \"../Geometry\";\nimport { AngleSweep } from \"../geometry3d/AngleSweep\";\n\n/**\n * Enumeration of condition for extending a curve beyond start or end point.\n * * Not all CurvePrimitives support these modes.\n * @public\n */\nexport enum CurveExtendMode {\n /** No extension allowed. */\n None = 0,\n /** Extend along continuation of the end tangent. */\n OnTangent = 1,\n /** Extend along continuation of the curve. */\n OnCurve = 2,\n}\n/**\n * Logic for deciding how a curve may be extended for closest point or intersection searches.\n * @public\n */\nexport class CurveExtendOptions {\n /**\n * Given a `VariantCurveExtendParameter`, isolate the particular CurveExtendMode in effect at an end.\n * * Return `CurveExtendMode.None` if `param === false`.\n * * Return `CurveExtendMode.OnCurve` if `param === true`.\n * * Return the param if it is a single CurveExtendMode.\n * * Return dereferenced array at entry `endIndex` if the param is an array of CurveExtendMode.\n */\n public static resolveVariantCurveExtendParameterToCurveExtendMode(\n param: VariantCurveExtendParameter, endIndex: 0 | 1,\n ): CurveExtendMode {\n if (param === false)\n return CurveExtendMode.None;\n if (param === true)\n return CurveExtendMode.OnCurve;\n if (Array.isArray(param))\n return param.length > endIndex ? param[endIndex] : CurveExtendMode.None;\n return param;\n }\n /**\n * Correct fraction to be within [0,1].\n * * If fraction is in [0,1] return it unchanged.\n * * If fraction is less than 0 use `extendParam` to decide whether to return it unchanged, or to return 0.\n * * If fraction is greater than 1 use `extendParam` to decide whether to return it unchanged, or to return 1.\n */\n public static correctFraction(extendParam: VariantCurveExtendParameter, fraction: number): number {\n if (fraction < 0) {\n const mode = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 0);\n if (mode === CurveExtendMode.None)\n fraction = 0.0;\n } else if (fraction > 1.0) {\n const mode = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 1);\n if (mode === CurveExtendMode.None)\n fraction = 1.0;\n }\n return fraction;\n }\n /**\n * Adjust a radians value to an angle sweep, allowing the extendParam to affect choice among periodic fractions.\n * * If radians is within the sweep, convert it to a fraction of the sweep.\n * * If radians is outside, use the extendParam to choose among:\n * * fraction below 0.\n * * fraction above 1.\n */\n public static resolveRadiansToSweepFraction(\n extendParam: VariantCurveExtendParameter, radians: number, sweep: AngleSweep,\n ): number {\n let fraction = sweep.radiansToSignedPeriodicFraction(radians);\n if (!sweep.isRadiansInSweep(radians)) {\n const fractionPeriod = sweep.fractionPeriod();\n const mode0 = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 0);\n const mode1 = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 1);\n if (mode0 !== CurveExtendMode.None) {\n if (mode1 !== CurveExtendMode.None) {\n // both extensions possible; let the sweep resolve to the \"closer\" end\n fraction = sweep.radiansToSignedPeriodicFraction(radians);\n } else {\n // only extend to negative\n if (fraction > 1.0)\n fraction -= fractionPeriod;\n }\n } else if (mode1 !== CurveExtendMode.None) {\n if (fraction < 0.0)\n fraction += fractionPeriod;\n } else { // both clamped\n fraction = Geometry.clamp(fraction, 0, 1);\n }\n }\n return fraction;\n }\n}\n/**\n * Variant options for extending a curve.\n * * Useful for specifying either a single boolean/`CurveExtendMode` option applicable to both ends of the curve,\n * or an array of options, the first entry of which applies to the curve start; the second, to curve end.\n * @public\n */\nexport type VariantCurveExtendParameter = boolean | CurveExtendMode | CurveExtendMode[];\n"]}
@@ -23,13 +23,14 @@ import { Path } from "./Path";
23
23
  import { IntegratedSpiralTypeName } from "./spiral/TransitionSpiral3d";
24
24
  import { StrokeOptions } from "./StrokeOptions";
25
25
  /**
26
- * Interface to carry parallel arrays of planes and sections, and optional geometry assembled from them, as returned by [CurveFactory.createMiteredSweepSections].
26
+ * Interface to carry parallel arrays of planes and sections, and optional geometry assembled from them,
27
+ * as returned by [CurveFactory.createMiteredSweepSections].
27
28
  * @public
28
29
  */
29
30
  export interface SectionSequenceWithPlanes {
30
- /** the plane of each section */
31
+ /** The plane of each section. */
31
32
  planes: Plane3dByOriginAndUnitNormal[];
32
- /** section curve projected onto the corresponding plane */
33
+ /** Section curve projected onto the corresponding plane. */
33
34
  sections: AnyCurve[];
34
35
  /**
35
36
  * Optional `RuledSweep` generated from the sections.
@@ -60,17 +61,21 @@ export interface MiteredSweepOptions {
60
61
  wrapIfPhysicallyClosed?: boolean;
61
62
  /** Whether to output sections only, or sections plus optional geometry constructed from them. Default value is `MiteredSweepOutputSelect.Sections`. */
62
63
  outputSelect?: MiteredSweepOutputSelect;
63
- /** How to stroke the ruled sweep if outputting a mesh. If undefined, default stroke options are used. */
64
+ /** How to stroke smooth input curves. If undefined, default stroke options are used. */
64
65
  strokeOptions?: StrokeOptions;
65
66
  /** Whether to cap the ruled sweep if outputting a ruled sweep or mesh. Default value is `false`. */
66
67
  capped?: boolean;
68
+ /** The first section's normal is aligned to this vector, typically the start tangent of the smooth curve stroked for the centerline. */
69
+ startTangent?: Vector3d;
70
+ /** The last section's normal is aligned to this vector, typically the end tangent of the smooth curve stroked for the centerline. */
71
+ endTangent?: Vector3d;
67
72
  }
68
73
  /**
69
74
  * The `CurveFactory` class contains methods for specialized curve constructions.
70
75
  * @public
71
76
  */
72
77
  export declare class CurveFactory {
73
- /** (cautiously) construct and save a line segment between fractional positions. */
78
+ /** (Cautiously) construct and save a line segment between fractional positions. */
74
79
  private static addPartialSegment;
75
80
  /**
76
81
  * Create a circular arc defined by start point, tangent at start point, and end point.
@@ -89,23 +94,25 @@ export declare class CurveFactory {
89
94
  * @param allowBackupAlongEdge true to allow edges to be created going "backwards" along edges if needed to create the blend.
90
95
  */
91
96
  static createFilletsInLineString(points: LineString3d | IndexedXYZCollection | Point3d[], radius: number | number[], allowBackupAlongEdge?: boolean): Path | undefined;
92
- /** Create a `Loop` with given xy corners and fixed z.
97
+ /**
98
+ * Create a `Loop` with given xy corners and fixed z.
93
99
  * * The corners always proceed counter clockwise from lower left.
94
100
  * * If the radius is too large for the outer rectangle size, it is reduced to half of the the smaller x or y size.
95
- */
101
+ */
96
102
  static createRectangleXY(x0: number, y0: number, x1: number, y1: number, z?: number, filletRadius?: number): Loop;
97
103
  /**
98
104
  * If `arcB` is a continuation of `arcA`, extend `arcA` (in place) to include the range of `arcB`
99
105
  * * This only succeeds if the two arcs are part of identical complete arcs and end of `arcA` matches the beginning of `arcB`.
100
- * @param arcA first arc, modified in place
101
- * @param arcB second arc, unmodified
102
- * @param allowReversed whether to consolidate even when second arc is reversed
103
- * @returns whether `arcA` was modified
106
+ * @param arcA first arc, modified in place.
107
+ * @param arcB second arc, unmodified.
108
+ * @param allowReversed whether to consolidate even when second arc is reversed.
109
+ * @returns whether `arcA` was modified.
104
110
  */
105
111
  static appendToArcInPlace(arcA: Arc3d, arcB: Arc3d, allowReverse?: boolean): boolean;
106
112
  /**
107
113
  * Return a `Path` containing arcs are on the surface of an ellipsoid and pass through a sequence of points.
108
- * * Each arc passes through the two given endpoints and in the plane containing the true surface normal at given `fractionForIntermediateNormal`
114
+ * * Each arc passes through the two given endpoints and in the plane containing the true surface normal at
115
+ * given `fractionForIntermediateNormal`
109
116
  * @param ellipsoid
110
117
  * @param pathPoints
111
118
  * @param fractionForIntermediateNormal fractional position for surface normal used to create the section plane.
@@ -114,39 +121,71 @@ export declare class CurveFactory {
114
121
  private static appendGeometryQueryArray;
115
122
  /**
116
123
  * Create solid primitives for pipe segments (e.g. Cone or TorusPipe) around line and arc primitives.
117
- * @param centerline centerline geometry/
124
+ * @param centerline centerline geometry.
118
125
  * @param pipeRadius radius of pipe.
119
126
  */
120
127
  static createPipeSegments(centerline: CurvePrimitive | CurveChain, pipeRadius: number): GeometryQuery | GeometryQuery[] | undefined;
128
+ /** Get start point and tangent for variant curve data. */
129
+ private static startPointAndTangent;
130
+ /** Create an [[Arc3d]] from `sectionData` that has its center at the start point of the centerline. */
131
+ static createArcFromSectionData(centerline: IndexedXYZCollection | Point3d[] | CurvePrimitive, sectionData: number | XAndY | Arc3d): Arc3d | undefined;
121
132
  /**
122
- * * Create section arcs for mitered pipe.
123
- * * At each end of each pipe, the pipe is cut by the plane that bisects the angle between successive pipe centerlines.
124
- * * The arc definitions are constructed so that lines between corresponding fractional positions on the arcs are
125
- * axial lines on the pipes.
126
- * * This means that each arc definition axes (aka vector0 and vector90) are _not_ perpendicular to each other.
127
- * * Circular or elliptical pipe cross sections can be specified by supplying either a radius, a pair of semi-axis lengths, or a full Arc3d.
128
- * * For semi-axis length input, x corresponds to an ellipse local axis nominally situated parallel to the xy-plane.
129
- * * The center of Arc3d input is translated to the centerline start point to act as initial cross section.
130
- * @param centerline centerline of pipe
131
- * @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d
133
+ * Create section arcs for mitered pipe.
134
+ * * At the end of each pipe segment, the pipe is mitered by the plane that bisects the angle between successive
135
+ * centerline segments.
136
+ * * The section arcs are constructed so that lines between corresponding fractional positions on the arcs are
137
+ * axial lines on the pipes.
138
+ * * This means that the initial arc's vector0 and vector90 lengths and angular separation are _not_ preserved in
139
+ * the section arcs.
140
+ * * Circular or elliptical pipe cross sections can be specified by supplying either a radius, a pair of semi-axis
141
+ * lengths, or an Arc3d:
142
+ * * For semi-axis length input, x and y correspond to ellipse local axes perpendicular to each other and to the
143
+ * start tangent.
144
+ * * For Arc3d input, the center is translated to the centerline start point. For best results, ensure this arc
145
+ * is perpendicular to the centerline start tangent.
146
+ * * This function internally calls [[createMiteredSweepSections]] with default options.
147
+ * @param centerline centerline of pipe. For best results, ensure no successive duplicate points with e.g.,
148
+ * [[GrowableXYZArray.createCompressed]].
149
+ * @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d (if not full, function makes it full).
150
+ * @returns array of sections or empty array if section creation failed.
132
151
  */
133
152
  static createMiteredPipeSections(centerline: IndexedXYZCollection, sectionData: number | XAndY | Arc3d): Arc3d[];
153
+ /** For a smooth curve, stroke and return unnormalized start/end tangents. */
154
+ private static strokeSmoothCurve;
155
+ /**
156
+ * Align two bisector plane normals to given smooth rail tangents or optional overrides.
157
+ * * Optionally average the normals for physically closed rail.
158
+ */
159
+ private static alignFirstAndLastBisectorPlanes;
160
+ /** Reverse a closed curve or region if necessary so that its orientation is CCW with respect to the plane normal. */
161
+ private static alignClosedCurveToPlane;
134
162
  /**
135
- * Sweep the initialSection along each segment of the centerLine until it hits the bisector plane at the next vertex.
136
- * * The caller should place the initialSection on a plane perpendicular to the first edge.
137
- * * This plane is commonly (but not necessarily) through the start point itself.
138
- * * If the geometry is not "on a perpendicular plane", the output geometry will still be flattened onto the various planes.
139
- * * In the "open path" case (i.e when wrapIfPhysicallyClosed is false or the path does not have matched first and last points)
140
- * the first/last output plane will be at the start/end of the first/last edge and on a perpendicular plane.
141
- * * In the "closed path" case, the output plane for the first and last point is the bisector of the start and end planes from the "open path" case,
142
- * and the first/last section geometry may be different from `initialSection`.
143
- * * The centerline path does NOT have to be planar, however twisting effects effects will appear in the various bisector planes.
144
- * @param centerline sweep path, e.g., as stroked from a smooth centerline curve
145
- * @param initialSection profile curve to be swept. As noted above, this should be on a plane perpendicular to the first segment of the centerline.
146
- * @param options options for computation and output
147
- * @return array of sections, starting with `initialSection` projected along the first edge to the first plane.
163
+ * Projection to target plane, constructing sweep direction from two given planes.
164
+ * * If successful, push the target plane and swept section to the output arrays and return the swept section.
165
+ * * If unsuccessful, leave the output arrays alone and return the input section.
148
166
  */
149
- static createMiteredSweepSections(centerline: IndexedXYZCollection | Point3d[], initialSection: AnyCurve, options: MiteredSweepOptions): SectionSequenceWithPlanes | undefined;
167
+ private static doSweepToPlane;
168
+ /**
169
+ * Sweep the `initialSection` along each segment of the (stroked) `centerline` until it hits the bisector plane at
170
+ * the next vertex.
171
+ * * For best results, the caller should place `initialSection` in a plane perpendicular to the `centerline`
172
+ * start tangent.
173
+ * * This plane is commonly (but not necessarily) through the centerline start point itself.
174
+ * * To compute the sections, `initialSection` is projected in the direction of the centerline start tangent onto
175
+ * the first bisector plane at the centerline start. The result of this projection will be likewise projected onto
176
+ * the second plane, and so on in sequence.
177
+ * * By default, the first/last bisector plane normals are set to the centerline start/end tangents. The caller can
178
+ * override these with tangents supplied in `options`. If the centerline is physically closed and
179
+ * `options.wrapIfPhysicallyClosed` is true, the first and last plane normals are averaged and equated.
180
+ * * The centerline path does NOT have to be planar, however non-planarity will result in twisting of the sections
181
+ * in the bisector planes.
182
+ * @param centerline sweep path. Will be stroked if smooth.
183
+ * @param initialSection profile curve to be swept. As noted above, this should be on a plane perpendicular to the
184
+ * centerline start tangent.
185
+ * @param options options for computation and output.
186
+ * @return array of sections, formed from projecting `initialSection` successively onto the bisector planes.
187
+ */
188
+ static createMiteredSweepSections(centerline: IndexedXYZCollection | Point3d[] | CurvePrimitive | CurveChain, initialSection: AnyCurve, options?: MiteredSweepOptions): SectionSequenceWithPlanes | undefined;
150
189
  /**
151
190
  * Create a circular arc from start point, tangent at start, radius, optional plane normal, arc sweep.
152
191
  * * The vector from start point to center is in the direction of upVector crossed with tangentA.
@@ -160,11 +199,11 @@ export declare class CurveFactory {
160
199
  /**
161
200
  * Compute 2 spirals (all in XY) for a symmetric line-to-line transition.
162
201
  * * First spiral begins at given start point.
163
- * * first tangent aims at shoulder
202
+ * * first tangent aims at shoulder.
164
203
  * * outbound spiral joins line from shoulder to target.
165
- * @param spiralType name of spiral type. THIS MUST BE AN "Integrated" SPIRAL TYPE
204
+ * @param spiralType name of spiral type. THIS MUST BE AN "Integrated" SPIRAL TYPE.
166
205
  * @param startPoint inbound start point.
167
- * @param shoulder point target point for (both) spiral-to-line tangencies
206
+ * @param shoulder point target point for (both) spiral-to-line tangencies.
168
207
  * @return array with the computed spirals, or undefined if failure.
169
208
  */
170
209
  static createLineSpiralSpiralLine(spiralType: IntegratedSpiralTypeName, startPoint: Point3d, shoulderPoint: Point3d, targetPoint: Point3d): GeometryQuery[] | undefined;
@@ -172,30 +211,25 @@ export declare class CurveFactory {
172
211
  * Compute 2 spirals (all in XY) for a symmetric line-to-line transition.
173
212
  * * Spiral length is given.
174
213
  * * tangency points float on both lines.
175
- * @param spiralType name of spiral type. THIS MUST BE AN "Integrated" SPIRAL TYPE
214
+ * @param spiralType name of spiral type. THIS MUST BE AN "Integrated" SPIRAL TYPE.
176
215
  * @param pointA inbound start point.
177
- * @param shoulder point target point for (both) spiral-to-line tangencies
216
+ * @param shoulder point target point for (both) spiral-to-line tangencies.
178
217
  * @param spiralLength for each part of the spiral pair.
179
218
  * @return array with the computed spirals, or undefined if failure.
180
219
  */
181
220
  static createLineSpiralSpiralLineWithSpiralLength(spiralType: IntegratedSpiralTypeName, pointA: Point3d, pointB: Point3d, pointC: Point3d, spiralLength: number): GeometryQuery[] | undefined;
182
221
  /**
183
222
  * Compute 2 spirals and an arc (all in XY) for a symmetric line-to-line transition.
184
- * Spiral lengths and arc radius are given. (e.g. from design speed standards.)
185
- * @param spiralType name of spiral type. THIS MUST BE AN "Integrated" SPIRAL TYPE
223
+ * Spiral lengths and arc radius are given (e.g., from design speed standards).
224
+ * @param spiralType name of spiral type. THIS MUST BE AN "Integrated" SPIRAL TYPE.
186
225
  * @param pointA inbound start point.
187
- * @param pointB shoulder (target) point for (both) spiral-to-line tangencies
188
- * @param lengthA inbound spiral length
189
- * @param lengthB outbound spiral length
226
+ * @param pointB shoulder (target) point for (both) spiral-to-line tangencies.
227
+ * @param lengthA inbound spiral length.
228
+ * @param lengthB outbound spiral length.
190
229
  * @return array with the computed spirals, or undefined if failure.
191
230
  */
192
231
  static createLineSpiralArcSpiralLine(spiralType: IntegratedSpiralTypeName, pointA: Point3d, pointB: Point3d, pointC: Point3d, lengthA: number, lengthB: number, arcRadius: number): GeometryQuery[] | undefined;
193
- /**
194
- * Return the intersection point of 3 planes.
195
- * @param planeA
196
- * @param planeB
197
- * @param planeC
198
- */
232
+ /** Return the intersection point of 3 planes. */
199
233
  static planePlaneIntersectionRay(planeA: PlaneAltitudeEvaluator, planeB: PlaneAltitudeEvaluator): Ray3d | undefined;
200
234
  }
201
235
  //# sourceMappingURL=CurveFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CurveFactory.d.ts","sourceRoot":"","sources":["../../../src/curve/CurveFactory.ts"],"names":[],"mappings":"AAKA;;GAEG;AAIH,OAAO,EAAkC,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAG1F,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAG5C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB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