*** empty log message ***
This commit is contained in:
parent
1e2f4c1a80
commit
73d01b5408
|
@ -188,7 +188,6 @@ bool seed(bool outside = true, int start = -1) {
|
||||||
mesh.vert[start].SetD();
|
mesh.vert[start].SetD();
|
||||||
//bad luck. we should call seed again (assuming random pick) up to
|
//bad luck. we should call seed again (assuming random pick) up to
|
||||||
//some maximum tries. im lazy.
|
//some maximum tries. im lazy.
|
||||||
cout << "Isolated\n";
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//find the closest visited or boundary
|
//find the closest visited or boundary
|
||||||
|
@ -198,7 +197,6 @@ bool seed(bool outside = true, int start = -1) {
|
||||||
CVertex &v = mesh.vert[id];
|
CVertex &v = mesh.vert[id];
|
||||||
if(v.IsB() || v.IsV()) {
|
if(v.IsB() || v.IsV()) {
|
||||||
mesh.vert[start].SetD();
|
mesh.vert[start].SetD();
|
||||||
cout << "visited near\n";
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -270,7 +268,6 @@ bool seed(bool outside = true, int start = -1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!found) { //see bad luck above
|
if(!found) { //see bad luck above
|
||||||
cout << "No empty sphere\n";
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +533,6 @@ int addFace() {
|
||||||
getInSphere(middle, r + radius, targets, dists);
|
getInSphere(middle, r + radius, targets, dists);
|
||||||
|
|
||||||
if(targets.size() == 0) {
|
if(targets.size() == 0) {
|
||||||
cout << "Isolated\n";
|
|
||||||
return false; //this really would be strange but one never knows.
|
return false; //this really would be strange but one never knows.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -587,7 +583,6 @@ int addFace() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(edge.candidate == -1) {
|
if(edge.candidate == -1) {
|
||||||
cout << "No candidate\n";
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Point3x n = ((mesh.vert[edge.candidate].P() - v0)^(v1 - v0)).Normalize();
|
Point3x n = ((mesh.vert[edge.candidate].P() - v0)^(v1 - v0)).Normalize();
|
||||||
|
@ -595,7 +590,6 @@ int addFace() {
|
||||||
if(normal * mesh.vert[edge.candidate].N() < 0 ||
|
if(normal * mesh.vert[edge.candidate].N() < 0 ||
|
||||||
n * normal < crease ||
|
n * normal < crease ||
|
||||||
nb[edge.candidate] >= 2) {
|
nb[edge.candidate] >= 2) {
|
||||||
cout << "failed normal or crease\n";
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue