-
Notifications
You must be signed in to change notification settings - Fork 26
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
Adaptive Joint Rule Components #232
Conversation
Adaptive_GH_Components_DEMO.zip |
This is somewhat experimental, so we should test it before pushing into a release. I did a fair amount of testing with various joints, and it seems stable, but I'm not sure about all the various GH events that could impact it... |
OK so when opening a saved file with the components, old connections to the beam or category inputs are deleted. I will look into a solution. I'll let you know when it's working, or let me know if you have an idea. |
Super cool feature! Also please stick to PEP8 convention where possible, even in GH components (e.g. snake_case for functions, variables and arguments). |
Ok so I solved the issue where connections were severed when opening a saved file with the new components. This has the added benefit of not severing connections if the joint type uses the same |
ok done |
src/compas_timber/ghpython/components/CT_Joint_Rule_Category/code.py
Outdated
Show resolved
Hide resolved
src/compas_timber/ghpython/components/CT_Joint_Rule_Category/code.py
Outdated
Show resolved
Hide resolved
src/compas_timber/ghpython/components/CT_Joint_Rule_Direct/code.py
Outdated
Show resolved
Hide resolved
src/compas_timber/ghpython/components/CT_Joint_Rule_Direct/code.py
Outdated
Show resolved
Hide resolved
src/compas_timber/ghpython/components/CT_Joint_Options_FrenchRidgeLap/code.py
Outdated
Show resolved
Hide resolved
src/compas_timber/ghpython/components/CT_Joint_Options_LButt/code.py
Outdated
Show resolved
Hide resolved
src/compas_timber/ghpython/components/CT_Joint_Options_LButt/code.py
Outdated
Show resolved
Hide resolved
src/compas_timber/ghpython/components/CT_Joint_Rule_Category/code.py
Outdated
Show resolved
Hide resolved
…idgeLap/code.py Co-authored-by: Chen Kasirer <[email protected]>
…ohler/compas_timber into adaptive_GH_Components
@chenkasirer @jonashaldemann Hey this is ready for review. There are videos and an up-to-date example file. |
please make sure all actions finish successfully |
generally this needs to be discussed and agreed upon between @obucklin and @jonashaldemann (and potentially others that are invested in the GH flow).
|
I went through the code for all the components and updated the formatting. Not sure about the actions... |
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.
Pending:
- @jonashaldemann is happy with this flow
- another round of testing cause of the latest changes
LGTM.
This changes the
DirectRule
andCategoryRule
GH components to adapt dynamically to the joint typ input. The joint type passes the names of the beams' roles to the rule components, which registers the new input parameters. This should simplify definingmain_beam
andcross_beam
and also help with future joints such as mortise/tenon and dovetail.What type of change is this?
x
] New feature in a backwards-compatible manner.Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.x
] I added a line to theCHANGELOG.md
file in theUnreleased
section under the most fitting heading (e.g.Added
,Changed
,Removed
).x
] I ran all tests on my computer and it's all green (i.e.invoke test
).x
] I ran lint on my computer and there are no errors (i.e.invoke lint
).compas_timber.datastructures.Beam
.