Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of creating an exact copy of existing constraint, select it.
- Loading branch information
1 parent
09ca442
commit 406c55e
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -655,6 +655,15 @@ class ConstraintBase { | |
bool reference; // a ref dimension, that generates no eqs | ||
std::string comment; // since comments are represented as constraints | ||
|
||
bool Equals(const ConstraintBase &c) const { | ||
return type == c.type && group.v == c.group.v && workplane.v == c.workplane.v && | ||
valA == c.valA && valP.v == c.valP.v && ptA.v == c.ptA.v && ptB.v == c.ptB.v && | ||
entityA.v == c.entityA.v && entityB.v == c.entityB.v && | ||
entityC.v == c.entityC.v && entityD.v == c.entityD.v && | ||
other == c.other && other2 == c.other2 && reference == c.reference && | ||
comment == c.comment; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
whitequark
Author
Contributor
|
||
} | ||
|
||
bool HasLabel() const; | ||
|
||
void Generate(IdList<Param, hParam> *param); | ||
|
Can we create two comments with the same text after this commit?