Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rectangle correction to have coincidence with point/line selected for the first point...
[modules/shaper.git]
/
src
/
SketchSolver
/
SketchSolver_Storage.cpp
diff --git
a/src/SketchSolver/SketchSolver_Storage.cpp
b/src/SketchSolver/SketchSolver_Storage.cpp
index 809bef132cf4fa9e5c9591990dbfe151b55c4cd1..c63d28e437a662c61818cf2c85b400e6f0f3516d 100644
(file)
--- a/
src/SketchSolver/SketchSolver_Storage.cpp
+++ b/
src/SketchSolver/SketchSolver_Storage.cpp
@@
-14,6
+14,7
@@
#include <SketchPlugin_Circle.h>
#include <SketchPlugin_Line.h>
#include <SketchPlugin_Point.h>
#include <SketchPlugin_Circle.h>
#include <SketchPlugin_Line.h>
#include <SketchPlugin_Point.h>
+#include <SketchPlugin_IntersectionPoint.h>
#include <SketchPlugin_ConstraintRigid.h>
#include <SketchPlugin_ConstraintRigid.h>
@@
-96,7
+97,8
@@
static std::list<AttributePtr> pointAttributes(FeaturePtr theFeature)
aPoints.push_back(theFeature->attribute(SketchPlugin_Line::START_ID()));
aPoints.push_back(theFeature->attribute(SketchPlugin_Line::END_ID()));
}
aPoints.push_back(theFeature->attribute(SketchPlugin_Line::START_ID()));
aPoints.push_back(theFeature->attribute(SketchPlugin_Line::END_ID()));
}
- else if (theFeature->getKind() == SketchPlugin_Point::ID())
+ else if (theFeature->getKind() == SketchPlugin_Point::ID() ||
+ theFeature->getKind() == SketchPlugin_IntersectionPoint::ID())
aPoints.push_back(theFeature->attribute(SketchPlugin_Point::COORD_ID()));
return aPoints;
}
aPoints.push_back(theFeature->attribute(SketchPlugin_Point::COORD_ID()));
return aPoints;
}