mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Implement num_faces
This commit is contained in:
@@ -234,8 +234,16 @@ int ifcopenshell::geometry::CgalShape::num_edges() const
|
|||||||
|
|
||||||
int ifcopenshell::geometry::CgalShape::num_faces() const
|
int ifcopenshell::geometry::CgalShape::num_faces() const
|
||||||
{
|
{
|
||||||
to_poly();
|
#ifndef IFOPSH_SIMPLE_KERNEL
|
||||||
return shape_->size_of_facets();
|
if (nef_) {
|
||||||
|
return nef_->number_of_facets();
|
||||||
|
} else
|
||||||
|
#endif
|
||||||
|
if (shape_) {
|
||||||
|
return shape_->size_of_facets();
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<OpaqueNumber> ifcopenshell::geometry::CgalShape::CgalShape::length()
|
std::shared_ptr<OpaqueNumber> ifcopenshell::geometry::CgalShape::CgalShape::length()
|
||||||
|
|||||||
Reference in New Issue
Block a user