xtk / X

The X Toolkit
http://www.goXTK.com
Other
795 stars 266 forks source link

Some STL files may have backwards facing triangles #89

Open davetchen opened 12 years ago

davetchen commented 12 years ago

I'm trying to visualize some STL files and have some tests that appear "inside out". Is there a switch available in the STL parser to flip the normals, or perhaps a shader that can do "two-sided" illumination? Many thanks for the great JS package--been having fun with it! -dave (I'll try to attach an example file to this issue if possible...)

davetchen commented 12 years ago

Here's a link at google docs for left_ventricle.stl ...

https://docs.google.com/open?id=0B7RCxOSZAr6nN0tJZWhKX2F0RHc

haehn commented 12 years ago

Hi Dave, yes I agree - it is inside out. But why is it like that - how did you generate it? Is it a common thing? Is there a way to detect automatically if the normals have to be flipped? BTW did you try to dragndrop your .stl file on http://slicedrop.com :)

haehn commented 12 years ago

Any progress on this?