Oops, Boolean 0 - B was equal to B with the normals flipped, not
zero. [git-p4: depot-paths = "//depot/solvespace/": change = 1755]solver
parent
3c9084b240
commit
d5a8c431da
8
mesh.cpp
8
mesh.cpp
|
@ -475,8 +475,12 @@ triangulate:
|
||||||
|
|
||||||
SBsp3 *SBsp3::Insert(STriangle *tr, SMesh *instead) {
|
SBsp3 *SBsp3::Insert(STriangle *tr, SMesh *instead) {
|
||||||
if(!this) {
|
if(!this) {
|
||||||
if(instead && !(instead->flipNormal)) {
|
if(instead) {
|
||||||
instead->AddTriangle(tr->a, tr->b, tr->c);
|
if(instead->flipNormal) {
|
||||||
|
instead->atLeastOneDiscarded = true;
|
||||||
|
} else {
|
||||||
|
instead->AddTriangle(tr->a, tr->b, tr->c);
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue