I have been working on developing a CAD model on OpenCASCADE. I tried to use the mfc sample TopologyBuilding with modifications for the data. I want to get data for points of the geometry from other .cpp files. So I implemented the other header and .cpp files with the sample and tried to create a point from the data.
It compiled successsfully. But when I try to execute it through a button on the window, I get the error:
"An unhandled Win32 exception occured in TopologyBuilding.exe "
Following is the code I tried to implement in TopologyBuildingDoc.cpp:
double p1 = myFuselagePt->referencePtx;
double p2 = 0.5;
BlueEdge = BRepBuilderAPI_MakeEdge(gp_Pnt(p1,-50,-20),gp_Pnt(-30,-60,-60));
I declared the fuselage class (the class I want to take my data from) pointer object myFuselagePt in TopologyBuildingDoc.h
Plz help me with this problem. Thanks.