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

Edges displayed inside the model when height is 0 #943

Open
MaxGeldner opened this issue Oct 10, 2022 · 0 comments
Open

Edges displayed inside the model when height is 0 #943

MaxGeldner opened this issue Oct 10, 2022 · 0 comments

Comments

@MaxGeldner
Copy link
Contributor

MaxGeldner commented Oct 10, 2022

Describe the bug
We noticed a little issue with 3D models with a height of 0 when using Edge Materials. There are diagonal lines inside the model (probably the lines separating the polygons?). We are using the STLLoadPlugin to load the models into the viewer. This issue doesn't seem to be apparent when models have a height >0.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Model via the STLLoader Plugin that has a height of 0 (probably this is not unique to the STL Models, but we noticed it with this specific loader!)
  2. Apply an EdgeMaterial to the model. We are using this Material config:
new EdgeMaterial(this.viewer.scene, {
    id: 'someId',
    edgeColor: [106, 108, 138],
    edgeAlpha: 1
});

Expected behavior
The model should only have visible edges at the outside edges, not inside the model.

Screenshots
You can also see some correctly renedered models, that have a height >0.
image-20220919-083748
image-20220920-092958

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 106.0.5249.61
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

No branches or pull requests

1 participant