
Thu, 07/31/2014 - 16:01
Hello,
I need to convert all curves and surfaces of my Shape into max 3 degree polynomial BSpline's.
I try to use follwoing construction:
TopoDS_Shape Shape1;
Reader.TransferRoots();
Shape1 = Reader.OneShape();
const Handle(ShapeCustom_RestrictionParameters) aParameters;
aParameters->ConvertBezierSurf();
aParameters->ConvertConicalSurf();
aParameters->ConvertCurve2d();
aParameters->ConvertCurve3d();
aParameters->GMaxDegree();
aParameters->GMaxSeg();
m_Shape = ShapeCustom::BSplineRestriction (Shape1, 0.00001, 0.00001, 3, 60, GeomAbs_Shape::GeomAbs_C2, GeomAbs_Shape::GeomAbs_C2, TRUE, TRUE, aParameters );
but this example crashed in ShapeCustom::BSplineRestriction.
What's may be wrong and what else shell I use to aproach this requirements?
Thank's in addvance.
Alex
Mon, 08/04/2014 - 13:29
Hello again,
I have try same code to IGEStest Open CASCADE example:
m_Shape = ShapeCustom::BSplineRestriction (Shape1, 0.00001, 0.00001, 3, 60, GeomAbs_Shape::GeomAbs_C2, GeomAbs_Shape::GeomAbs_C2, TRUE, TRUE, aParameters );
and have got this result on VS2010:
Unhandled exception at 0x01c548d6 in IGESTest.exe: 0xC0000005: Access violation reading location 0xfefd0030
Is anyone had same problem? What's may be wrong in my code?
Best regards,
A.Alexanov