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
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 guys. I havent faced with this issue earlier.