Fix TD Dfx export - spline conversion

This commit is contained in:
wandererfan
2019-03-28 10:44:33 -03:00
committed by Yorik van Havre
parent 45d8787110
commit 87ffd12016
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -606,7 +606,7 @@ void ImpExpDxfWrite::exportBSpline(BRepAdaptor_Curve& c)
gp_Pnt s,ePt;
Standard_Real tol3D = 0.001;
Standard_Integer maxDegree = 3, maxSegment = 100;
Standard_Integer maxDegree = 3, maxSegment = 200;
Handle(BRepAdaptor_HCurve) hCurve = new BRepAdaptor_HCurve(c);
Approx_Curve3d approx(hCurve, tol3D, GeomAbs_C0, maxSegment, maxDegree);
if (approx.IsDone() && approx.HasResult()) {
+1 -1
View File
@@ -530,7 +530,7 @@ BSpline::BSpline(const TopoDS_Edge &e)
}
Standard_Real tol3D = 0.001; //1/1000 of a mm? screen can't resolve this
Standard_Integer maxDegree = 3, maxSegment = 100;
Standard_Integer maxDegree = 3, maxSegment = 200;
Handle(BRepAdaptor_HCurve) hCurve = new BRepAdaptor_HCurve(c);
// approximate the curve using a tolerance
//Approx_Curve3d approx(hCurve, tol3D, GeomAbs_C2, maxSegment, maxDegree); //gives degree == 5 ==> too many poles ==> buffer overrun