Can you please help me with this. I have written a code to convert from IGES/IGS file to STL file. When i was using OCC-6.6.0 this code was working perfectly, Due to some reasons i had to migrate to Visual studio 2013 so i downloaded OCC 6.9.1, Now i am facing with weird issue which i am not able to resolve. I have attached screenshot while i debug you can have a look at it. The following is my code
Standard_Integer status = My_reader.ReadFile(file);
status = My_reader.TransferRoots();
/// The shape stores all translated data as single shape
IGES_Shape = My_reader.OneShape();
status = IGES_Shape.IsNull(); // <--- --- ---- over here the status value is 0 i.e., Standard_boolean value is false /// so the shape is not NULL
StlAPI_Writer wr;
status = wr.Write(IGES_Shape, "temp/IGES_Temp.stl"); // <- - --- --------- ( over here the status value is 1 i.e., //StlAPI_ErrorStatus = StlAPI_MeshIsEmpty which is showing me that the mesh is empty.)
Please help me out. I havent faced with this issue earlier.
Sat, 07/05/2008 - 23:40
Hi Alex,
search the forum. For example you can have a look at:
http://www.opencascade.org/org/forum/thread_3145/
Good luck!
Pawel
Mon, 07/07/2008 - 08:34
Dear Pawel
Thanx for reply. I'll try to do this.
Wed, 10/21/2015 - 11:14
Hi Pawel,
Can you please help me with this. I have written a code to convert from IGES/IGS file to STL file. When i was using OCC-6.6.0 this code was working perfectly, Due to some reasons i had to migrate to Visual studio 2013 so i downloaded OCC 6.9.1, Now i am facing with weird issue which i am not able to resolve. I have attached screenshot while i debug you can have a look at it. The following is my code
IGESControl_Controller::Init();
IGESControl_Reader My_reader;
Standard_Integer status = My_reader.ReadFile(file);
status = My_reader.TransferRoots();
/// The shape stores all translated data as single shape
IGES_Shape = My_reader.OneShape();
status = IGES_Shape.IsNull(); // <--- --- ---- over here the status value is 0 i.e., Standard_boolean value is false /// so the shape is not NULL
StlAPI_Writer wr;
status = wr.Write(IGES_Shape, "temp/IGES_Temp.stl"); // <- - --- --------- ( over here the status value is 1 i.e., //StlAPI_ErrorStatus = StlAPI_MeshIsEmpty which is showing me that the mesh is empty.)
Please help me out. I havent faced with this issue earlier.