Skip to content
Permalink
Browse files

+ fixes #1878: model refine exception

  • Loading branch information...
wwmayer committed Dec 28, 2014
1 parent 7d8b1f3 commit e329cb5c3acd5b170359e0e8cd28d98b61be935d
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/Mod/Part/App/modelRefine.cpp
@@ -519,11 +519,13 @@ bool wireEncirclesAxis(const TopoDS_Wire& wire, const Handle(Geom_CylindricalSur
gp_Vec dv = gp_Vec(pend.X(), pend.Y(), pend.Z()) - bv;
double dist = dv.Magnitude();

// Check orientation of this piece in relation to cylinder axis
if ((bv - cv).Crossed(dv).IsOpposite(av, Precision::Confusion()))
dist = -dist;
if (dist > 0) {
// Check orientation of this piece in relation to cylinder axis
if ((bv - cv).Crossed(dv).IsOpposite(av, Precision::Confusion()))
dist = -dist;

length += dist;
length += dist;
}
}

begin = pend;

0 comments on commit e329cb5

Please sign in to comment.
You can’t perform that action at this time.