I have a code that loads an IGES file into memory and translates all the IGES entities in the file into OCC shapes. The code is:
//loads file MyFile.igs
Handle(TColStd_HSequenceOfTransient) myList = myIgesReader.GiveList("iges-faces");
//selects all IGES faces in the file and puts them into a list called //MyList,
nIgesFaces = myList->Length();
nTransFaces = myIgesReader.TransferList(myList);
cout TopoDS_Shape sh = myIgesReader.OneShape();
//and obtains the results in an Open CASCADE shape.
The file being loaded "cuboid.igs" is a 3D rectangular box.
I need to get the dimensions of this box (length, width, height). I looked through the Geom_Plane.cdl file and it looks like the "Bounds" class has to be used. Could someone tell me how to use this in my code (variables to be declared, headers to be included etc.)?
I'm not an expert programmer. Any help from anyone will be greatly appreciated !!