case GeomValidators_ShapeType::Face:
anApplicableTypes.push_back("face");
anApplicableTypes.push_back("shell");
+ // wire should not be the first in this list to be able to check
+ // the type of selection when evaluating shape by shape
+ anApplicableTypes.push_back("wire");
break;
default:
anApplicableTypes = theArguments;
aConstruction = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aContext);
if(aConstruction.get()) {
// Construction selected. Check that it is not infinite.
- if(aConstruction->isInfinite()) {
+ if(aConstruction->isInfinite() && !aConstruction->shape()->isVertex()) {
theError = "Error: Infinite constructions is not allowed as base.";
return false;
}