Login  Register

Re: Issue with shading the cubic

Posted by gouessej on Oct 23, 2015; 9:03am
URL: https://forum.jogamp.org/Issue-with-shading-the-cubic-tp4035539p4035567.html

tamb20 wrote
Thank you
You're welcome.

tamb20 wrote
Could you please, declare to me which text format will apply to your code? Is it the format I give to you work with it or not?

Also, how your code will read the points , elements and vertexes? Is it by element or vertex or node for shading? I means when you shad the shape, It will shad the internal elements or just the external? How could you do that?
Look at STLAsciiParser for the text based STL file parsing and look at STLBinaryParser for the binary STL file parsing. It's up to you to respect the STL format if you want to use a loader. The STL parser reads the faces but you can access the vertices. I admit that this reader is a bit difficult to use. You can look at the ImageJ 3D viewer (based on Java3D) to see how it is used.
Julien Gouesse | Personal blog | Website