Import: if in a dxf file control points and fit points are given then use the former to create the B-Spline
This commit is contained in:
@@ -256,10 +256,10 @@ void ImpExpDxfRead::OnReadSpline(struct SplineData& sd)
|
||||
|
||||
try {
|
||||
Handle(Geom_BSplineCurve) geom;
|
||||
if (sd.fit_points > 0)
|
||||
geom = getInterpolationSpline(sd);
|
||||
else
|
||||
if (sd.control_points > 0)
|
||||
geom = getSplineFromPolesAndKnots(sd);
|
||||
else if (sd.fit_points > 0)
|
||||
geom = getInterpolationSpline(sd);
|
||||
|
||||
if (geom.IsNull())
|
||||
throw Standard_Failure();
|
||||
|
||||
Reference in New Issue
Block a user