using OpenCASCADE6.6.0 we run into a problem while converting a mesh. The following code results in the exception
"Unhandled exception at 0x00481b62 in OCCSample.exe: 0xC0000005: Access violation reading location 0xfefd0000."
void OCCConverter::ConvertToCurve(const TopoDS_Edge& _edge)
Standard_Real first, last;
Handle_Geom_Curve geomCurve = BRep_Tool::Curve(_edge, first, last);
Handle_Standard_Type type = geomCurve->DynamicType();
std::cerr DynamicType()->Name() }
However, most often this succeeds:
processing type Compound
Do you have an idea about what I am doing wrong?
Thank you very much in advance.