Skip to content

Commit

Permalink
Import: if in a dxf file control points and fit points are given then…
Browse files Browse the repository at this point in the history
… use the former to create the B-Spline
  • Loading branch information
wwmayer committed Apr 1, 2021
1 parent 5169a7e commit 90ed40d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Import/App/ImpExpDxf.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 90ed40d

Please sign in to comment.