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 anyway (normals are connection based not positions based).

David

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 an import.dx file. Try Import(file=import.dx)->ShowBoundary->AutoColor->Image. See bottom and front view....

In a mush more complex flow field I have to diel with, looks very agly...



 object "nodes" class array type float rank 1 shape 3 items 20 data follows
0 0 0
1 0 0
2 0 0
3 0 0
0 1 0
1 1 0
2 1 0
3 1 0
0 0 1
1 0 1
2 0 1
3 0 1
0 1 1
1 1 1
2 1 1
3 1 1
1 0 0.5
2 0 0.5
1 1 0.5
2 1 0.5

 object  "cubes" class array type int rank 1 shape 8 items  4 data follows
 0 1 4 5  8 9 12 13
 16 17 18 19 9 10 13 14
 1 2 5 6 16 17 18 19
 2 3 6 7 10 11 14 15
 attribute "element type" string "cubes"
 attribute "ref" string "positions"

 object "data" class array type float rank 0 items  4 data follows
 0
 1
 1
 2
 attribute "dep" string "connections"


 object "field" class field
 component "positions" value "nodes"
 component "connections" value "cubes"
 component "data" value "data"


--
.............................................................................
David L. Thompson                   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]    5515 Skyway Drive, Missoula, MT 59804
                                    Phone : (406)756-7472

Reply via email to