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
Using test for testing number of sub-shapes.
[modules/shaper.git]
/
src
/
SketchSolver
/
SketchSolver_ConstraintLength.cpp
diff --git
a/src/SketchSolver/SketchSolver_ConstraintLength.cpp
b/src/SketchSolver/SketchSolver_ConstraintLength.cpp
index 5c3bbc088637187d5ee63c0cd3d746e27c89196f..be89bb53d3f2c31f7e36f8853827c91465fbff3f 100644
(file)
--- a/
src/SketchSolver/SketchSolver_ConstraintLength.cpp
+++ b/
src/SketchSolver/SketchSolver_ConstraintLength.cpp
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
#include <SketchSolver_ConstraintLength.h>
#include <SketchSolver_Error.h>
#include <SketchSolver_ConstraintLength.h>
#include <SketchSolver_Error.h>
@@
-7,7
+9,7
@@
void SketchSolver_ConstraintLength::getAttributes(
std::vector<EntityWrapperPtr>& theAttributes)
{
SketchSolver_Constraint::getAttributes(theValue, theAttributes);
std::vector<EntityWrapperPtr>& theAttributes)
{
SketchSolver_Constraint::getAttributes(theValue, theAttributes);
- if (!myErrorMsg.empty() || !theAttributes[2] ||
+ if (!myErrorMsg.empty() || !theAttributes[2] ||
theAttributes[2]->type() != ENTITY_LINE) {
theAttributes.clear();
return;
theAttributes[2]->type() != ENTITY_LINE) {
theAttributes.clear();
return;