I have never tried to get the bounds of a plane. However, I do not believe it will work since a plane is not a 3D object. I tried creating a plane in the test harness and calling "boundingstr" and received no result. However, I do get a result from calling "boundingstr" on a 3D box.
I think you will need solid geometry to get a bounding box.
Mon, 11/14/2011 - 19:00
Try:
TopoDS_Shape aa = BRepBuilderAPI_MakeFace(a);
Note that aa could also be a TopoDS_Face.
Mon, 11/14/2011 - 19:31
thanks very much, Rob.
Do you know Add(const TopoDS_Shape& S,Bnd_Box& B) can get boundary of the plane a?
Mon, 11/14/2011 - 19:41
I have never tried to get the bounds of a plane. However, I do not believe it will work since a plane is not a 3D object. I tried creating a plane in the test harness and calling "boundingstr" and received no result. However, I do get a result from calling "boundingstr" on a 3D box.
I think you will need solid geometry to get a bounding box.