const Standard_Real aUmin, const Standard_Real aUmax,
const gp_XYZ& aNorm)
{
- if (!allPoles.IsNull()) {
- if (allPoles->Length() != allWeights->Length())
- throw Standard_DimensionMismatch("IGESGeom_BSplineCurve : Init");
- if (allKnots->Lower() != -aDegree || allKnots->Upper() != anIndex+1 ||
- allWeights->Upper() != anIndex ||
- allWeights->Lower() != 0 || allPoles->Lower() != 0)
- throw Standard_DimensionMismatch("IGESGeom_BSplineCurve : Init");
+ if (!allPoles.IsNull())
+ {
+ if (allKnots->Lower() != -aDegree
+ || allKnots->Upper() != anIndex + 1
+ || allPoles->Lower() != 0)
+ {
+ throw Standard_DimensionMismatch ("IGESGeom_BSplineCurve : Init");
+ }
+ if (!allWeights.IsNull())
+ {
+ if (allPoles->Length() != allWeights->Length()
+ || allWeights->Upper() != anIndex
+ || allWeights->Lower() != 0)
+ {
+ throw Standard_DimensionMismatch ("IGESGeom_BSplineCurve : Init");
+ }
+ }
}
theIndex = anIndex;
set filename igsBF5.igs
set ref_data {
-DATA : Faulties = 0 ( 0 ) Warnings = 0 ( 1 ) Summary = 0 ( 1 )
+DATA : Faulties = 0 ( 2152 ) Warnings = 0 ( 1 ) Summary = 0 ( 2153 )
TPSTAT : Faulties = 0 ( 0 ) Warnings = 17 ( 249 ) Summary = 17 ( 249 )
CHECKSHAPE : Wires = 0 ( 0 ) Faces = 0 ( 0 ) Shells = 0 ( 0 ) Solids = 0 ( 0 )
NBSHAPES : Solid = 0 ( 0 ) Shell = 0 ( 0 ) Face = 47 ( 47 )