Fix #1937 mis-shapen projections in TechDraw and Drawing

Complex curves need more bezier segments for accurate representation.
This commit is contained in:
WandererFan
2017-05-29 19:53:36 -04:00
committed by wmayer
parent b50bd64350
commit d8eec8c7e1
2 changed files with 3 additions and 6 deletions

View File

@@ -362,7 +362,7 @@ void SVGOutput::printBSpline(const BRepAdaptor_Curve& c, int id, std::ostream& o
Handle(Geom_BSplineCurve) spline = c.BSpline();
if (spline->Degree() > 3 || spline->IsRational()) {
Standard_Real tol3D = 0.001;
Standard_Integer maxDegree = 3, maxSegment = 50;
Standard_Integer maxDegree = 3, maxSegment = 100;
Handle(BRepAdaptor_HCurve) hCurve = new BRepAdaptor_HCurve(c);
// approximate the curve using a tolerance
Approx_Curve3d approx(hCurve,tol3D,GeomAbs_C0,maxSegment,maxDegree);