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

fix BCF plugin set viewpoint #1169

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

Kurtil
Copy link
Contributor

@Kurtil Kurtil commented Oct 10, 2023

Use case:

I have a model with an aabb far from origin. I set a viewpoint with the BCFViewpointsPlugin. Even if there is no lines, there is a LineSet added to the scene. Because of that, the scene aabb is huge (lineSet at [0, 0, 0] + my model) and not relevant.

This PR prevents the addition of the LineSet if lines.length === 0.

To be consistent, the same logic is added on clipping_planes and bitmaps even if they are not problematic.

@ghost
Copy link

ghost commented Oct 10, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@xeolabs xeolabs added this to the 2.4.0 milestone Oct 10, 2023
@xeolabs xeolabs added the bug Something isn't working label Oct 10, 2023
@xeolabs xeolabs merged commit dff8715 into xeokit:master Oct 10, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants