mikolalysenko / isosurface

Isosurface polygonizer algorithms
MIT License
187 stars 31 forks source link

output data seems to be inverted? #2

Closed max-mapper closed 11 years ago

max-mapper commented 11 years ago

if I take the output of the surface net algorithm here and put it into .stl and render it, it shows up as inside out:

screen shot 2013-08-13 at 11 59 02 pm

however, if I load the same exact data into your isosurface toolbox (which has material.doubleSided = true) it looks okay

screen shot 2013-08-13 at 11 57 55 pm

do you know what's going on here and how I might get normal looking .stls?

mikolalysenko commented 11 years ago

That is a convention that your renderer has to decide on. If you want the facets in a different order, just swap two vertices in each of the faces.

mikolalysenko commented 11 years ago

Or alternatively you could change the sign of the implicit function you are using.