!840 修复:布尔错误问题

pull/840/MERGE
ZoeLeeFZ 5 years ago committed by ChenX
parent 45bb170600
commit c6e27e4fa8

@ -100,7 +100,9 @@
"transform": {
"^.+\\.(js|ts|tsx)$": "ts-jest"
},
"transformIgnorePatterns": [],
"transformIgnorePatterns": [
"/node_modules/(?!(three(?!(examples(?!(jsm(?!(lines))))))))"
],
"testRegex": "/__test__/.*\\.(test|spec)\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",

@ -1,10 +1,9 @@
import { Matrix4, Vector3 } from "three";
import { Vector3 } from "three";
import { arrayLast, arrayRemoveDuplicateBySort } from "../Common/ArrayExt";
import { curveLinkGroup, equalCurve } from "../Common/CurveUtils";
import { Status } from "../Common/Status";
import { FixIndex } from "../Common/Utils";
import { equaln, equalv2, equalv3 } from "../Geometry/GeUtils";
import { Orbit } from "../Geometry/Orbit";
import { equaln, equalv3 } from "../Geometry/GeUtils";
import { RegionParse, Route } from "../Geometry/RegionParse";
import { isTargetCurInOrOnSourceCur } from "../GraphicsSystem/BoolOperateUtils";
import { IntersectOption } from "../GraphicsSystem/IntersectWith";
@ -28,7 +27,7 @@ export class Contour
}
this._Curve = cu;
}
/**会将传入的闭合轮廓改为逆时针 */
static CreateContour(cus: Curve[] | Polyline | Circle, needLink = true)
{
if (cus instanceof Curve)

@ -236,7 +236,6 @@ export class Polyline extends Curve
protected ApplyMirrorMatrix(m: Matrix4): this
{
this.WriteAllObjectRecord();
let oldPts = this.GetStretchPoints();
reviseMirrorMatrix(this._Matrix);
for (let i = 0; i < oldPts.length; i++)
@ -246,7 +245,7 @@ export class Polyline extends Curve
this.SetPointAt(i, AsVector2(newP));
this.SetBulgeAt(i, newBul);
}
this.Reverse();
return this;
}
SetBulgeAt(index: number, bul: number): this

Loading…
Cancel
Save