Commit 95d57991 authored by ws's avatar ws

Test both on v0 and v1 instead of twice on v1.

parent c04036fe
Pipeline #2608 passed with stage
in 17 minutes and 43 seconds
......@@ -926,7 +926,7 @@ int insertVertexB(std::list<edgeXface> &shell, std::list<MTri3 *> &cavity,
// avoid angles that are too obtuse
double cosv = ((d1 * d1 + d2 * d2 - d3 * d3) / (2. * d1 * d2));
if (v1->onWhat()->dim() != 2 && v1->onWhat()->dim() != 2){
if (v0->onWhat()->dim() != 2 && v1->onWhat()->dim() != 2){
SVector3 v0v1(v1->x() - v0->x(), v1->y() - v0->y(), v1->z() - v0->z());
SVector3 v0v(v->x() - v0->x(), v->y() - v0->y(), v->z() - v0->z());
SVector3 pv = crossprod(v0v1, v0v);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment