Allow construction points as a base for extrusion and revolution.
removeResults(1); // for case the point type was switched from multi-results type
std::shared_ptr<ModelAPI_ResultConstruction> aConstr = document()->createConstruction(data());
- aConstr->setInfinite(false);
+ aConstr->setInfinite(true);
aConstr->setShape(aShape);
setResult(aConstr);
}
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;
}