rm-graphical-computing-node 1.0.74 → 1.0.75
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/dist/index.mjs +13 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12279,16 +12279,24 @@ var getWindowPcdData = (lines, pcdData) => {
|
|
|
12279
12279
|
let isp = getParallelism(ptMid1, ptMid2, ptStart2, ptEnd2);
|
|
12280
12280
|
if (isp && isp.angleDeg < 25) {
|
|
12281
12281
|
let tmpLine3 = new THREE10.Line3(ptMid1, ptMid2);
|
|
12282
|
+
let tmpLine4 = new THREE10.Line3(ptLongSt1, ptLongEd1);
|
|
12283
|
+
let tmpLine5 = new THREE10.Line3(ptLongSt2, ptLongEd2);
|
|
12282
12284
|
let ptMid = getMid(ptStart2, ptEnd2);
|
|
12283
|
-
let
|
|
12284
|
-
|
|
12285
|
+
let ptClose3 = tmpLine3.closestPointToPoint(ptMid, true, new THREE10.Vector3());
|
|
12286
|
+
let ptClose4 = tmpLine4.closestPointToPoint(ptMid, true, new THREE10.Vector3());
|
|
12287
|
+
let ptClose5 = tmpLine5.closestPointToPoint(ptMid, true, new THREE10.Vector3());
|
|
12288
|
+
if (ptClose3.distanceTo(ptMid) < pcdToLineDist || ptClose4.distanceTo(ptMid) < pcdToLineDist || ptClose5.distanceTo(ptMid) < pcdToLineDist) {
|
|
12285
12289
|
eligibilityLines.push(line3);
|
|
12286
12290
|
eligibilityLinesIndexs.push(j);
|
|
12287
12291
|
} else {
|
|
12288
12292
|
tmpLine3 = new THREE10.Line3(ptStart2, ptEnd2);
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
|
|
12293
|
+
let ptMid3 = getMid(ptMid1, ptMid2);
|
|
12294
|
+
let ptMid4 = getMid(ptLongSt1, ptLongEd1);
|
|
12295
|
+
let ptMid5 = getMid(ptLongSt2, ptLongEd2);
|
|
12296
|
+
ptClose3 = tmpLine3.closestPointToPoint(ptMid3, true, new THREE10.Vector3());
|
|
12297
|
+
ptClose4 = tmpLine3.closestPointToPoint(ptMid4, true, new THREE10.Vector3());
|
|
12298
|
+
ptClose5 = tmpLine3.closestPointToPoint(ptMid5, true, new THREE10.Vector3());
|
|
12299
|
+
if (ptClose3.distanceTo(ptMid3) < pcdToLineDist || ptClose4.distanceTo(ptMid4) < pcdToLineDist || ptClose5.distanceTo(ptMid5) < pcdToLineDist) {
|
|
12292
12300
|
eligibilityLines.push(line3);
|
|
12293
12301
|
eligibilityLinesIndexs.push(j);
|
|
12294
12302
|
}
|