Mod: use empty
This commit is contained in:
@@ -622,7 +622,7 @@ TopoDS_Face FaceTypedCylinder::buildFace(const FaceVectorType &faces) const
|
||||
static TopoDS_Face dummy;
|
||||
std::vector<EdgeVectorType> boundaries;
|
||||
boundarySplit(faces, boundaries);
|
||||
if (boundaries.size() < 1)
|
||||
if (boundaries.empty())
|
||||
return dummy;
|
||||
|
||||
//make wires
|
||||
@@ -638,7 +638,7 @@ TopoDS_Face FaceTypedCylinder::buildFace(const FaceVectorType &faces) const
|
||||
return dummy;
|
||||
allWires.push_back(wireMaker.Wire());
|
||||
}
|
||||
if (allWires.size() < 1)
|
||||
if (allWires.empty())
|
||||
return dummy;
|
||||
|
||||
// Sort wires by size, that is, the innermost wire comes last
|
||||
@@ -1089,7 +1089,7 @@ bool FaceUniter::process()
|
||||
}
|
||||
}
|
||||
}
|
||||
if (facesToSew.size() > 0)
|
||||
if (!facesToSew.empty())
|
||||
{
|
||||
modifiedSignal = true;
|
||||
workShell = ModelRefine::removeFaces(workShell, facesToRemove);
|
||||
|
||||
Reference in New Issue
Block a user