Calculating projected area

Has anyone used Open Cascade to calculate the projected area of a shape. For instance create a box using BRepPrimAPI_MakeBox. Then define a plane that you want to find the projected area of the box on this plane. Is there a simple way to find the projected area on this plane that I am missing in my searching through the OCC documentation.


Stephane Routelous's picture

Hi Cathy,

You can use the Hidden Line Removal Algorithm.
Have a look at the HLR Sample, or the classes HLRBRep_* HLRAlgo*


croberts's picture

Is the sample you are referring to located at
CAS4.0/Samples/src/ISession2D/ISession2D_Shape.cxx where CAS4.0 is the root directory for the Open Cascade software?