I use DX to visualize triangles together with data on every triangle. I
use the 'Import' module to load in a file consisting of triangles.
Attached is an example. Used to have a sample network but can't find it
at the moment ;-(
Regards,
Mattijs
Koen Janssens wrote:
I need to visualize a triangulated surface curved in 3D. Any suggestions
on how to do this ? None of the samples seem to address this type of
problem.
Thanks - Koen
--
/*---------------------------------------------------------*\
| =========== Mattijs Janssens |
| \\ / Development Engineer |
| \\ / |
| \\ / Nabla Ltd. |
| \\ / The Mews, Picketts Lodge |
| \\/ Picketts Lane, Salfords, |
| F ield Surrey RH1 5RG. |
| O peration Tel: +44 (0)1293 821272 |
| A nd Email: [EMAIL PROTECTED] |
| M anipulation URL: http://www.Nabla.co.uk |
\*---------------------------------------------------------*/
# The irregular positions
object 1 class array type float rank 1 shape 3 items 11 data follows
-1.5 1.01 0
-1.5 1.01 1
-0.166667 1.01 0
-0.166667 1.01 1
1.16667 1.01 0
2.5 1.01 0
1.16667 1.01 1
2.5 1.01 1
-0.833333 1.01 0.5
0.500001 1.01 0.5
1.83333 1.01 0.5
# The irregular connections (triangles)
object 2 class array type int rank 1 shape 3 items 12 data follows
8 0 2
8 2 3
8 3 1
8 1 0
9 2 4
9 4 6
9 6 3
9 3 2
10 4 5
10 5 7
10 7 6
10 6 4
attribute "element type" string "triangles"
attribute "ref" string "positions"
object 3 class array type float rank 0 items 12 data follows
0
0
0
0
1
1
1
1
2
2
2
2
attribute "dep" string "connections"
# the field, with three components: "positions", "connections", and "data"
object "irregular positions irregular connections" class field
component "positions" value 1
component "connections" value 2
component "data" value 3
end