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

Added short strut mechanism #931

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Added short strut mechanism #931

merged 1 commit into from
Nov 6, 2024

Conversation

vorth
Copy link
Member

@vorth vorth commented Nov 6, 2024

ExportedVEFStrutGeometry can now have a fallback for when the geometry
does not work. If any non-tip vertex computed is further from the origin than
some tip vertex, the fallback geometry is tried, or null is returned if there is no
fallback.

I'm using FastDefaultStrutGeometry as a default fallback, so there
should always be a strut rendered; this should retain invariants from before.
In particular, switching styles will do the right thing as long as every strut
is rendered; if a strut does not get rendered, it cannot be recovered by
switching styles.

This solves Paul's issue with "inside-out" r00 struts, but it goes much further,
and avoids rendering any inside-out struts except for the very short default
struts.

ExportedVEFStrutGeometry can now have a fallback for when the geometry
does not work.  If any non-tip vertex computed is further from the origin than
some tip vertex, the fallback geometry is tried, or null is returned if there is no
fallback.

I'm using FastDefaultStrutGeometry as a default fallback, so there
should always be a strut rendered; this should retain invariants from before.
In particular, switching styles will do the right thing as long as every strut
is rendered; if a strut does not get rendered, it cannot be recovered by
switching styles.

This solves Paul's issue with "inside-out" r00 struts, but it goes much further,
and avoids rendering *any* inside-out struts except for the very short default
struts.
@vorth vorth merged commit 4714aff into vZome:main Nov 6, 2024
1 check passed
@vorth vorth deleted the short-struts branch November 6, 2024 20:49
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.

1 participant