Re: [opendx-users] closest vertex to zero-based index?

2005-05-05 Thread Chris Pelkie
Look at Inquire. It can tell you grid dimensions and counts. Then use Computes with integer division and/or modulo and/or floor, ceil, to do what you did in your example. On May 4, 2005, at 2:40 PM, Matthew Bogosian wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a grid of

[opendx-users] shading problem with cubes

2005-05-05 Thread Dionysios Skamnakis
Hi, I have reposted the problem but the answers did not solve the problem. I have 4 cubes. +---++---+ | | B| | | A ++ D | | | C| | +---++---+ The shading of B,C is erroneous. I included this simple exaple in

Re: [opendx-users] shading problem with cubes

2005-05-05 Thread David Thompson
I'm not quite sure what you are saying, but I think I see what you mean. The problem lies with the shading. If you Import- ShowBoundary- AutoColor- Shade(faceted)- Image. I think you will see your problems disappear. The smooth shading you see is going to try and phong shade each

Re: [opendx-users] shading problem with cubes

2005-05-05 Thread David Thompson
Looking at this further, it appears that cubes may have a smooth shading problem due to the way the normals are calculated. If you AutoGlyph the normals of a smooth shaded object, I'm not sure they are right; however, this is a moot point since what you want is faceted shading on these cubes