- BRepTools::AddUVBounds(F, B);
-
- //convert 2d space of planar face to the 3d space of given points
- //this is more faster way then getting of bnd3d of faces and project them on plane...
- Handle(Geom_Plane) Pl = HYDROData_LCM_FaceClassifier::GetPlane(F);
- gp_Trsf RT;
- RT.SetTransformation(Pl->Position());
- RT.Invert();
- double xmin, ymin, xmax, ymax;
- B.Get(xmin, ymin, xmax, ymax);
- gp_Pnt MinP(xmin, ymin, 0), MaxP(xmax, ymax, 0);
- MinP.Transform(RT);
- MaxP.Transform(RT);
- gp_Pnt2d MinPT(MinP.X(), MinP.Y());
- gp_Pnt2d MaxPT(MaxP.X(), MaxP.Y());