@xort/cga 0.0.89 → 0.0.90

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.
@@ -169,7 +169,7 @@ function linkSides(options) {
169
169
  var startHoles = (0, common_1.clone)(holess[0]);
170
170
  allVertics.push(startHoles);
171
171
  }
172
- var startTris = (0, trianglution_1.triangulation)(orgShape, orgHoles, { feature: 'xy' });
172
+ var startTris = (0, trianglution_1.triangulation)(orgShape, orgHoles, { feature: options.axisPlane });
173
173
  if (index) {
174
174
  startTris.forEach(function (v, i) {
175
175
  startTris[i] = v + (index === null || index === void 0 ? void 0 : index.index);
@@ -189,7 +189,7 @@ function linkSides(options) {
189
189
  var endHoles = (0, common_1.clone)((0, common_1.clone)(holess[holess.length - 1]));
190
190
  allVertics.push(endHoles);
191
191
  }
192
- var endTris = (0, trianglution_1.triangulation)(orgShape, orgHoles, { feature: 'xy' });
192
+ var endTris = (0, trianglution_1.triangulation)(orgShape, orgHoles, { feature: options.axisPlane });
193
193
  if (index) {
194
194
  endTris.forEach(function (v, i) {
195
195
  endTris[i] = v + (index === null || index === void 0 ? void 0 : index.index);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xort/cga",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "description": "Xtor Compute Geometry Algorithm Libary 计算几何算法库",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -211,7 +211,7 @@ export function linkSides(options: ILinkSideOptions): IGeometry {
211
211
  allVertics.push(startHoles)
212
212
  }
213
213
 
214
- var startTris = triangulation(orgShape, orgHoles, { feature: 'xy' });
214
+ var startTris = triangulation(orgShape, orgHoles, { feature: options.axisPlane });
215
215
  if (index) {
216
216
  startTris.forEach((v: number, i: number) => {
217
217
  startTris[i] = v + index?.index;
@@ -234,7 +234,7 @@ export function linkSides(options: ILinkSideOptions): IGeometry {
234
234
  var endHoles = clone(clone(holess[holess.length - 1]));
235
235
  allVertics.push(endHoles)
236
236
  }
237
- var endTris = triangulation(orgShape, orgHoles, { feature: 'xy' });
237
+ var endTris = triangulation(orgShape, orgHoles, { feature: options.axisPlane });
238
238
  if (index) {
239
239
  endTris.forEach((v: number, i: number) => {
240
240
  endTris[i] = v + index?.index;