enthought / enthought/mayavi

mesh example renders inverted normals

Open
#767 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

I'm using the following conda setup:
```
onda list 'anaconda|mayavi|vtk'
WARNING: The conda.compat module is deprecated and will be removed in a future release.
# packages in environment at /home/ondrej/anaconda3:
#
# Name Version Build Channel
anaconda 2019.03 py37_0
anaconda-client 1.7.2 py37_0
anaconda-navigator 1.9.6 py37_0
anaconda-project 0.8.2 py37_0
mayavi 4.6.2 py37h4c70da7_4 conda-forge
vtk 8.2.0 py37haa4764d_200
```

And with the [basic mesh example](https://docs.enthought.com/mayavi/mayavi/mlab.html#id5) I get the following rendering:
![snapshot](https://user-images.githubusercontent.com/941907/55799650-2ad8e400-5ad2-11e9-8297-6e2ddf53fcee.png)

It seems to me like there is some strange normal inversion going one. I've tried flipping normals, cull back and front-faces, nothing helped.
It seems to me like the surface has normals on the wrong (or only one) side.

I also ran
```
nosetests mayavi.tests
```
which reported only 7 tests skipped, all the others passed.

Please lets me know how I can debug this. It feels like this might be a simple thing to fix, but I just don't know where.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.