Standard_Integer anIdx;
- // Find first and last used knot
+ // Find first and last used knot.
Standard_Integer aFirstUsedKnot = aFirstIdx,
aLastUsedKnot = aLastIdx;
for(anIdx = aFirstIdx; anIdx <= aLastIdx; anIdx++)
break;
}
+ if (aFirstUsedKnot == aLastUsedKnot)
+ {
+ // Degenerated case:
+ // Some bounds lies out of curve param space.
+ // In this case build one interval with [myuinf, myusup].
+ // Parameters of these indexes will be redefined.
+ aFirstUsedKnot = aFirstIdx;
+ aLastUsedKnot = aFirstIdx + 1;
+ }
+
mysample = (TheCurveTool::BSpline(aCurve))->Degree() + 1;
// Fill sample points.