mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 10:25:36 +01:00
fix a bug
This commit is contained in:
parent
0ce0072d76
commit
83f3b2188a
1 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ TCAD.craft._mergeCSGPolygons = function(__cgsPolygons) {
|
|||
normal : roundV(vec(cp.plane.normal))
|
||||
};
|
||||
});
|
||||
//polygons = polygons.filter(function(e){return e.normal.equals(new TCAD.Vector(0,1,0)) });
|
||||
//polygons = polygons.filter(function(e){return e.normal.equals(new TCAD.Vector(-1,0,0)) });
|
||||
return polygons;
|
||||
}
|
||||
|
||||
|
|
@ -447,7 +447,7 @@ TCAD.craft._mergeCSGPolygons = function(__cgsPolygons) {
|
|||
}
|
||||
}
|
||||
path = deleteRedundantPoints(path);
|
||||
if (path.length > 3) {
|
||||
if (path.length > 2) {
|
||||
paths.push({
|
||||
vertices : path,
|
||||
normal : normal
|
||||
|
|
|
|||
Loading…
Reference in a new issue