Thu, 04/08/2004 - 19:45
Forums:
Hi all,
I'd like to create a Geom_TrimmedSurface from a Geom_Plane. The Geom_Plane is the underlying Shape to a TopoDS_Face belonging to a box. It must have bounding parameters associated with it somewhere, how do I retrieve them? I'd like to create an Adaptor3d_Surface from the trimmed surface and work with that in a generic manner. I guess this isn't a problem with other parametric surfaces, but planes seem to be a bit different here.
Thanks in advance,
Björn
Fri, 04/09/2004 - 04:37
Hi,
Please try the following code.
TopoDS_Face planeFace = ...;
UVBounds(planeFace, u1, u2, v1, v2);
Handle(Geom_RectangularTrimmedSurface) RTS =
new Geom_RectangularTrimmedSurface ( BRep_Tool::Surface(planeFace), u1, u2, v1, v2);
Regards,
G.P. Sun