Yes, I did the same thing but the it return me a NULL pointer with Handle_Geom_BoundedSurface when I use the DownCast function. I don't know why, I guess it possibly because when I change the TopoDS_Face to a Geom_Surface, it lost the bounded info already? BYW, I've ever downcast a Geome_Surface to a Geom_Plane successfully. Is there any thing I didn't notice? thanks!
hi.
i have such problem. Because Geom_Suface is always infinite. May be this way:
all TopoDS_Edge-> Geom_BoundedCurve
Geom_Surface(F)+all Geom_BoundedCurve->Geom_BoundedSurface...
try this function to get u,v intervals of your surface:
BRepTools::UVBox(Face,U1,u2,v1,v2)
then, if you have a rectangular surface , you can made Geom_TrimmitedRectangularSurface.
Thu, 01/09/2003 - 16:08
may be so:
Handle_Geom_Surface s=BRepTools::Surface(F);
Handle_Geom_BoundedSurface bs=Handle_Geom_BoundedSurface::Downcast(s);
Fri, 01/10/2003 - 04:51
Yes, I did the same thing but the it return me a NULL pointer with Handle_Geom_BoundedSurface when I use the DownCast function. I don't know why, I guess it possibly because when I change the TopoDS_Face to a Geom_Surface, it lost the bounded info already? BYW, I've ever downcast a Geome_Surface to a Geom_Plane successfully. Is there any thing I didn't notice? thanks!
Fri, 01/10/2003 - 09:34
hi.
i have such problem. Because Geom_Suface is always infinite. May be this way:
all TopoDS_Edge-> Geom_BoundedCurve
Geom_Surface(F)+all Geom_BoundedCurve->Geom_BoundedSurface...
Sat, 01/11/2003 - 07:48
try this function to get u,v intervals of your surface:
BRepTools::UVBox(Face,U1,u2,v1,v2)
then, if you have a rectangular surface , you can made Geom_TrimmitedRectangularSurface.
Fri, 01/10/2003 - 09:42
Hi,
If you have to find intersection of a face and an edge
try to use BRepExtrema_ExtCF.
Regards