MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / area

Method area

src/ifcgeom/kernels/cgal/CgalConversionResult.cpp:501–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501OpaqueNumber* ifcopenshell::geometry::CgalShape::area()
502{
503 to_poly();
504 auto s = *shape_;
505 CGAL::Polygon_mesh_processing::triangulate_faces(s);
506 return new NumberType(CGAL::Polygon_mesh_processing::area(s));
507}
508
509OpaqueNumber* ifcopenshell::geometry::CgalShape::volume()
510{

Callers 8

visitMethod · 0.45
subtract_retain_largestFunction · 0.45
eliminate_overlapsFunction · 0.45
arrangement_cell_iouFunction · 0.45
arrange_cgal_polygonsFunction · 0.45
set_point_insideMethod · 0.45
apply_mappingMethod · 0.45

Calls 1

to_polyFunction · 0.85

Tested by

no test coverage detected