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

IsoSurface: Wrong triangle normals #1

Open
martinRenou opened this issue Nov 28, 2019 · 0 comments
Open

IsoSurface: Wrong triangle normals #1

martinRenou opened this issue Nov 28, 2019 · 0 comments

Comments

@martinRenou
Copy link
Member

Triangle indices are not ordered correctly in the IsoSurface computation, resulting in the triangle normals to be randomly chosen.

Normals are important for face culling:
(Using the ThreeJS default culling: THREE.FrontSide only triangles facing the camera are displayed, this depends on the triangle normal)
isosurface_front

(Using THREE.DoubleSide all the triangle are displayed)
isosurface_double

Concerning the iso-surface computation, we should use the THREE.DoubleSide option anyway, because the surface has no "side". But concerning the threshold computation, it will be important to get normal rights (especially for transparent meshes, because transparency depends a lot on culling).

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