Try using the FitAll()& ZFitAll() functions of your V3D_View object (Handle(V3d_View)).
Suds
Archived discussion
I wnat to choose a plane as a datum plane,and to sketcher in this plane.but first,i must to zoom this plane to fit the window.How can i do it?
Discussion
Posts are displayed in their archived order.
Try using the FitAll()& ZFitAll() functions of your V3D_View object (Handle(V3d_View)).
Suds
That will zoom to fit all objects,but what i want is to zoom to fit the datum plane i choose.
The plane is a Face with the surface type Geom_Plane,just like the Top or bottom face of a cylinder. after i choosing a plane,i must(1) zoom the plane to fit the window,and(2)set grid on the plane,Is there any way to do ?
thanks to everyone's responses.