DiscussionsIssue archiveOther usage issues

Archived discussion

Find the height of a cylinder

Other usage issuesThu, 06/16/2005 - 17:241 reply

Browse this forum
QuestionAuthor

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

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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.