Part: use empty() and isEmpty() instead of count() where possible

This commit is contained in:
Benjamin Nauck
2025-03-12 16:01:14 +01:00
parent 51f73c05c0
commit 87f355105e
4 changed files with 9 additions and 4 deletions

View File

@@ -151,6 +151,10 @@ int TopoShapeCache::Ancestry::count() const
return shapes.Extent();
}
bool TopoShapeCache::Ancestry::empty() const
{
return shapes.IsEmpty();
}
TopoShapeCache::TopoShapeCache(const TopoDS_Shape& tds)
: shape(tds.Located(TopLoc_Location()))