@itwin/core-geometry 4.0.0-dev.4 → 4.0.0-dev.41
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.
- package/CHANGELOG.md +17 -3
- package/lib/cjs/Geometry.d.ts +56 -16
- package/lib/cjs/Geometry.d.ts.map +1 -1
- package/lib/cjs/Geometry.js +87 -30
- package/lib/cjs/Geometry.js.map +1 -1
- package/lib/cjs/bspline/BSplineCurveOps.js +4 -5
- package/lib/cjs/bspline/BSplineCurveOps.js.map +1 -1
- package/lib/cjs/bspline/InterpolationCurve3d.js +7 -10
- package/lib/cjs/bspline/InterpolationCurve3d.js.map +1 -1
- package/lib/cjs/clipping/ClipPrimitive.js +2 -2
- package/lib/cjs/clipping/ClipPrimitive.js.map +1 -1
- package/lib/cjs/clipping/ClipUtils.js +4 -4
- package/lib/cjs/clipping/ClipUtils.js.map +1 -1
- package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js +2 -2
- package/lib/cjs/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
- package/lib/cjs/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
- package/lib/cjs/curve/CurveChainWithDistanceIndex.js +20 -13
- package/lib/cjs/curve/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/cjs/curve/CurveCollection.js +1 -1
- package/lib/cjs/curve/CurveCollection.js.map +1 -1
- package/lib/cjs/curve/CurveCurve.d.ts +11 -8
- package/lib/cjs/curve/CurveCurve.d.ts.map +1 -1
- package/lib/cjs/curve/CurveCurve.js +16 -12
- package/lib/cjs/curve/CurveCurve.js.map +1 -1
- package/lib/cjs/curve/CurveCurveIntersectXY.d.ts +5 -1
- package/lib/cjs/curve/CurveCurveIntersectXY.d.ts.map +1 -1
- package/lib/cjs/curve/CurveCurveIntersectXY.js +11 -10
- package/lib/cjs/curve/CurveCurveIntersectXY.js.map +1 -1
- package/lib/cjs/curve/Loop.d.ts +2 -2
- package/lib/cjs/curve/Loop.d.ts.map +1 -1
- package/lib/cjs/curve/Loop.js +6 -0
- package/lib/cjs/curve/Loop.js.map +1 -1
- package/lib/cjs/curve/RegionOps.d.ts +10 -10
- package/lib/cjs/curve/RegionOps.d.ts.map +1 -1
- package/lib/cjs/curve/RegionOps.js +11 -11
- package/lib/cjs/curve/RegionOps.js.map +1 -1
- package/lib/cjs/curve/RegionOpsClassificationSweeps.d.ts +2 -1
- package/lib/cjs/curve/RegionOpsClassificationSweeps.d.ts.map +1 -1
- package/lib/cjs/curve/RegionOpsClassificationSweeps.js +5 -2
- package/lib/cjs/curve/RegionOpsClassificationSweeps.js.map +1 -1
- package/lib/cjs/curve/StrokeOptions.js +1 -2
- package/lib/cjs/curve/StrokeOptions.js.map +1 -1
- package/lib/cjs/curve/spiral/DirectSpiral3d.js +1 -2
- package/lib/cjs/curve/spiral/DirectSpiral3d.js.map +1 -1
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.js +1 -2
- package/lib/cjs/curve/spiral/IntegratedSpiral3d.js.map +1 -1
- package/lib/cjs/geometry3d/Angle.d.ts +19 -0
- package/lib/cjs/geometry3d/Angle.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Angle.js +39 -0
- package/lib/cjs/geometry3d/Angle.js.map +1 -1
- package/lib/cjs/geometry3d/AngleSweep.d.ts +1 -0
- package/lib/cjs/geometry3d/AngleSweep.d.ts.map +1 -1
- package/lib/cjs/geometry3d/AngleSweep.js +1 -0
- package/lib/cjs/geometry3d/AngleSweep.js.map +1 -1
- package/lib/cjs/geometry3d/BarycentricTriangle.d.ts +195 -8
- package/lib/cjs/geometry3d/BarycentricTriangle.d.ts.map +1 -1
- package/lib/cjs/geometry3d/BarycentricTriangle.js +459 -11
- package/lib/cjs/geometry3d/BarycentricTriangle.js.map +1 -1
- package/lib/cjs/geometry3d/CoincidentGeometryOps.d.ts +1 -0
- package/lib/cjs/geometry3d/CoincidentGeometryOps.d.ts.map +1 -1
- package/lib/cjs/geometry3d/CoincidentGeometryOps.js +3 -0
- package/lib/cjs/geometry3d/CoincidentGeometryOps.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableFloat64Array.js +2 -2
- package/lib/cjs/geometry3d/GrowableFloat64Array.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYArray.d.ts +1 -1
- package/lib/cjs/geometry3d/GrowableXYArray.d.ts.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYArray.js +2 -2
- package/lib/cjs/geometry3d/GrowableXYArray.js.map +1 -1
- package/lib/cjs/geometry3d/GrowableXYZArray.js +1 -1
- package/lib/cjs/geometry3d/GrowableXYZArray.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.d.ts +22 -7
- package/lib/cjs/geometry3d/IndexedXYCollection.d.ts.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYCollection.js +41 -5
- package/lib/cjs/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts +58 -4
- package/lib/cjs/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
- package/lib/cjs/geometry3d/IndexedXYZCollection.js +102 -4
- package/lib/cjs/geometry3d/IndexedXYZCollection.js.map +1 -1
- package/lib/cjs/geometry3d/Matrix3d.d.ts +479 -265
- package/lib/cjs/geometry3d/Matrix3d.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Matrix3d.js +996 -784
- package/lib/cjs/geometry3d/Matrix3d.js.map +1 -1
- package/lib/cjs/geometry3d/OrderedRotationAngles.d.ts +1 -0
- package/lib/cjs/geometry3d/OrderedRotationAngles.d.ts.map +1 -1
- package/lib/cjs/geometry3d/OrderedRotationAngles.js +1 -0
- package/lib/cjs/geometry3d/OrderedRotationAngles.js.map +1 -1
- package/lib/cjs/geometry3d/Point2dArrayCarrier.d.ts +10 -0
- package/lib/cjs/geometry3d/Point2dArrayCarrier.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Point2dArrayCarrier.js +14 -0
- package/lib/cjs/geometry3d/Point2dArrayCarrier.js.map +1 -1
- package/lib/cjs/geometry3d/Point2dVector2d.js +4 -6
- package/lib/cjs/geometry3d/Point2dVector2d.js.map +1 -1
- package/lib/cjs/geometry3d/Point3dArrayCarrier.d.ts +0 -6
- package/lib/cjs/geometry3d/Point3dArrayCarrier.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Point3dArrayCarrier.js +0 -6
- package/lib/cjs/geometry3d/Point3dArrayCarrier.js.map +1 -1
- package/lib/cjs/geometry3d/Point3dVector3d.d.ts +57 -57
- package/lib/cjs/geometry3d/Point3dVector3d.d.ts.map +1 -1
- package/lib/cjs/geometry3d/Point3dVector3d.js +63 -65
- package/lib/cjs/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/cjs/geometry3d/PointHelpers.d.ts +14 -1
- package/lib/cjs/geometry3d/PointHelpers.d.ts.map +1 -1
- package/lib/cjs/geometry3d/PointHelpers.js +33 -1
- package/lib/cjs/geometry3d/PointHelpers.js.map +1 -1
- package/lib/cjs/geometry3d/PolygonOps.d.ts +127 -19
- package/lib/cjs/geometry3d/PolygonOps.d.ts.map +1 -1
- package/lib/cjs/geometry3d/PolygonOps.js +420 -22
- package/lib/cjs/geometry3d/PolygonOps.js.map +1 -1
- package/lib/cjs/geometry3d/Ray3d.js +1 -1
- package/lib/cjs/geometry3d/Ray3d.js.map +1 -1
- package/lib/cjs/geometry3d/Segment1d.d.ts +1 -1
- package/lib/cjs/geometry3d/Segment1d.js +1 -1
- package/lib/cjs/geometry3d/Segment1d.js.map +1 -1
- package/lib/cjs/numerics/Polynomials.d.ts +12 -0
- package/lib/cjs/numerics/Polynomials.d.ts.map +1 -1
- package/lib/cjs/numerics/Polynomials.js +14 -0
- package/lib/cjs/numerics/Polynomials.js.map +1 -1
- package/lib/cjs/polyface/AuxData.js +1 -1
- package/lib/cjs/polyface/AuxData.js.map +1 -1
- package/lib/cjs/polyface/FacetLocationDetail.d.ts +264 -0
- package/lib/cjs/polyface/FacetLocationDetail.d.ts.map +1 -0
- package/lib/cjs/polyface/FacetLocationDetail.js +376 -0
- package/lib/cjs/polyface/FacetLocationDetail.js.map +1 -0
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts +2 -5
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.js +5 -2
- package/lib/cjs/polyface/IndexedPolyfaceVisitor.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceBuilder.d.ts +24 -14
- package/lib/cjs/polyface/PolyfaceBuilder.d.ts.map +1 -1
- package/lib/cjs/polyface/PolyfaceBuilder.js +74 -23
- package/lib/cjs/polyface/PolyfaceBuilder.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceClip.js +6 -7
- package/lib/cjs/polyface/PolyfaceClip.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceData.d.ts +1 -1
- package/lib/cjs/polyface/PolyfaceData.d.ts.map +1 -1
- package/lib/cjs/polyface/PolyfaceData.js.map +1 -1
- package/lib/cjs/polyface/PolyfaceQuery.d.ts +76 -1
- package/lib/cjs/polyface/PolyfaceQuery.d.ts.map +1 -1
- package/lib/cjs/polyface/PolyfaceQuery.js +123 -3
- package/lib/cjs/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.d.ts +202 -0
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.d.ts.map +1 -0
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.js +1038 -0
- package/lib/cjs/polyface/multiclip/OffsetMeshContext.js.map +1 -0
- package/lib/cjs/serialization/BGFBReader.js +4 -4
- package/lib/cjs/serialization/BGFBReader.js.map +1 -1
- package/lib/cjs/serialization/GeometrySamples.d.ts +8 -6
- package/lib/cjs/serialization/GeometrySamples.d.ts.map +1 -1
- package/lib/cjs/serialization/GeometrySamples.js +26 -19
- package/lib/cjs/serialization/GeometrySamples.js.map +1 -1
- package/lib/cjs/serialization/IModelJsonSchema.js +1 -2
- package/lib/cjs/serialization/IModelJsonSchema.js.map +1 -1
- package/lib/cjs/solid/Sphere.d.ts +5 -5
- package/lib/cjs/solid/Sphere.js +5 -5
- package/lib/cjs/solid/Sphere.js.map +1 -1
- package/lib/cjs/solid/SweepContour.d.ts.map +1 -1
- package/lib/cjs/solid/SweepContour.js +8 -1
- package/lib/cjs/solid/SweepContour.js.map +1 -1
- package/lib/cjs/topology/Graph.d.ts +113 -7
- package/lib/cjs/topology/Graph.d.ts.map +1 -1
- package/lib/cjs/topology/Graph.js +185 -7
- package/lib/cjs/topology/Graph.js.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.d.ts +38 -0
- package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.d.ts.map +1 -0
- package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.js +82 -0
- package/lib/cjs/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -0
- package/lib/cjs/topology/HalfEdgeGraphSearch.d.ts +2 -1
- package/lib/cjs/topology/HalfEdgeGraphSearch.d.ts.map +1 -1
- package/lib/cjs/topology/HalfEdgeGraphSearch.js +1 -0
- package/lib/cjs/topology/HalfEdgeGraphSearch.js.map +1 -1
- package/lib/cjs/topology/Triangulation.js +1 -1
- package/lib/cjs/topology/Triangulation.js.map +1 -1
- package/lib/esm/Geometry.d.ts +56 -16
- package/lib/esm/Geometry.d.ts.map +1 -1
- package/lib/esm/Geometry.js +86 -29
- package/lib/esm/Geometry.js.map +1 -1
- package/lib/esm/bspline/BSplineCurveOps.js +4 -5
- package/lib/esm/bspline/BSplineCurveOps.js.map +1 -1
- package/lib/esm/bspline/InterpolationCurve3d.js +7 -10
- package/lib/esm/bspline/InterpolationCurve3d.js.map +1 -1
- package/lib/esm/clipping/ClipPrimitive.js +2 -2
- package/lib/esm/clipping/ClipPrimitive.js.map +1 -1
- package/lib/esm/clipping/ClipUtils.js +4 -4
- package/lib/esm/clipping/ClipUtils.js.map +1 -1
- package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js +2 -2
- package/lib/esm/clipping/internalContexts/LineStringOffsetClipperContext.js.map +1 -1
- package/lib/esm/curve/CurveChainWithDistanceIndex.d.ts.map +1 -1
- package/lib/esm/curve/CurveChainWithDistanceIndex.js +21 -14
- package/lib/esm/curve/CurveChainWithDistanceIndex.js.map +1 -1
- package/lib/esm/curve/CurveCollection.js +1 -1
- package/lib/esm/curve/CurveCollection.js.map +1 -1
- package/lib/esm/curve/CurveCurve.d.ts +11 -8
- package/lib/esm/curve/CurveCurve.d.ts.map +1 -1
- package/lib/esm/curve/CurveCurve.js +16 -12
- package/lib/esm/curve/CurveCurve.js.map +1 -1
- package/lib/esm/curve/CurveCurveIntersectXY.d.ts +5 -1
- package/lib/esm/curve/CurveCurveIntersectXY.d.ts.map +1 -1
- package/lib/esm/curve/CurveCurveIntersectXY.js +11 -10
- package/lib/esm/curve/CurveCurveIntersectXY.js.map +1 -1
- package/lib/esm/curve/Loop.d.ts +2 -2
- package/lib/esm/curve/Loop.d.ts.map +1 -1
- package/lib/esm/curve/Loop.js +6 -0
- package/lib/esm/curve/Loop.js.map +1 -1
- package/lib/esm/curve/RegionOps.d.ts +10 -10
- package/lib/esm/curve/RegionOps.d.ts.map +1 -1
- package/lib/esm/curve/RegionOps.js +11 -11
- package/lib/esm/curve/RegionOps.js.map +1 -1
- package/lib/esm/curve/RegionOpsClassificationSweeps.d.ts +2 -1
- package/lib/esm/curve/RegionOpsClassificationSweeps.d.ts.map +1 -1
- package/lib/esm/curve/RegionOpsClassificationSweeps.js +5 -2
- package/lib/esm/curve/RegionOpsClassificationSweeps.js.map +1 -1
- package/lib/esm/curve/StrokeOptions.js +1 -2
- package/lib/esm/curve/StrokeOptions.js.map +1 -1
- package/lib/esm/curve/spiral/DirectSpiral3d.js +1 -2
- package/lib/esm/curve/spiral/DirectSpiral3d.js.map +1 -1
- package/lib/esm/curve/spiral/IntegratedSpiral3d.js +1 -2
- package/lib/esm/curve/spiral/IntegratedSpiral3d.js.map +1 -1
- package/lib/esm/geometry3d/Angle.d.ts +19 -0
- package/lib/esm/geometry3d/Angle.d.ts.map +1 -1
- package/lib/esm/geometry3d/Angle.js +39 -0
- package/lib/esm/geometry3d/Angle.js.map +1 -1
- package/lib/esm/geometry3d/AngleSweep.d.ts +1 -0
- package/lib/esm/geometry3d/AngleSweep.d.ts.map +1 -1
- package/lib/esm/geometry3d/AngleSweep.js +1 -0
- package/lib/esm/geometry3d/AngleSweep.js.map +1 -1
- package/lib/esm/geometry3d/BarycentricTriangle.d.ts +195 -8
- package/lib/esm/geometry3d/BarycentricTriangle.d.ts.map +1 -1
- package/lib/esm/geometry3d/BarycentricTriangle.js +459 -12
- package/lib/esm/geometry3d/BarycentricTriangle.js.map +1 -1
- package/lib/esm/geometry3d/CoincidentGeometryOps.d.ts +1 -0
- package/lib/esm/geometry3d/CoincidentGeometryOps.d.ts.map +1 -1
- package/lib/esm/geometry3d/CoincidentGeometryOps.js +3 -0
- package/lib/esm/geometry3d/CoincidentGeometryOps.js.map +1 -1
- package/lib/esm/geometry3d/GrowableFloat64Array.js +2 -2
- package/lib/esm/geometry3d/GrowableFloat64Array.js.map +1 -1
- package/lib/esm/geometry3d/GrowableXYArray.d.ts +1 -1
- package/lib/esm/geometry3d/GrowableXYArray.d.ts.map +1 -1
- package/lib/esm/geometry3d/GrowableXYArray.js +2 -2
- package/lib/esm/geometry3d/GrowableXYArray.js.map +1 -1
- package/lib/esm/geometry3d/GrowableXYZArray.js +1 -1
- package/lib/esm/geometry3d/GrowableXYZArray.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts +22 -7
- package/lib/esm/geometry3d/IndexedXYCollection.d.ts.map +1 -1
- package/lib/esm/geometry3d/IndexedXYCollection.js +41 -5
- package/lib/esm/geometry3d/IndexedXYCollection.js.map +1 -1
- package/lib/esm/geometry3d/IndexedXYZCollection.d.ts +58 -4
- package/lib/esm/geometry3d/IndexedXYZCollection.d.ts.map +1 -1
- package/lib/esm/geometry3d/IndexedXYZCollection.js +103 -5
- package/lib/esm/geometry3d/IndexedXYZCollection.js.map +1 -1
- package/lib/esm/geometry3d/Matrix3d.d.ts +479 -265
- package/lib/esm/geometry3d/Matrix3d.d.ts.map +1 -1
- package/lib/esm/geometry3d/Matrix3d.js +996 -784
- package/lib/esm/geometry3d/Matrix3d.js.map +1 -1
- package/lib/esm/geometry3d/OrderedRotationAngles.d.ts +1 -0
- package/lib/esm/geometry3d/OrderedRotationAngles.d.ts.map +1 -1
- package/lib/esm/geometry3d/OrderedRotationAngles.js +1 -0
- package/lib/esm/geometry3d/OrderedRotationAngles.js.map +1 -1
- package/lib/esm/geometry3d/Point2dArrayCarrier.d.ts +10 -0
- package/lib/esm/geometry3d/Point2dArrayCarrier.d.ts.map +1 -1
- package/lib/esm/geometry3d/Point2dArrayCarrier.js +14 -0
- package/lib/esm/geometry3d/Point2dArrayCarrier.js.map +1 -1
- package/lib/esm/geometry3d/Point2dVector2d.js +4 -6
- package/lib/esm/geometry3d/Point2dVector2d.js.map +1 -1
- package/lib/esm/geometry3d/Point3dArrayCarrier.d.ts +0 -6
- package/lib/esm/geometry3d/Point3dArrayCarrier.d.ts.map +1 -1
- package/lib/esm/geometry3d/Point3dArrayCarrier.js +0 -6
- package/lib/esm/geometry3d/Point3dArrayCarrier.js.map +1 -1
- package/lib/esm/geometry3d/Point3dVector3d.d.ts +57 -57
- package/lib/esm/geometry3d/Point3dVector3d.d.ts.map +1 -1
- package/lib/esm/geometry3d/Point3dVector3d.js +63 -65
- package/lib/esm/geometry3d/Point3dVector3d.js.map +1 -1
- package/lib/esm/geometry3d/PointHelpers.d.ts +14 -1
- package/lib/esm/geometry3d/PointHelpers.d.ts.map +1 -1
- package/lib/esm/geometry3d/PointHelpers.js +33 -1
- package/lib/esm/geometry3d/PointHelpers.js.map +1 -1
- package/lib/esm/geometry3d/PolygonOps.d.ts +127 -19
- package/lib/esm/geometry3d/PolygonOps.d.ts.map +1 -1
- package/lib/esm/geometry3d/PolygonOps.js +419 -22
- package/lib/esm/geometry3d/PolygonOps.js.map +1 -1
- package/lib/esm/geometry3d/Ray3d.js +1 -1
- package/lib/esm/geometry3d/Ray3d.js.map +1 -1
- package/lib/esm/geometry3d/Segment1d.d.ts +1 -1
- package/lib/esm/geometry3d/Segment1d.js +1 -1
- package/lib/esm/geometry3d/Segment1d.js.map +1 -1
- package/lib/esm/numerics/Polynomials.d.ts +12 -0
- package/lib/esm/numerics/Polynomials.d.ts.map +1 -1
- package/lib/esm/numerics/Polynomials.js +14 -0
- package/lib/esm/numerics/Polynomials.js.map +1 -1
- package/lib/esm/polyface/AuxData.js +1 -1
- package/lib/esm/polyface/AuxData.js.map +1 -1
- package/lib/esm/polyface/FacetLocationDetail.d.ts +264 -0
- package/lib/esm/polyface/FacetLocationDetail.d.ts.map +1 -0
- package/lib/esm/polyface/FacetLocationDetail.js +369 -0
- package/lib/esm/polyface/FacetLocationDetail.js.map +1 -0
- package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts +2 -5
- package/lib/esm/polyface/IndexedPolyfaceVisitor.d.ts.map +1 -1
- package/lib/esm/polyface/IndexedPolyfaceVisitor.js +5 -2
- package/lib/esm/polyface/IndexedPolyfaceVisitor.js.map +1 -1
- package/lib/esm/polyface/PolyfaceBuilder.d.ts +24 -14
- package/lib/esm/polyface/PolyfaceBuilder.d.ts.map +1 -1
- package/lib/esm/polyface/PolyfaceBuilder.js +74 -23
- package/lib/esm/polyface/PolyfaceBuilder.js.map +1 -1
- package/lib/esm/polyface/PolyfaceClip.js +6 -7
- package/lib/esm/polyface/PolyfaceClip.js.map +1 -1
- package/lib/esm/polyface/PolyfaceData.d.ts +1 -1
- package/lib/esm/polyface/PolyfaceData.d.ts.map +1 -1
- package/lib/esm/polyface/PolyfaceData.js.map +1 -1
- package/lib/esm/polyface/PolyfaceQuery.d.ts +76 -1
- package/lib/esm/polyface/PolyfaceQuery.d.ts.map +1 -1
- package/lib/esm/polyface/PolyfaceQuery.js +121 -2
- package/lib/esm/polyface/PolyfaceQuery.js.map +1 -1
- package/lib/esm/polyface/multiclip/OffsetMeshContext.d.ts +202 -0
- package/lib/esm/polyface/multiclip/OffsetMeshContext.d.ts.map +1 -0
- package/lib/esm/polyface/multiclip/OffsetMeshContext.js +1032 -0
- package/lib/esm/polyface/multiclip/OffsetMeshContext.js.map +1 -0
- package/lib/esm/serialization/BGFBReader.js +4 -4
- package/lib/esm/serialization/BGFBReader.js.map +1 -1
- package/lib/esm/serialization/GeometrySamples.d.ts +8 -6
- package/lib/esm/serialization/GeometrySamples.d.ts.map +1 -1
- package/lib/esm/serialization/GeometrySamples.js +26 -19
- package/lib/esm/serialization/GeometrySamples.js.map +1 -1
- package/lib/esm/serialization/IModelJsonSchema.js +1 -2
- package/lib/esm/serialization/IModelJsonSchema.js.map +1 -1
- package/lib/esm/solid/Sphere.d.ts +5 -5
- package/lib/esm/solid/Sphere.js +5 -5
- package/lib/esm/solid/Sphere.js.map +1 -1
- package/lib/esm/solid/SweepContour.d.ts.map +1 -1
- package/lib/esm/solid/SweepContour.js +8 -1
- package/lib/esm/solid/SweepContour.js.map +1 -1
- package/lib/esm/topology/Graph.d.ts +113 -7
- package/lib/esm/topology/Graph.d.ts.map +1 -1
- package/lib/esm/topology/Graph.js +185 -7
- package/lib/esm/topology/Graph.js.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.d.ts +38 -0
- package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.d.ts.map +1 -0
- package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.js +78 -0
- package/lib/esm/topology/HalfEdgeGraphFromIndexedLoopsContext.js.map +1 -0
- package/lib/esm/topology/HalfEdgeGraphSearch.d.ts +2 -1
- package/lib/esm/topology/HalfEdgeGraphSearch.d.ts.map +1 -1
- package/lib/esm/topology/HalfEdgeGraphSearch.js +1 -0
- package/lib/esm/topology/HalfEdgeGraphSearch.js.map +1 -1
- package/lib/esm/topology/Triangulation.js +1 -1
- package/lib/esm/topology/Triangulation.js.map +1 -1
- package/package.json +5 -5
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { LineSegment3d } from "../curve/LineSegment3d";
|
|
9
9
|
import { Geometry } from "../Geometry";
|
|
10
|
+
import { Angle } from "../geometry3d/Angle";
|
|
10
11
|
import { Point2d, Vector2d } from "../geometry3d/Point2dVector2d";
|
|
11
12
|
import { Point3d, Vector3d } from "../geometry3d/Point3dVector3d";
|
|
12
13
|
import { SmallSystem } from "../numerics/Polynomials";
|
|
@@ -98,6 +99,7 @@ export class HalfEdge {
|
|
|
98
99
|
this.sortAngle = undefined;
|
|
99
100
|
this.sortData = undefined;
|
|
100
101
|
this.edgeTag = undefined;
|
|
102
|
+
this.faceTag = undefined;
|
|
101
103
|
// Always created in pairs, init here to make TS compiler and JS runtime happy
|
|
102
104
|
this._facePredecessor = this;
|
|
103
105
|
this._faceSuccessor = this;
|
|
@@ -218,6 +220,36 @@ export class HalfEdge {
|
|
|
218
220
|
}
|
|
219
221
|
return newA;
|
|
220
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* * Create a new sliver face "inside" an existing edge.
|
|
225
|
+
* * Insert it "within" the base edge.
|
|
226
|
+
* * This requires two new half edges.
|
|
227
|
+
* * if the base is undefined, create a single-edge loop.
|
|
228
|
+
* * This (unlike pinch) breaks the edgeMate pairing of the base edge.
|
|
229
|
+
* * This preserves xyz and i properties at all existing vertices.
|
|
230
|
+
* * The two new half edges are a sliver face (via their predecessor and successor)
|
|
231
|
+
* * Each new edge mates to one existing edge.
|
|
232
|
+
* @returns Returns the reference to the half edge created.
|
|
233
|
+
*/
|
|
234
|
+
static splitEdgeCreateSliverFace(baseA, heArray) {
|
|
235
|
+
// raw edges ...
|
|
236
|
+
const newA = new HalfEdge();
|
|
237
|
+
const newB = new HalfEdge();
|
|
238
|
+
const baseB = baseA.edgeMate;
|
|
239
|
+
if (heArray) {
|
|
240
|
+
heArray.push(newA);
|
|
241
|
+
heArray.push(newB);
|
|
242
|
+
}
|
|
243
|
+
newA._faceSuccessor = newA._facePredecessor = newB;
|
|
244
|
+
newB._faceSuccessor = newB._facePredecessor = newA;
|
|
245
|
+
// newA is in vertex loop with baseA etc.
|
|
246
|
+
// newA mates to baseB
|
|
247
|
+
HalfEdge.setEdgeMates(newA, baseB);
|
|
248
|
+
HalfEdge.setEdgeMates(newB, baseA);
|
|
249
|
+
newA.copyDataFrom(baseA, true, true, false, false);
|
|
250
|
+
newB.copyDataFrom(baseB, true, true, false, false);
|
|
251
|
+
return newA;
|
|
252
|
+
}
|
|
221
253
|
/**
|
|
222
254
|
* Copy "edge based" content of fromNode to toNode
|
|
223
255
|
* * edgeTag
|
|
@@ -428,6 +460,35 @@ export class HalfEdge {
|
|
|
428
460
|
}
|
|
429
461
|
return count;
|
|
430
462
|
}
|
|
463
|
+
/** Returns the first node with given mask value around this vertex loop. */
|
|
464
|
+
findMaskAroundVertex(mask, value = true) {
|
|
465
|
+
let node = this;
|
|
466
|
+
do {
|
|
467
|
+
if (node.isMaskSet(mask) === value)
|
|
468
|
+
return node;
|
|
469
|
+
node = node.vertexSuccessor;
|
|
470
|
+
} while (node !== this);
|
|
471
|
+
return undefined;
|
|
472
|
+
}
|
|
473
|
+
/** Returns the first node with given mask value around this face loop. */
|
|
474
|
+
findMaskAroundFace(mask, value = true) {
|
|
475
|
+
let node = this;
|
|
476
|
+
do {
|
|
477
|
+
if (node.isMaskSet(mask) === value)
|
|
478
|
+
return node;
|
|
479
|
+
node = node.faceSuccessor;
|
|
480
|
+
} while (node !== this);
|
|
481
|
+
return undefined;
|
|
482
|
+
}
|
|
483
|
+
/** Returns the first node with given mask value on this edge (i.e. examining this and this.mate) */
|
|
484
|
+
findMaskAroundEdge(mask, value = true) {
|
|
485
|
+
if (this.isMaskSet(mask) === value)
|
|
486
|
+
return this;
|
|
487
|
+
const mate = this.edgeMate;
|
|
488
|
+
if (mate.isMaskSet(mask) === value)
|
|
489
|
+
return mate;
|
|
490
|
+
return undefined;
|
|
491
|
+
}
|
|
431
492
|
/** Set a mask, and return prior value.
|
|
432
493
|
* @param mask mask to apply
|
|
433
494
|
*/
|
|
@@ -445,6 +506,15 @@ export class HalfEdge {
|
|
|
445
506
|
this.y = node.y;
|
|
446
507
|
this.z = node.z;
|
|
447
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* Set (copy) the this.x, this.y, this.z from xyz.x, xyz.y, xyz.z
|
|
511
|
+
* @param node source with x,y,z properties
|
|
512
|
+
*/
|
|
513
|
+
setXYZ(xyz) {
|
|
514
|
+
this.x = xyz.x;
|
|
515
|
+
this.y = xyz.y;
|
|
516
|
+
this.z = xyz.z;
|
|
517
|
+
}
|
|
448
518
|
/**
|
|
449
519
|
* Test if mask bits are set in the node's bitMask.
|
|
450
520
|
* @return Return true (as a simple boolean, not a mask) if any bits of the mask parameter match bits of the node's bitMask
|
|
@@ -534,6 +604,10 @@ export class HalfEdge {
|
|
|
534
604
|
const s = `${node.id.toString()}+${HalfEdge.nodeToMaskString(node)}[${node.x},${node.y}]`;
|
|
535
605
|
return s;
|
|
536
606
|
}
|
|
607
|
+
/** Return the [id, [x,y],z] of a node. Useful for collector methods. */
|
|
608
|
+
static nodeToIdXYZString(node) {
|
|
609
|
+
return `[${node.id.toString()}: ${node.x},${node.y},${node.z}]`;
|
|
610
|
+
}
|
|
537
611
|
/** Create a string representation of the mask
|
|
538
612
|
* * Null mask is empty string.
|
|
539
613
|
* * Appended characters B,P,X for Boundary, Primary, Exterior mask bits.
|
|
@@ -558,7 +632,13 @@ export class HalfEdge {
|
|
|
558
632
|
}
|
|
559
633
|
/** Return Vector3d to face successor */
|
|
560
634
|
vectorToFaceSuccessor(result) {
|
|
561
|
-
|
|
635
|
+
const other = this.faceSuccessor;
|
|
636
|
+
return Vector3d.create(other.x - this.x, other.y - this.y, other.z - this.z, result);
|
|
637
|
+
}
|
|
638
|
+
/** Return Vector3d to face successor */
|
|
639
|
+
vectorToFacePredecessor(result) {
|
|
640
|
+
const other = this.facePredecessor;
|
|
641
|
+
return Vector3d.create(other.x - this.x, other.y - this.y, other.z - this.z, result);
|
|
562
642
|
}
|
|
563
643
|
/** test if spaceNode is in the sector at sectorNode */
|
|
564
644
|
static isNodeVisibleInSector(spaceNode, sectorNode) {
|
|
@@ -682,6 +762,14 @@ export class HalfEdge {
|
|
|
682
762
|
static testNodeMaskNotExterior(node) { return !node.isMaskSet(HalfEdgeMask.EXTERIOR); }
|
|
683
763
|
/** Returns Returns true if the node does NOT have Mask.EXTERIOR_MASK set. */
|
|
684
764
|
static testMateMaskExterior(node) { return node.edgeMate.isMaskSet(HalfEdgeMask.EXTERIOR); }
|
|
765
|
+
/** Returns radians between this edge and its face predecessor edge, using all three coordinates x,y,z and given normal to resolve sweep direction.
|
|
766
|
+
* * The returned angle is positive, i.e. may be larger than PI radians.
|
|
767
|
+
*/
|
|
768
|
+
static sectorSweepRadiansXYZ(node, normal) {
|
|
769
|
+
const nodeB = node.faceSuccessor;
|
|
770
|
+
const nodeC = node.facePredecessor;
|
|
771
|
+
return Angle.orientedRadiansBetweenVectorsXYZ(nodeB.x - node.x, nodeB.y - node.y, nodeB.z - node.z, nodeC.x - node.x, nodeC.y - node.y, nodeC.z - node.z, normal.x, normal.y, normal.z, true);
|
|
772
|
+
}
|
|
685
773
|
/** Returns Returns true if the face has positive area in xy parts. */
|
|
686
774
|
static testFacePositiveAreaXY(node) {
|
|
687
775
|
return node.countEdgesAroundFace() > 2 && node.signedFaceArea() > 0.0;
|
|
@@ -713,6 +801,26 @@ export class HalfEdge {
|
|
|
713
801
|
} while (node !== this);
|
|
714
802
|
return nodes;
|
|
715
803
|
}
|
|
804
|
+
/**
|
|
805
|
+
* search around a vertex for nodes that have a specified mask setting.
|
|
806
|
+
* @param vertexSeed first node to search
|
|
807
|
+
* @param mask target mask
|
|
808
|
+
* @param value target value for mask on half edges.
|
|
809
|
+
* @param collectedNodes optional array to be cleared and receive masked nodes
|
|
810
|
+
*/
|
|
811
|
+
collectMaskedEdgesAroundVertex(mask, value = true, result) {
|
|
812
|
+
if (result === undefined)
|
|
813
|
+
result = [];
|
|
814
|
+
else
|
|
815
|
+
result.length = 0;
|
|
816
|
+
let node = this;
|
|
817
|
+
do {
|
|
818
|
+
if (node.isMaskSet(mask) === value)
|
|
819
|
+
result.push(node);
|
|
820
|
+
node = node.vertexSuccessor;
|
|
821
|
+
} while (node !== this);
|
|
822
|
+
return result;
|
|
823
|
+
}
|
|
716
824
|
/**
|
|
717
825
|
*
|
|
718
826
|
* * Evaluate f(node) at each outbound node around this node's vertex loop.
|
|
@@ -905,8 +1013,7 @@ export class HalfEdge {
|
|
|
905
1013
|
* * If the edge is horizontal with (approximate) identical y, return the node.
|
|
906
1014
|
* * If the edge is horizontal with different y, return undefined.
|
|
907
1015
|
* * If the edge is not horizontal, return the fractional position (possibly outside 0..1) of the intersection.
|
|
908
|
-
* @param
|
|
909
|
-
* @param result optional preallocated result
|
|
1016
|
+
* @param node0 Base node of edge
|
|
910
1017
|
*/
|
|
911
1018
|
static horizontalScanFraction(node0, y) {
|
|
912
1019
|
const node1 = node0.faceSuccessor;
|
|
@@ -921,8 +1028,7 @@ export class HalfEdge {
|
|
|
921
1028
|
* * Compute fractional coordinates of the intersection of a horizontal line with an edge.
|
|
922
1029
|
* * If the edge is horizontal return undefined (no test for horizontal at y!!!)
|
|
923
1030
|
* * If the edge is not horizontal and y is between its end y's, return the fraction
|
|
924
|
-
* @param
|
|
925
|
-
* @param result optional preallocated result
|
|
1031
|
+
* @param node0 Base node of edge
|
|
926
1032
|
*/
|
|
927
1033
|
static horizontalScanFraction01(node0, y) {
|
|
928
1034
|
const node1 = node0.faceSuccessor;
|
|
@@ -936,6 +1042,31 @@ export class HalfEdge {
|
|
|
936
1042
|
return fraction;
|
|
937
1043
|
return undefined;
|
|
938
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Copy various data from source to this.
|
|
1047
|
+
* @param source other half edge.
|
|
1048
|
+
* @param XYZ copy simple coordinates
|
|
1049
|
+
* @param copyVertexData true to copy data belonging to the vertex. (i.e. the "i" member)
|
|
1050
|
+
* @param copyVertexData true to copy data belonging to the edge. (i.e. call transferEdgeData)
|
|
1051
|
+
* @param copyFaceData true to copy faceTag
|
|
1052
|
+
*/
|
|
1053
|
+
copyDataFrom(source, copyXYZ, copyVertexData, copyEdgeData, copyFaceData) {
|
|
1054
|
+
if (copyXYZ) {
|
|
1055
|
+
this.x = source.x;
|
|
1056
|
+
this.y = source.y;
|
|
1057
|
+
this.z = source.z;
|
|
1058
|
+
}
|
|
1059
|
+
if (copyVertexData) {
|
|
1060
|
+
this.i = source.i;
|
|
1061
|
+
}
|
|
1062
|
+
if (copyEdgeData) {
|
|
1063
|
+
HalfEdge.transferEdgeProperties(source, this);
|
|
1064
|
+
this.edgeTag = source.edgeTag;
|
|
1065
|
+
}
|
|
1066
|
+
if (copyFaceData) {
|
|
1067
|
+
this.faceTag = source.faceTag;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
939
1070
|
}
|
|
940
1071
|
HalfEdge._edgePropertyMasks = [HalfEdgeMask.BOUNDARY_EDGE, HalfEdgeMask.EXTERIOR, HalfEdgeMask.PRIMARY_EDGE, HalfEdgeMask.NULL_FACE];
|
|
941
1072
|
HalfEdge._totalNodesCreated = 0;
|
|
@@ -976,6 +1107,19 @@ export class HalfEdgeGraph {
|
|
|
976
1107
|
const a = HalfEdge.createHalfEdgePairWithCoordinates(xA, yA, zA, iA, xB, yB, zB, iB, this.allHalfEdges);
|
|
977
1108
|
return a;
|
|
978
1109
|
}
|
|
1110
|
+
/**
|
|
1111
|
+
* * Create 2 half edges forming 2 vertices, 1 edge, and 1 face
|
|
1112
|
+
* * The two edges are joined as edgeMate pair.
|
|
1113
|
+
* * The two edges are a 2-half-edge face loop in both the faceSuccessor and facePredecessor directions.
|
|
1114
|
+
* * The two edges are added to the graph's HalfEdge set
|
|
1115
|
+
* * Coordinates are set to zero.
|
|
1116
|
+
* * ids are installed in the two half edges.
|
|
1117
|
+
* @returns Return pointer to the first half edge created. (This has idA as its id.)
|
|
1118
|
+
*/
|
|
1119
|
+
createEdgeIdId(iA = 0, iB = 0) {
|
|
1120
|
+
const a = HalfEdge.createHalfEdgePairWithCoordinates(0.0, 0.0, 0.0, iA, 0.0, 0.0, 0.0, iB, this.allHalfEdges);
|
|
1121
|
+
return a;
|
|
1122
|
+
}
|
|
979
1123
|
/**
|
|
980
1124
|
* * create an edge from coordinates x,y,z to (the tail of) an existing half edge.
|
|
981
1125
|
* @returns Return pointer to the half edge with tail at x,y,z
|
|
@@ -1020,6 +1164,20 @@ export class HalfEdgeGraph {
|
|
|
1020
1164
|
const he = HalfEdge.splitEdge(base, xA, yA, zA, iA, this.allHalfEdges);
|
|
1021
1165
|
return he;
|
|
1022
1166
|
}
|
|
1167
|
+
/**
|
|
1168
|
+
* * Create a sliver face "within" an edge.
|
|
1169
|
+
* * this creates two half edges.
|
|
1170
|
+
* * The existing edges both stay in their same face loops and retain coordinates and i value.
|
|
1171
|
+
* * Each existing edge's mate is a new edge (rather than original mate)
|
|
1172
|
+
* * Coordinates are copied to the new edges at respective vertices.
|
|
1173
|
+
* * New faceTag and edgeTag undefined.
|
|
1174
|
+
* * i members are copied around their respective vertices.
|
|
1175
|
+
* @returns Returns the reference to the half edge created.
|
|
1176
|
+
*/
|
|
1177
|
+
splitEdgeCreateSliverFace(base) {
|
|
1178
|
+
const he = HalfEdge.splitEdgeCreateSliverFace(base, this.allHalfEdges);
|
|
1179
|
+
return he;
|
|
1180
|
+
}
|
|
1023
1181
|
/**
|
|
1024
1182
|
* * Insert a vertex in the edge beginning at base, with coordinates specified as a fraction along the existing edge.
|
|
1025
1183
|
* * this creates two half edges.
|
|
@@ -1157,6 +1315,26 @@ export class HalfEdgeGraph {
|
|
|
1157
1315
|
break;
|
|
1158
1316
|
}
|
|
1159
1317
|
}
|
|
1318
|
+
/**
|
|
1319
|
+
* * Visit each edge of the graph once.
|
|
1320
|
+
* * Call the announceEdge function.
|
|
1321
|
+
* * the edge mate will NOT appear in an announceEdge call.
|
|
1322
|
+
* * continue search if announceEdge(graph, node) returns true
|
|
1323
|
+
* * terminate search if announceEdge (graph, node) returns false
|
|
1324
|
+
* @param announceEdge function to apply at one node of each edge.
|
|
1325
|
+
*/
|
|
1326
|
+
announceEdges(announceEdge) {
|
|
1327
|
+
this.clearMask(HalfEdgeMask.VISITED);
|
|
1328
|
+
for (const node of this.allHalfEdges) {
|
|
1329
|
+
if (node.getMask(HalfEdgeMask.VISITED))
|
|
1330
|
+
continue;
|
|
1331
|
+
const mate = node.edgeMate;
|
|
1332
|
+
node.setMask(HalfEdgeMask.VISITED);
|
|
1333
|
+
mate.setMask(HalfEdgeMask.VISITED);
|
|
1334
|
+
if (!announceEdge(this, node))
|
|
1335
|
+
break;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1160
1338
|
/**
|
|
1161
1339
|
* * Visit each vertex loop of the graph once.
|
|
1162
1340
|
* * Call the announceVertex function
|
|
@@ -1175,8 +1353,8 @@ export class HalfEdgeGraph {
|
|
|
1175
1353
|
}
|
|
1176
1354
|
}
|
|
1177
1355
|
/**
|
|
1178
|
-
* * Visit each
|
|
1179
|
-
* * Call the
|
|
1356
|
+
* * Visit each half edge (node) of the graph once.
|
|
1357
|
+
* * Call the announceNode function
|
|
1180
1358
|
* * continue search if announceNode(graph, node) returns true
|
|
1181
1359
|
* * terminate search if announce face (graph, node) returns false
|
|
1182
1360
|
* @param announceNode function to apply at one node of each face.
|