Part: use empty() and isEmpty() instead of count() where possible
This commit is contained in:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user