Area enclosed by a wire!

Hi,

Does anyone know any function which evaluates the area enclosed by a closed wire?please help!

Rob Bachrach's picture

A wire has no area because you need to define the surface inside it. Try making the wire into a face (BRepBuilderAPI_MakeFace) and getting the surface area of the face using BRepGProp::SurfaceProperties (mass=area).