]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
make compilable under debian linux
authorsbh <sergey.belash@opencascade.com>
Fri, 3 Apr 2015 06:48:53 +0000 (09:48 +0300)
committersbh <sergey.belash@opencascade.com>
Fri, 3 Apr 2015 06:48:53 +0000 (09:48 +0300)
src/SketchSolver/SketchSolver_Builder.cpp
src/SketchSolver/SketchSolver_Constraint.cpp
src/SketchSolver/SketchSolver_Group.cpp
src/SketchSolver/SketchSolver_Storage.cpp

index a1823bd369f97863da524216696d72d394cdf971..c46ec2c956742de333afb03115cab7f4c7b4238a 100644 (file)
@@ -42,6 +42,7 @@
 #include <SketchPlugin_ConstraintTangent.h>
 #include <SketchPlugin_ConstraintVertical.h>
 
+#include <math.h>
 
 // Initialization of constraint builder self pointer
 SketchSolver_Builder* SketchSolver_Builder::mySelf = 0;
index 012c45c6ec172d20e99fee1afca8d7671eac4cc3..b21b463fb23f629acac0e014122581c6fbee45d5 100644 (file)
@@ -12,6 +12,7 @@
 #include <ModelAPI_AttributeDouble.h>
 #include <ModelAPI_ResultConstruction.h>
 
+#include <math.h>
 
 SketchSolver_Constraint::SketchSolver_Constraint(
     ConstraintPtr  theConstraint)
index 1ad3646ddd0e7be3536c77feaad4929c5a977588..620768680fb636fe32d2f4e240432d48da5721a8 100644 (file)
@@ -31,6 +31,7 @@
 #include <SketchPlugin_ConstraintCoincidence.h>
 #include <SketchPlugin_ConstraintMirror.h>
 #include <SketchPlugin_ConstraintRigid.h>
+#include <SketchPlugin_Feature.h>
 
 #include <SketchPlugin_Arc.h>
 #include <SketchPlugin_Circle.h>
@@ -110,7 +111,7 @@ bool SketchSolver_Group::isInteract(
   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));
 }
 
 // ============================================================================
@@ -244,7 +245,8 @@ bool SketchSolver_Group::changeConstraint(
 
 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();
index 244bc1c7d839ce514462ae7286490bd63fb8c5cb..9dbf54f0c6aa5bbdd166a615460cc2f63c9e201c 100644 (file)
@@ -6,6 +6,8 @@
 
 #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