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:
wmayer
2021-04-01 13:27:03 +02:00
parent 5169a7e852
commit 90ed40d605

View File

@@ -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();