Fix TD Dfx export - spline conversion
This commit is contained in:
committed by
Yorik van Havre
parent
45d8787110
commit
87ffd12016
@@ -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()) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user