@mlightcad/geometry-engine 3.0.2 → 3.0.4

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 (159) hide show
  1. package/package.json +3 -3
  2. package/dist/geometry-engine.js +0 -10702
  3. package/dist/geometry-engine.umd.cjs +0 -4
  4. package/lib/geometry/AcGeArea2d.d.ts +0 -61
  5. package/lib/geometry/AcGeArea2d.d.ts.map +0 -1
  6. package/lib/geometry/AcGeArea2d.js +0 -174
  7. package/lib/geometry/AcGeArea2d.js.map +0 -1
  8. package/lib/geometry/AcGeCatmullRomCurve3d.d.ts +0 -146
  9. package/lib/geometry/AcGeCatmullRomCurve3d.d.ts.map +0 -1
  10. package/lib/geometry/AcGeCatmullRomCurve3d.js +0 -358
  11. package/lib/geometry/AcGeCatmullRomCurve3d.js.map +0 -1
  12. package/lib/geometry/AcGeCircArc2d.d.ts +0 -132
  13. package/lib/geometry/AcGeCircArc2d.d.ts.map +0 -1
  14. package/lib/geometry/AcGeCircArc2d.js +0 -473
  15. package/lib/geometry/AcGeCircArc2d.js.map +0 -1
  16. package/lib/geometry/AcGeCircArc3d.d.ts +0 -138
  17. package/lib/geometry/AcGeCircArc3d.d.ts.map +0 -1
  18. package/lib/geometry/AcGeCircArc3d.js +0 -447
  19. package/lib/geometry/AcGeCircArc3d.js.map +0 -1
  20. package/lib/geometry/AcGeCurve2d.d.ts +0 -85
  21. package/lib/geometry/AcGeCurve2d.d.ts.map +0 -1
  22. package/lib/geometry/AcGeCurve2d.js +0 -213
  23. package/lib/geometry/AcGeCurve2d.js.map +0 -1
  24. package/lib/geometry/AcGeCurve3d.d.ts +0 -27
  25. package/lib/geometry/AcGeCurve3d.d.ts.map +0 -1
  26. package/lib/geometry/AcGeCurve3d.js +0 -29
  27. package/lib/geometry/AcGeCurve3d.js.map +0 -1
  28. package/lib/geometry/AcGeEllipseArc2d.d.ts +0 -105
  29. package/lib/geometry/AcGeEllipseArc2d.d.ts.map +0 -1
  30. package/lib/geometry/AcGeEllipseArc2d.js +0 -292
  31. package/lib/geometry/AcGeEllipseArc2d.js.map +0 -1
  32. package/lib/geometry/AcGeEllipseArc3d.d.ts +0 -142
  33. package/lib/geometry/AcGeEllipseArc3d.d.ts.map +0 -1
  34. package/lib/geometry/AcGeEllipseArc3d.js +0 -459
  35. package/lib/geometry/AcGeEllipseArc3d.js.map +0 -1
  36. package/lib/geometry/AcGeLine2d.d.ts +0 -56
  37. package/lib/geometry/AcGeLine2d.d.ts.map +0 -1
  38. package/lib/geometry/AcGeLine2d.js +0 -125
  39. package/lib/geometry/AcGeLine2d.js.map +0 -1
  40. package/lib/geometry/AcGeLine3d.d.ts +0 -134
  41. package/lib/geometry/AcGeLine3d.d.ts.map +0 -1
  42. package/lib/geometry/AcGeLine3d.js +0 -291
  43. package/lib/geometry/AcGeLine3d.js.map +0 -1
  44. package/lib/geometry/AcGeLoop2d.d.ts +0 -59
  45. package/lib/geometry/AcGeLoop2d.d.ts.map +0 -1
  46. package/lib/geometry/AcGeLoop2d.js +0 -141
  47. package/lib/geometry/AcGeLoop2d.js.map +0 -1
  48. package/lib/geometry/AcGeNurbsCurve.d.ts +0 -73
  49. package/lib/geometry/AcGeNurbsCurve.d.ts.map +0 -1
  50. package/lib/geometry/AcGeNurbsCurve.js +0 -172
  51. package/lib/geometry/AcGeNurbsCurve.js.map +0 -1
  52. package/lib/geometry/AcGePolyline2d.d.ts +0 -90
  53. package/lib/geometry/AcGePolyline2d.d.ts.map +0 -1
  54. package/lib/geometry/AcGePolyline2d.js +0 -224
  55. package/lib/geometry/AcGePolyline2d.js.map +0 -1
  56. package/lib/geometry/AcGeShape.d.ts +0 -12
  57. package/lib/geometry/AcGeShape.d.ts.map +0 -1
  58. package/lib/geometry/AcGeShape.js +0 -22
  59. package/lib/geometry/AcGeShape.js.map +0 -1
  60. package/lib/geometry/AcGeShape2d.d.ts +0 -31
  61. package/lib/geometry/AcGeShape2d.d.ts.map +0 -1
  62. package/lib/geometry/AcGeShape2d.js +0 -51
  63. package/lib/geometry/AcGeShape2d.js.map +0 -1
  64. package/lib/geometry/AcGeShape3d.d.ts +0 -33
  65. package/lib/geometry/AcGeShape3d.d.ts.map +0 -1
  66. package/lib/geometry/AcGeShape3d.js +0 -52
  67. package/lib/geometry/AcGeShape3d.js.map +0 -1
  68. package/lib/geometry/AcGeSpline3d.d.ts +0 -99
  69. package/lib/geometry/AcGeSpline3d.d.ts.map +0 -1
  70. package/lib/geometry/AcGeSpline3d.js +0 -350
  71. package/lib/geometry/AcGeSpline3d.js.map +0 -1
  72. package/lib/geometry/index.d.ts +0 -15
  73. package/lib/geometry/index.d.ts.map +0 -1
  74. package/lib/geometry/index.js +0 -15
  75. package/lib/geometry/index.js.map +0 -1
  76. package/lib/index.d.ts +0 -4
  77. package/lib/index.d.ts.map +0 -1
  78. package/lib/index.js +0 -4
  79. package/lib/index.js.map +0 -1
  80. package/lib/math/AcGeBox2d.d.ts +0 -173
  81. package/lib/math/AcGeBox2d.d.ts.map +0 -1
  82. package/lib/math/AcGeBox2d.js +0 -289
  83. package/lib/math/AcGeBox2d.js.map +0 -1
  84. package/lib/math/AcGeBox3d.d.ts +0 -195
  85. package/lib/math/AcGeBox3d.d.ts.map +0 -1
  86. package/lib/math/AcGeBox3d.js +0 -378
  87. package/lib/math/AcGeBox3d.js.map +0 -1
  88. package/lib/math/AcGeEuler.d.ts +0 -133
  89. package/lib/math/AcGeEuler.d.ts.map +0 -1
  90. package/lib/math/AcGeEuler.js +0 -358
  91. package/lib/math/AcGeEuler.js.map +0 -1
  92. package/lib/math/AcGeMatrix2d.d.ts +0 -203
  93. package/lib/math/AcGeMatrix2d.d.ts.map +0 -1
  94. package/lib/math/AcGeMatrix2d.js +0 -393
  95. package/lib/math/AcGeMatrix2d.js.map +0 -1
  96. package/lib/math/AcGeMatrix3d.d.ts +0 -279
  97. package/lib/math/AcGeMatrix3d.d.ts.map +0 -1
  98. package/lib/math/AcGeMatrix3d.js +0 -1037
  99. package/lib/math/AcGeMatrix3d.js.map +0 -1
  100. package/lib/math/AcGePlane.d.ts +0 -131
  101. package/lib/math/AcGePlane.d.ts.map +0 -1
  102. package/lib/math/AcGePlane.js +0 -218
  103. package/lib/math/AcGePlane.js.map +0 -1
  104. package/lib/math/AcGePoint.d.ts +0 -4
  105. package/lib/math/AcGePoint.d.ts.map +0 -1
  106. package/lib/math/AcGePoint.js +0 -2
  107. package/lib/math/AcGePoint.js.map +0 -1
  108. package/lib/math/AcGePoint2d.d.ts +0 -17
  109. package/lib/math/AcGePoint2d.d.ts.map +0 -1
  110. package/lib/math/AcGePoint2d.js +0 -40
  111. package/lib/math/AcGePoint2d.js.map +0 -1
  112. package/lib/math/AcGePoint3d.d.ts +0 -18
  113. package/lib/math/AcGePoint3d.d.ts.map +0 -1
  114. package/lib/math/AcGePoint3d.js +0 -43
  115. package/lib/math/AcGePoint3d.js.map +0 -1
  116. package/lib/math/AcGeQuaternion.d.ts +0 -230
  117. package/lib/math/AcGeQuaternion.d.ts.map +0 -1
  118. package/lib/math/AcGeQuaternion.js +0 -666
  119. package/lib/math/AcGeQuaternion.js.map +0 -1
  120. package/lib/math/AcGeVector.d.ts +0 -9
  121. package/lib/math/AcGeVector.d.ts.map +0 -1
  122. package/lib/math/AcGeVector.js +0 -2
  123. package/lib/math/AcGeVector.js.map +0 -1
  124. package/lib/math/AcGeVector2d.d.ts +0 -361
  125. package/lib/math/AcGeVector2d.d.ts.map +0 -1
  126. package/lib/math/AcGeVector2d.js +0 -622
  127. package/lib/math/AcGeVector2d.js.map +0 -1
  128. package/lib/math/AcGeVector3d.d.ts +0 -493
  129. package/lib/math/AcGeVector3d.d.ts.map +0 -1
  130. package/lib/math/AcGeVector3d.js +0 -868
  131. package/lib/math/AcGeVector3d.js.map +0 -1
  132. package/lib/math/index.d.ts +0 -14
  133. package/lib/math/index.d.ts.map +0 -1
  134. package/lib/math/index.js +0 -14
  135. package/lib/math/index.js.map +0 -1
  136. package/lib/util/AcGeConstants.d.ts +0 -19
  137. package/lib/util/AcGeConstants.d.ts.map +0 -1
  138. package/lib/util/AcGeConstants.js +0 -25
  139. package/lib/util/AcGeConstants.js.map +0 -1
  140. package/lib/util/AcGeGeometryUtil.d.ts +0 -16
  141. package/lib/util/AcGeGeometryUtil.d.ts.map +0 -1
  142. package/lib/util/AcGeGeometryUtil.js +0 -56
  143. package/lib/util/AcGeGeometryUtil.js.map +0 -1
  144. package/lib/util/AcGeMathUtil.d.ts +0 -203
  145. package/lib/util/AcGeMathUtil.d.ts.map +0 -1
  146. package/lib/util/AcGeMathUtil.js +0 -585
  147. package/lib/util/AcGeMathUtil.js.map +0 -1
  148. package/lib/util/AcGeNurbsUtil.d.ts +0 -34
  149. package/lib/util/AcGeNurbsUtil.d.ts.map +0 -1
  150. package/lib/util/AcGeNurbsUtil.js +0 -218
  151. package/lib/util/AcGeNurbsUtil.js.map +0 -1
  152. package/lib/util/AcGeTol.d.ts +0 -91
  153. package/lib/util/AcGeTol.d.ts.map +0 -1
  154. package/lib/util/AcGeTol.js +0 -83
  155. package/lib/util/AcGeTol.js.map +0 -1
  156. package/lib/util/index.d.ts +0 -6
  157. package/lib/util/index.d.ts.map +0 -1
  158. package/lib/util/index.js +0 -6
  159. package/lib/util/index.js.map +0 -1
