Find the height of a cylinder

Hi,

I have a question on the Geom_CylindricalSurface.
I have a Geom_CylindricalSurface and I want to find the height of this cylinder.
I thought I can have it with the "bounds" method, but the parameter v1 and v2 are infinite.
So, How can I find the height of the cylinder?

Thanks.
Elisa

Rob Bachrach's picture

If the parameters are infinite, so is your surface. Is it possible that you extracted the surface from a face (via BRep_Tool::Surface)? If so, that face could be bounding the height. Try calling BRepTools::UVBounds on the face to get it's parameters.