Hi,

  I have a volume (a 3D array) and an icosahedron defined by its vertex
plus the conexion between them (the icosahedron description is included at
the end of the mail). The question is: Is there any easy way to mask the
volumen so only the points inside the 3D space enclosed by the icosahedron
are used by the next module?

    Thanks for the help

                 Roberto



============================================================================
# ICOSAHEDRON : centered at the orgin and scaled to fit inside a unit
sphere

object "icosa1" class array type float rank 1 shape 3 items 12
data follows

0.250254 -0.916162 -0.313083
0.320072 -0.078054 -0.944171
0.437594 -0.598061  0.671442
0.550563  0.758025 -0.349682
0.623196  0.436642  0.648821
0.975676 -0.177816 -0.128204
-0.250253  0.916161  0.313082
-0.320073  0.078054  0.944172
-0.437593  0.598061 -0.671442
-0.550563 -0.758024  0.349683
-0.623195 -0.436643 -0.648822
-0.975676  0.177817  0.128204

object "icosa2" class array type int rank 1 shape 3 items 20
attribute "ref" string "positions"
attribute "element type" string "triangles"
data follows

3 4 5
4 7 2
3 5 1
5 2 0
3 1 8
1 0 10
3 8 6
8 10 11
3 6 4
6 11 7
2 5 4
9 2 7
0 1 5
9 0 2
10 8 1
9 10 0
11 6 8
9 11 10
7 4 6
9 7 11



object "icosa3" class array type float rank 0 items 12
attribute "dep" string "positions"
data follows
1 1 1 1 1 1 1 1 1 1 1 1

object "icosa" field
    component "positions"     "icosa1"
    component "connections"   "icosa2"
    component "data"          "icosa3"

end


Reply via email to