const std::shared_ptr<ModelHighAPI_Interface> & theConstraint,
const ModelHighAPI_Double & theValue)
{
- // TODO(spo): check somehow that the feature is a constraint or eliminate
- // crash if the feature have no real attribute VALUE
fillAttribute(theValue, theConstraint->feature()->real(SketchPlugin_Constraint::VALUE()));
// theConstraint->execute();
SketchPtr addSketch(const std::shared_ptr<ModelAPI_Document> & thePart,
const std::shared_ptr<GeomAPI_Ax3> & thePlane)
{
- // TODO(spo): check that thePart is not empty
std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(SketchAPI_Sketch::ID());
return SketchPtr(new SketchAPI_Sketch(aFeature, thePlane));
}
SketchPtr addSketch(const std::shared_ptr<ModelAPI_Document> & thePart,
const ModelHighAPI_Selection & theExternal)
{
- // TODO(spo): check that thePart is not empty
std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(SketchAPI_Sketch::ID());
return SketchPtr(new SketchAPI_Sketch(aFeature, theExternal));
}
SketchPtr addSketch(const std::shared_ptr<ModelAPI_Document> & thePart,
const std::string & theExternalName)
{
- // TODO(spo): check that thePart is not empty
std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(SketchAPI_Sketch::ID());
return SketchPtr(
new SketchAPI_Sketch(aFeature, ModelHighAPI_Selection("FACE", theExternalName)));