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
Simplification and refactoring of unit tests for SketchPlugin
[modules/shaper.git]
/
src
/
SketchPlugin
/
SketchPlugin_ConstraintMiddle.cpp
diff --git
a/src/SketchPlugin/SketchPlugin_ConstraintMiddle.cpp
b/src/SketchPlugin/SketchPlugin_ConstraintMiddle.cpp
index 7112d440101f6283295d6e73372595b221e69949..31fc3f1da64ecc9fa2b6868648aa003dea155051 100644
(file)
--- a/
src/SketchPlugin/SketchPlugin_ConstraintMiddle.cpp
+++ b/
src/SketchPlugin/SketchPlugin_ConstraintMiddle.cpp
@@
-6,6
+6,8
@@
#include "SketchPlugin_ConstraintMiddle.h"
#include "SketchPlugin_ConstraintMiddle.h"
+#include "SketcherPrs_Factory.h"
+
SketchPlugin_ConstraintMiddle::SketchPlugin_ConstraintMiddle()
{
}
SketchPlugin_ConstraintMiddle::SketchPlugin_ConstraintMiddle()
{
}
@@
-25,10
+27,8
@@
AISObjectPtr SketchPlugin_ConstraintMiddle::getAISObject(AISObjectPtr thePreviou
if (!sketch())
return thePrevious;
if (!sketch())
return thePrevious;
- AISObjectPtr anAIS;
- // TODO
- //AISObjectPtr anAIS = SketcherPrs_Factory::collinearConstraint(this, sketch()->coordinatePlane(),
- // thePrevious);
+ AISObjectPtr anAIS = SketcherPrs_Factory::middleConstraint(this, sketch()->coordinatePlane(),
+ thePrevious);
return anAIS;
}
return anAIS;
}