#include <SketchPlugin_ConstraintTangent.h>
#include <SketchPlugin_ConstraintVertical.h>
+#include <math.h>
// Initialization of constraint builder self pointer
SketchSolver_Builder* SketchSolver_Builder::mySelf = 0;
#include <SketchPlugin_ConstraintCoincidence.h>
#include <SketchPlugin_ConstraintMirror.h>
#include <SketchPlugin_ConstraintRigid.h>
+#include <SketchPlugin_Feature.h>
#include <SketchPlugin_Arc.h>
#include <SketchPlugin_Circle.h>
ConstraintPtr aConstraint = std::dynamic_pointer_cast<SketchPlugin_Constraint>(theFeature);
if (aConstraint)
return myFeatureStorage->isInteract(aConstraint);
- return myFeatureStorage->isInteract(theFeature);
+ return myFeatureStorage->isInteract(std::dynamic_pointer_cast<ModelAPI_Feature>(theFeature));
}
// ============================================================================
bool SketchSolver_Group::updateFeature(std::shared_ptr<SketchPlugin_Feature> theFeature)
{
- std::set<ConstraintPtr> aConstraints = myFeatureStorage->getConstraints(theFeature);
+ std::set<ConstraintPtr> aConstraints =
+ myFeatureStorage->getConstraints(std::dynamic_pointer_cast<ModelAPI_Feature>(theFeature));
if (aConstraints.empty())
return false;
std::set<ConstraintPtr>::iterator aCIter = aConstraints.begin();
#include <SketchSolver_Storage.h>
+#include <math.h>
+
/** \brief Search the entity/parameter with specified ID in the list of elements
* \param[in] theEntityID unique ID of the element
* \param[in] theEntities list of elements