-
Notifications
You must be signed in to change notification settings - Fork 1
Add Edge Set tree object class #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
057b928 to
07cf4d8
Compare
| Name of the Edge Set. | ||
| edge_set_type : | ||
| Determines how the Edge Set is defined. Can be either :attr:`.EdgeSetType.BY_NODES` | ||
| or :attr:`.EdgeSetType.BY_REFERENCE`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as in ACP. BY_REFERENCE tells the customer nothing.
What about or :attr:.EdgeSetType.BY_REFERENCE which means by :class:ElementSet.
Or you just read the doc of the other properties. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improved by (almost) copying the GUI tooltips 👍
| def __init__( | ||
| self, | ||
| name: str = "EdgeSet", | ||
| edge_set_type: EdgeSetType = EdgeSetType.BY_NODES, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default in ACP is by reference, and I think that also makes more sense.
| Element Set whose boundary the Edge Set follows. | ||
| Only applies when ``edge_set_type`` is :attr:`.EdgeSetType.BY_REFERENCE`. | ||
| limit_angle : | ||
| Maximum angle above which the remaining Element Set boundary is no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we document here that -1 stand for no or suppressed limit angle to walk around the entire Element Set?
And I guess the angle is in degree? Please document.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'm tempted to add a conversion from None to -1, to avoid the magic number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, there is typically a bool to control whether the property is active (can be set or not)

So we would have to add another parameter: trim edge set. If true, the user can set the limit angle.
What do you think? Can also be addressed later. Or we implement it in pyACP and apply the change to ACP kernel later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, in that case I think we can do it later.
If we do it just on the PyACP side, there's no way to recover the previous value when it's turned off and on again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a sneaky way we could implement this.. by just flipping the sign (AFAICT, all negative values disable cropping). But I think that logic is a bit too potentially confusing. In any case, we can always add a nicer way to handle this later.
In any case, I now documented to use -1. for turning it off.
8357772 to
be7fbe7
Compare
TODO: