Skip to content

Commit

Permalink
remove spline degree check
Browse files Browse the repository at this point in the history
  • Loading branch information
qcad committed Feb 8, 2016
1 parent 4c4ce2e commit 30eb324
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/io/dxf/RDxfImporter.cpp
Expand Up @@ -586,14 +586,8 @@ void RDxfImporter::addVertex(const DL_VertexData& data) {
}

void RDxfImporter::addSpline(const DL_SplineData& data) {
if (data.degree<=1 || data.degree>3) {
qWarning() << "RDxfImporter::addSpline: invalid spline degree: " << data.degree;
return;
}

spline.setDegree(data.degree);
spline.setPeriodic(data.flags&0x2);
// spline.setPeriodic(false);
RVector tanS(data.tangentStartX, data.tangentStartY, data.tangentStartZ);
RVector tanE(data.tangentEndX, data.tangentEndY, data.tangentEndZ);
if (tanS.getMagnitude()>RS::PointTolerance) {
Expand Down

0 comments on commit 30eb324

Please sign in to comment.