@@ -1,51 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { AcGeMatrix2d } from '../math';
17
- import { AcGeShape } from './AcGeShape';
18
- /**
19
- * Abstract base class for all kinds of 2d shapes.
20
- */
21
- var AcGeShape2d = /** @class */ (function (_super) {
22
- __extends(AcGeShape2d, _super);
23
- function AcGeShape2d() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- /**
27
- * Return new shape translated by given vector.
28
- */
29
- AcGeShape2d.prototype.translate = function (v) {
30
- return this.transform(new AcGeMatrix2d().makeTranslation(v.x, v.y));
31
- };
32
- Object.defineProperty(AcGeShape2d.prototype, "box", {
33
- /**
34
- * The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding
35
- * box of one shape, the bounding box value is cached. It will be calculated again lazily once there
36
- * are any changes to properties of this shape.
37
- */
38
- get: function () {
39
- if (this._box == null || this._boundingBoxNeedsUpdate) {
40
- this._box = this.calculateBoundingBox();
41
- this._boundingBoxNeedsUpdate = false;
42
- }
43
- return this._box;
44
- },
45
- enumerable: false,
46
- configurable: true
47
- });
48
- return AcGeShape2d;
49
- }(AcGeShape));
50
- export { AcGeShape2d };
51
- //# sourceMappingURL=AcGeShape2d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcGeShape2d.js","sourceRoot":"","sources":["../../src/geometry/AcGeShape2d.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAa,YAAY,EAAoB,MAAM,SAAS,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH;IAA0C,+BAAS;IAAnD;;IAoCA,CAAC;IA9BC;;OAEG;IACH,+BAAS,GAAT,UAAU,CAAmB;QAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,YAAY,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACrE,CAAC;IAaD,sBAAI,4BAAG;QALP;;;;WAIG;aACH;YACE,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,uBAAuB,EAAE,CAAC;gBACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAA;gBACvC,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAA;YACtC,CAAC;YACD,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;;;OAAA;IAMH,kBAAC;AAAD,CAAC,AApCD,CAA0C,SAAS,GAoClD"}
@@ -1,33 +0,0 @@
1
- import { AcGeBox3d, AcGeMatrix3d, AcGeVector3dLike } from '../math';
2
- import { AcGeShape } from './AcGeShape';
3
- /**
4
- * Abstract base class for all kinds of 3d shapes.
5
- */
6
- export declare abstract class AcGeShape3d extends AcGeShape {
7
- /**
8
- * The bounding box of this shape
9
- */
10
- private _box?;
11
- /**
12
- * Return new shape translated by given vector.
13
- * Translation vector may be also defined by a pair of numbers.
14
- */
15
- translate(v: AcGeVector3dLike): AcGeShape3d;
16
- /**
17
- * Transforms the entity by applying the input matrix.
18
- * @param matrix Input transformation matrix
19
- * @return Return this shape
20
- */
21
- abstract transform(matrix: AcGeMatrix3d): this;
22
- /**
23
- * The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding
24
- * box of one shape, the bounding box value is cached. It will be calculated again lazily once there
25
- * are any changes to properties of this shape.
26
- */
27
- get box(): AcGeBox3d;
28
- /**
29
- * Return true if this shape contains the specified shape
30
- */
31
- protected abstract calculateBoundingBox(): AcGeBox3d;
32
- }
33
- //# sourceMappingURL=AcGeShape3d.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcGeShape3d.d.ts","sourceRoot":"","sources":["../../src/geometry/AcGeShape3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,8BAAsB,WAAY,SAAQ,SAAS;IACjD;;OAEG;IACH,OAAO,CAAC,IAAI,CAAC,CAAW;IACxB;;;OAGG;IACH,SAAS,CAAC,CAAC,EAAE,gBAAgB,GAAG,WAAW;IAI3C;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IAE9C;;;;OAIG;IACH,IAAI,GAAG,cAMN;IAED;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,oBAAoB,IAAI,SAAS;CACrD"}
@@ -1,52 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { AcGeMatrix3d } from '../math';
17
- import { AcGeShape } from './AcGeShape';
18
- /**
19
- * Abstract base class for all kinds of 3d shapes.
20
- */
21
- var AcGeShape3d = /** @class */ (function (_super) {
22
- __extends(AcGeShape3d, _super);
23
- function AcGeShape3d() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- /**
27
- * Return new shape translated by given vector.
28
- * Translation vector may be also defined by a pair of numbers.
29
- */
30
- AcGeShape3d.prototype.translate = function (v) {
31
- return this.transform(new AcGeMatrix3d().makeTranslation(v.x, v.y, v.z));
32
- };
33
- Object.defineProperty(AcGeShape3d.prototype, "box", {
34
- /**
35
- * The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding
36
- * box of one shape, the bounding box value is cached. It will be calculated again lazily once there
37
- * are any changes to properties of this shape.
38
- */
39
- get: function () {
40
- if (this._box == null || this._boundingBoxNeedsUpdate) {
41
- this._box = this.calculateBoundingBox();
42
- this._boundingBoxNeedsUpdate = false;
43
- }
44
- return this._box;
45
- },
46
- enumerable: false,
47
- configurable: true
48
- });
49
- return AcGeShape3d;
50
- }(AcGeShape));
51
- export { AcGeShape3d };
52
- //# sourceMappingURL=AcGeShape3d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcGeShape3d.js","sourceRoot":"","sources":["../../src/geometry/AcGeShape3d.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAa,YAAY,EAAoB,MAAM,SAAS,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH;IAA0C,+BAAS;IAAnD;;IAqCA,CAAC;IAhCC;;;OAGG;IACH,+BAAS,GAAT,UAAU,CAAmB;QAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,YAAY,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC1E,CAAC;IAcD,sBAAI,4BAAG;QALP;;;;WAIG;aACH;YACE,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,uBAAuB,EAAE,CAAC;gBACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAA;gBACvC,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAA;YACtC,CAAC;YACD,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;;;OAAA;IAMH,kBAAC;AAAD,CAAC,AArCD,CAA0C,SAAS,GAqClD"}
@@ -1,99 +0,0 @@
1
- import { AcGeBox3d, AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike, AcGePointLike } from '../math';
2
- import { AcGeCurve3d } from './AcGeCurve3d';
3
- import { AcGeKnotParameterizationType, AcGeNurbsCurve } from './AcGeNurbsCurve';
4
- export declare class AcGeSpline3d extends AcGeCurve3d {
5
- private _nurbsCurve;
6
- private _fitPoints?;
7
- private _knotParameterization?;
8
- private _controlPoints;
9
- private _closed;
10
- private _degree;
11
- constructor(controlPoints: AcGePoint3dLike[], knots: number[], weights?: number[], degree?: number, closed?: boolean);
12
- constructor(fitPoints: AcGePointLike[], knotParam: AcGeKnotParameterizationType, degree?: number, closed?: boolean);
13
- /**
14
- * Build the NURBS curve using stored data
15
- */
16
- private buildCurve;
17
- /**
18
- * Set the closed property and rebuild the curve if necessary
19
- */
20
- private setClosed;
21
- /**
22
- * Degree of the spline to be created.
23
- */
24
- get degree(): number;
25
- get knotParameterization(): AcGeKnotParameterizationType | undefined;
26
- /**
27
- * The start point of this spline
28
- */
29
- get startPoint(): AcGePoint3d;
30
- /**
31
- * The end point of this spline
32
- */
33
- get endPoint(): AcGePoint3d;
34
- /**
35
- * @inheritdoc
36
- */
37
- get length(): number;
38
- /**
39
- * Return the value of the control point at position index in the list of control points.
40
- * If index is negative or more than the number of control points in the spline, then point
41
- * is set to the last control point.
42
- * @param index Input index (0 based) of point to get
43
- * @returns
44
- */
45
- getFitPointAt(index: number): AcGePoint3dLike;
46
- /**
47
- * Return the value of the control point at position index in the list of control points.
48
- * If index is negative or more than the number of control points in the spline, then point
49
- * is set to the last control point.
50
- * @param index Input index (0 based) of point to get
51
- * @returns
52
- */
53
- getControlPointAt(index: number): import("../math").AcGeVector3dLike;
54
- /**
55
- * Divide this spline into the specified nubmer of points
56
- * those points as an array of points.
57
- * @param numPoints Input the nubmer of points returned
58
- * @returns Return an array of point
59
- */
60
- getPoints(numPoints?: number): AcGePoint3d[];
61
- getCurvePoints(curve: AcGeNurbsCurve, count: number): number[][];
62
- /**
63
- * @inheritdoc
64
- */
65
- calculateBoundingBox(): AcGeBox3d;
66
- get closed(): boolean;
67
- set closed(value: boolean);
68
- /**
69
- * @inheritdoc
70
- */
71
- transform(_matrix: AcGeMatrix3d): this;
72
- /**
73
- * Convert input points to points in NURBS format
74
- * @param points Input points to convert
75
- * @returns Return converted points
76
- */
77
- private toNurbsPoints;
78
- /**
79
- * Convert input points to points in verb-nurbs-web format
80
- * @param points Input points to convert
81
- * @returns Return converted points
82
- */
83
- private toVerbPoints;
84
- /**
85
- * Convert input points to points in geometry engine format
86
- * @param points Input points to convert
87
- * @returns Return converted points
88
- */
89
- private toGePoints;
90
- /**
91
- * Create a closed spline from fit points using AcGeNurbsCurve.createClosedCurve
92
- * @param fitPoints - Array of fit points defining the curve
93
- * @param parameterization - Knot parameterization type for NURBS
94
- * @param degree - Optional degree of the spline (default: 3)
95
- * @returns A closed spline
96
- */
97
- static createClosedSpline(fitPoints: AcGePoint3dLike[], parameterization?: AcGeKnotParameterizationType, degree?: number): AcGeSpline3d;
98
- }
99
- //# sourceMappingURL=AcGeSpline3d.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcGeSpline3d.d.ts","sourceRoot":"","sources":["../../src/geometry/AcGeSpline3d.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACd,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,4BAA4B,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAE/E,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,CAAC,WAAW,CAAsB;IACzC,OAAO,CAAC,UAAU,CAAC,CAAmB;IACtC,OAAO,CAAC,qBAAqB,CAAC,CAA8B;IAC5D,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAQ;gBAGrB,aAAa,EAAE,eAAe,EAAE,EAChC,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,OAAO;gBAGhB,SAAS,EAAE,aAAa,EAAE,EAC1B,SAAS,EAAE,4BAA4B,EACvC,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,OAAO;IA+FlB;;OAEG;IACH,OAAO,CAAC,UAAU;IAyClB;;OAEG;IACH,OAAO,CAAC,SAAS;IAUjB;;OAEG;IACH,IAAI,MAAM,WAET;IAED,IAAI,oBAAoB,6CAEvB;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,WAAW,CAM5B;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,WAAW,CAM1B;IAED;;OAEG;IACH,IAAI,MAAM,WAET;IAED;;;;;;OAMG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe;IAU7C;;;;;;OAMG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM;IAM/B;;;;;OAKG;IACH,SAAS,CAAC,SAAS,GAAE,MAAY,GAAG,WAAW,EAAE;IAsBjD,cAAc,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM;IAkBnD;;OAEG;IACH,oBAAoB;IAKpB,IAAI,MAAM,IAGQ,OAAO,CADxB;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,EAExB;IAED;;OAEG;IACH,SAAS,CAAC,OAAO,EAAE,YAAY;IAM/B;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAQrB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAQpB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAQlB;;;;;;OAMG;IACH,MAAM,CAAC,kBAAkB,CACvB,SAAS,EAAE,eAAe,EAAE,EAC5B,gBAAgB,GAAE,4BAAwC,EAC1D,MAAM,GAAE,MAAU,GACjB,YAAY;CAUhB"}
@@ -1,350 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { AcCmErrors } from '@mlightcad/common';
17
- import verb from 'verb-nurbs-web';
18
- import { AcGeBox3d, AcGePoint3d } from '../math';
19
- import { AcGeCurve3d } from './AcGeCurve3d';
20
- import { AcGeNurbsCurve } from './AcGeNurbsCurve';
21
- var AcGeSpline3d = /** @class */ (function (_super) {
22
- __extends(AcGeSpline3d, _super);
23
- function AcGeSpline3d(a, b, c, d, e) {
24
- var _this = _super.call(this) || this;
25
- // Count the number of arguments passed (including undefined)
26
- var argsLength = arguments.length;
27
- if (argsLength < 2 || argsLength > 5) {
28
- throw AcCmErrors.ILLEGAL_PARAMETERS;
29
- }
30
- // Default degree is 3
31
- _this._degree = 3;
32
- _this._closed = false;
33
- if (!Array.isArray(b)) {
34
- // Constructor with fit points
35
- _this._fitPoints = a;
36
- _this._knotParameterization = b;
37
- // Handle degree and closed parameters for fit points constructor
38
- if (argsLength >= 3) {
39
- _this._degree = c || 3;
40
- }
41
- if (argsLength >= 4) {
42
- _this._closed = d;
43
- }
44
- // Validate minimum number of fit points for the specified degree
45
- if (_this._fitPoints.length < _this._degree + 1) {
46
- throw AcCmErrors.ILLEGAL_PARAMETERS;
47
- }
48
- var points = _this.toNurbsPoints(_this._fitPoints);
49
- _this._nurbsCurve = verb.geom.NurbsCurve.byPoints(points, _this._degree);
50
- _this._controlPoints = _this.toGePoints(_this._nurbsCurve.controlPoints());
51
- }
52
- else {
53
- // Constructor with control points
54
- _this._controlPoints = a;
55
- // Determine if c is weights or degree based on type
56
- var weights = void 0;
57
- var degree = 3;
58
- var closed_1 = false;
59
- if (argsLength >= 3) {
60
- if (Array.isArray(c)) {
61
- // c is weights array
62
- weights = c;
63
- if (argsLength >= 4) {
64
- degree = d || 3;
65
- }
66
- if (argsLength >= 5) {
67
- closed_1 = e;
68
- }
69
- }
70
- else if (c !== undefined) {
71
- // c is degree (not undefined)
72
- degree = c || 3;
73
- if (argsLength >= 4) {
74
- closed_1 = d;
75
- }
76
- }
77
- }
78
- // Handle case where c is undefined but d might be degree
79
- if (c === undefined && argsLength >= 4) {
80
- degree = d || 3;
81
- if (argsLength >= 5) {
82
- closed_1 = e;
83
- }
84
- }
85
- _this._degree = degree;
86
- _this._closed = closed_1;
87
- // Validate minimum number of control points for the specified degree
88
- if (_this._controlPoints.length < _this._degree + 1) {
89
- throw AcCmErrors.ILLEGAL_PARAMETERS;
90
- }
91
- var points = _this.toVerbPoints(_this._controlPoints);
92
- _this._nurbsCurve = verb.geom.NurbsCurve.byKnotsControlPointsWeights(_this._degree, b, points, weights);
93
- }
94
- return _this;
95
- // Apply closed state if specified
96
- // if (this._closed) {
97
- // this.buildCurve()
98
- // }
99
- }
100
- /**
101
- * Build the NURBS curve using stored data
102
- */
103
- AcGeSpline3d.prototype.buildCurve = function () {
104
- if (this._fitPoints && this._knotParameterization) {
105
- // Build from fit points
106
- if (this._closed) {
107
- var newFitPoints = AcGeNurbsCurve.createFitPointsForClosedCurve(this._fitPoints);
108
- var points = this.toNurbsPoints(newFitPoints);
109
- this._nurbsCurve = verb.geom.NurbsCurve.byPoints(points, this._degree);
110
- }
111
- else {
112
- // Create open curve from fit points
113
- var points = this.toNurbsPoints(this._fitPoints);
114
- this._nurbsCurve = verb.geom.NurbsCurve.byPoints(points, this._degree);
115
- }
116
- this._controlPoints = this.toGePoints(this._nurbsCurve.controlPoints());
117
- }
118
- else if (this._controlPoints) {
119
- // Build from control points
120
- if (this._closed) {
121
- // Create closed curve from control points
122
- var newFitPoints = AcGeNurbsCurve.createFitPointsForClosedCurve(this._controlPoints);
123
- var points = this.toNurbsPoints(newFitPoints);
124
- this._nurbsCurve = verb.geom.NurbsCurve.byPoints(points, this._degree);
125
- this._controlPoints = this.toGePoints(this._nurbsCurve.controlPoints());
126
- }
127
- else {
128
- // Create open curve from control points
129
- // Get knots and weights from the current NURBS curve
130
- var knots = this._nurbsCurve.knots();
131
- var weights = this._nurbsCurve.weights();
132
- var points = this.toVerbPoints(this._controlPoints);
133
- this._nurbsCurve = verb.geom.NurbsCurve.byKnotsControlPointsWeights(this._degree, knots, points, weights);
134
- }
135
- }
136
- };
137
- /**
138
- * Set the closed property and rebuild the curve if necessary
139
- */
140
- AcGeSpline3d.prototype.setClosed = function (closed) {
141
- if (this._closed === closed) {
142
- return;
143
- }
144
- this._closed = closed;
145
- this._boundingBoxNeedsUpdate = true;
146
- this.buildCurve();
147
- };
148
- Object.defineProperty(AcGeSpline3d.prototype, "degree", {
149
- /**
150
- * Degree of the spline to be created.
151
- */
152
- get: function () {
153
- return this._degree;
154
- },
155
- enumerable: false,
156
- configurable: true
157
- });
158
- Object.defineProperty(AcGeSpline3d.prototype, "knotParameterization", {
159
- get: function () {
160
- return this._knotParameterization;
161
- },
162
- enumerable: false,
163
- configurable: true
164
- });
165
- Object.defineProperty(AcGeSpline3d.prototype, "startPoint", {
166
- /**
167
- * The start point of this spline
168
- */
169
- get: function () {
170
- var knots = this._nurbsCurve.knots();
171
- var degree = this._nurbsCurve.degree();
172
- var startParam = knots[degree];
173
- var startPoint = this._nurbsCurve.point(startParam);
174
- return new AcGePoint3d(startPoint[0], startPoint[1], startPoint[2]);
175
- },
176
- enumerable: false,
177
- configurable: true
178
- });
179
- Object.defineProperty(AcGeSpline3d.prototype, "endPoint", {
180
- /**
181
- * The end point of this spline
182
- */
183
- get: function () {
184
- var knots = this._nurbsCurve.knots();
185
- var degree = this._nurbsCurve.degree();
186
- var endParam = knots[knots.length - degree - 1];
187
- var endPoint = this._nurbsCurve.point(endParam);
188
- return new AcGePoint3d(endPoint[0], endPoint[1], endPoint[2]);
189
- },
190
- enumerable: false,
191
- configurable: true
192
- });
193
- Object.defineProperty(AcGeSpline3d.prototype, "length", {
194
- /**
195
- * @inheritdoc
196
- */
197
- get: function () {
198
- return this._nurbsCurve.length();
199
- },
200
- enumerable: false,
201
- configurable: true
202
- });
203
- /**
204
- * Return the value of the control point at position index in the list of control points.
205
- * If index is negative or more than the number of control points in the spline, then point
206
- * is set to the last control point.
207
- * @param index Input index (0 based) of point to get
208
- * @returns
209
- */
210
- AcGeSpline3d.prototype.getFitPointAt = function (index) {
211
- if (!this._fitPoints) {
212
- throw new Error('No fit points in this spline');
213
- }
214
- var length = this._fitPoints.length;
215
- var newIndex = index < 0 || index >= length ? length - 1 : index;
216
- var point = this._fitPoints[newIndex];
217
- return { x: point.x, y: point.y, z: point.z || 0 };
218
- };
219
- /**
220
- * Return the value of the control point at position index in the list of control points.
221
- * If index is negative or more than the number of control points in the spline, then point
222
- * is set to the last control point.
223
- * @param index Input index (0 based) of point to get
224
- * @returns
225
- */
226
- AcGeSpline3d.prototype.getControlPointAt = function (index) {
227
- var length = this._controlPoints.length;
228
- var newIndex = index < 0 || index >= length ? length - 1 : index;
229
- return this._controlPoints[newIndex];
230
- };
231
- /**
232
- * Divide this spline into the specified nubmer of points
233
- * those points as an array of points.
234
- * @param numPoints Input the nubmer of points returned
235
- * @returns Return an array of point
236
- */
237
- AcGeSpline3d.prototype.getPoints = function (numPoints) {
238
- if (numPoints === void 0) { numPoints = 100; }
239
- var curve = this._nurbsCurve;
240
- var points = [];
241
- // Get the knot vector from the curve
242
- var knots = curve.knots();
243
- // The valid parameter range is between knots[degree] and knots[knots.length - degree - 1]
244
- var degree = this._nurbsCurve.degree();
245
- var startParam = knots[degree];
246
- var endParam = knots[knots.length - degree - 1];
247
- // Adjust step size for correct range
248
- var step = (endParam - startParam) / (numPoints - 1);
249
- for (var i = 0; i < numPoints; i++) {
250
- // For the last point, use endParam exactly to avoid floating-point issues
251
- var t = i === numPoints - 1 ? endParam : startParam + i * step;
252
- var point = curve.point(t);
253
- points.push(new AcGePoint3d(point[0], point[1], point[2]));
254
- }
255
- return points;
256
- };
257
- AcGeSpline3d.prototype.getCurvePoints = function (curve, count) {
258
- var points = [];
259
- var knots = curve.knots(); // Get the knot vector from the curve
260
- // The valid parameter range is between knots[degree] and knots[knots.length - degree - 1]
261
- var startParam = knots[3];
262
- var endParam = knots[knots.length - 4];
263
- var step = (endParam - startParam) / (count - 1); // Adjust step size for correct range
264
- for (var i = 0; i < count; i++) {
265
- var t = startParam + i * step; // Map t to the correct parameter space
266
- points.push(curve.point(t)); // Sample the curve at the mapped parameter t
267
- }
268
- return points;
269
- };
270
- /**
271
- * @inheritdoc
272
- */
273
- AcGeSpline3d.prototype.calculateBoundingBox = function () {
274
- var points = this.getPoints(100);
275
- return new AcGeBox3d().setFromPoints(points);
276
- };
277
- Object.defineProperty(AcGeSpline3d.prototype, "closed", {
278
- get: function () {
279
- return this._closed;
280
- },
281
- set: function (value) {
282
- this.setClosed(value);
283
- },
284
- enumerable: false,
285
- configurable: true
286
- });
287
- /**
288
- * @inheritdoc
289
- */
290
- AcGeSpline3d.prototype.transform = function (_matrix) {
291
- // TODO: Implement this method
292
- this._boundingBoxNeedsUpdate = true;
293
- return this;
294
- };
295
- /**
296
- * Convert input points to points in NURBS format
297
- * @param points Input points to convert
298
- * @returns Return converted points
299
- */
300
- AcGeSpline3d.prototype.toNurbsPoints = function (points) {
301
- var nurbsPoints = new Array(points.length);
302
- points.forEach(function (point, index) {
303
- nurbsPoints[index] = [point.x, point.y, point.z || 0];
304
- });
305
- return nurbsPoints;
306
- };
307
- /**
308
- * Convert input points to points in verb-nurbs-web format
309
- * @param points Input points to convert
310
- * @returns Return converted points
311
- */
312
- AcGeSpline3d.prototype.toVerbPoints = function (points) {
313
- var verbPoints = new Array(points.length);
314
- points.forEach(function (point, index) {
315
- verbPoints[index] = [point.x, point.y, point.z || 0];
316
- });
317
- return verbPoints;
318
- };
319
- /**
320
- * Convert input points to points in geometry engine format
321
- * @param points Input points to convert
322
- * @returns Return converted points
323
- */
324
- AcGeSpline3d.prototype.toGePoints = function (points) {
325
- var gePoints = new Array(points.length);
326
- points.forEach(function (point, index) {
327
- gePoints[index] = { x: point[0], y: point[1], z: point[2] };
328
- });
329
- return gePoints;
330
- };
331
- /**
332
- * Create a closed spline from fit points using AcGeNurbsCurve.createClosedCurve
333
- * @param fitPoints - Array of fit points defining the curve
334
- * @param parameterization - Knot parameterization type for NURBS
335
- * @param degree - Optional degree of the spline (default: 3)
336
- * @returns A closed spline
337
- */
338
- AcGeSpline3d.createClosedSpline = function (fitPoints, parameterization, degree) {
339
- if (parameterization === void 0) { parameterization = 'Uniform'; }
340
- if (degree === void 0) { degree = 3; }
341
- if (fitPoints.length < degree + 1) {
342
- throw new Error("At least ".concat(degree + 1, " points are required for a degree ").concat(degree, " closed spline"));
343
- }
344
- // Create spline using the constructor with fit points, degree, and closed=true
345
- return new AcGeSpline3d(fitPoints, parameterization, degree, true);
346
- };
347
- return AcGeSpline3d;
348
- }(AcGeCurve3d));
349
- export { AcGeSpline3d };
350
- //# sourceMappingURL=AcGeSpline3d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcGeSpline3d.js","sourceRoot":"","sources":["../../src/geometry/AcGeSpline3d.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,IAAI,MAAM,gBAAgB,CAAA;AAEjC,OAAO,EACL,SAAS,EAET,WAAW,EAGZ,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAgC,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAE/E;IAAkC,gCAAW;IAqB3C,sBAAY,CAAW,EAAE,CAAW,EAAE,CAAW,EAAE,CAAW,EAAE,CAAW;QACzE,YAAA,MAAK,WAAE,SAAA;QACP,6DAA6D;QAC7D,IAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAA;QAEnC,IAAI,UAAU,GAAG,CAAC,IAAI,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AK;YAC1B,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;QAC7D,CAAC,CAAC,CAAA;QACF,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED;;;;;;OAMG;IACI,+BAAkB,GAAzB,UACE,SAA4B,EAC5B,gBAA0D,EAC1D,MAAkB;QADlB,iCAAA,EAAA,4BAA0D;QAC1D,uBAAA,EAAA,UAAkB;QAElB,IAAI,SAAS,CAAC,MAAM,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CACb,mBAAY,MAAM,GAAG,CAAC,+CAAqC,MAAM,mBAAgB,CAClF,CAAA;QACH,CAAC;QAED,+EAA+E;QAC/E,OAAO,IAAI,YAAY,CAAC,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;IACpE,CAAC;IACH,mBAAC;AAAD,CAAC,AAnXD,CAAkC,WAAW,GAmX5C"}
@@ -1,15 +0,0 @@
1
- export * from './AcGeArea2d';
2
- export * from './AcGeShape2d';
3
- export * from './AcGeCurve2d';
4
- export * from './AcGeCircArc2d';
5
- export * from './AcGeCircArc3d';
6
- export * from './AcGeEllipseArc2d';
7
- export * from './AcGeEllipseArc3d';
8
- export * from './AcGePolyline2d';
9
- export * from './AcGeLine2d';
10
- export * from './AcGeLine3d';
11
- export * from './AcGeLoop2d';
12
- export * from './AcGeSpline3d';
13
- export * from './AcGeNurbsCurve';
14
- export * from './AcGeCatmullRomCurve3d';
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/geometry/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA"}
@@ -1,15 +0,0 @@
1
- export * from './AcGeArea2d';
2
- export * from './AcGeShape2d';
3
- export * from './AcGeCurve2d';
4
- export * from './AcGeCircArc2d';
5
- export * from './AcGeCircArc3d';
6
- export * from './AcGeEllipseArc2d';
7
- export * from './AcGeEllipseArc3d';
8
- export * from './AcGePolyline2d';
9
- export * from './AcGeLine2d';
10
- export * from './AcGeLine3d';
11
- export * from './AcGeLoop2d';
12
- export * from './AcGeSpline3d';
13
- export * from './AcGeNurbsCurve';
14
- export * from './AcGeCatmullRomCurve3d';
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/geometry/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA"}