How can opencascade display a infinite plane?

How can opencascade display a infinite plane?

jelle's picture

Ais_plane

SunHongLei's picture

How if I do not know it is a infinite plane ? It is a face of a shape which included in a igs file.

Alexander Luger's picture

To check if a plane is infinite, use BRepTools::UVBounds(face,umin,umax,vmin,vmax) to get the bounding values of the face and check if those values are equal to Precision::Infinite().

Alex

SunHongLei's picture

Thanks very much! But here is the problem:when i read a igs file, i need to check every face if it is infinite? I want to know that is there a function which can display it automaticly?