Skip to content
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

Debug step tenon/mortise viz #328

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Debug step tenon/mortise viz #328

wants to merge 8 commits into from

Conversation

papachap
Copy link
Contributor

Bug fix for the visualization of the tenon and mortise in the StepJoint and StepJointNotch.

What type of change is this?

  • Bug fix in a backwards-compatible manner.
  • New feature in a backwards-compatible manner.
  • Breaking change: bug fix or new feature that involve incompatible API changes.
  • Other (e.g. doc update, configuration, etc)

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.

  • I added a line to the CHANGELOG.md file in the Unreleased section under the most fitting heading (e.g. Added, Changed, Removed).
  • I ran all tests on my computer and it's all green (i.e. invoke test).
  • I ran lint on my computer and there are no errors (i.e. invoke lint).
  • I added new functions/classes and made them available on a second-level import, e.g. compas_timber.datastructures.Beam.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary documentation (if appropriate)

@papachap papachap linked an issue Nov 14, 2024 that may be closed by this pull request
Copy link
Contributor

@obucklin obucklin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still getting all kinds of strange results. It works fine with no parameters changed, but if I do anything to change the parameters, the results are bad or they seem to do nothing.

image

please test and fix

@papachap
Copy link
Contributor Author

Still getting all kinds of strange results. It works fine with no parameters changed, but if I do anything to change the parameters, the results are bad or they seem to do nothing.
image

please test and fix

This is actually normal that you are getting this result, because your step depth is out of proportion. In the picture below you can see that after a certain depth your step is going outside the beam. (with red you can see the main_beam blank). You would see a similar issue in the BTL viewer as well because the step goes out of the beam, but you will not get any errors.

What we can do is set a limit to the depth so that is proportional to the strut_inclination. But anyway, imo the user needs to also be aware of what is considered a sensible parameter for a specific feature and what not.

image

@chenkasirer
Copy link
Contributor

@papachap as we discussed

  1. raise BeamJoiningError inside TStepJoint when the two beams meet in a topology that results in an erroneous step joint.
  2. regarding extension, I don't have a strong opinion. up to you.

Copy link
Contributor

@chenkasirer chenkasirer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

debug StepJoint tenon (viz)
3 participants