If you want a simple cube, you need six faces. Each will have one loop, and four edges. There are a lot of equivalent representations, but one would be (with the positions component you give):
Edges:
0 1 3 2
1 5 7 3
5 4 6 7
4 0 2 6
4 5 1 0
7 6 2 3
Loops:
0 4 8 12 16 20
Faces:
0 1 2 3 4 5
Greg
Jiang-Long Wang
<[EMAIL PROTECTED]> To: DX Users
<[email protected]>
Sent by: cc:
[EMAIL PROTECTED] Subject: [opendx-users] about
Face Loop Edge
son.ibm.com
06/03/2002 10:48 AM
Please respond to
opendx-users
Dear DX users,
I want to make simple cubic box using data explore 4.2,
but the following DX file does not work. What is wrong with my file?
I would greatly appreciate some help.
object 1 class array type float rank 1 shape 3 items 8 data follows
0.500000 0.500000 0.500000
0.500000 0.500000 -0.500000
0.500000 -0.500000 0.500000
0.500000 -0.500000 -0.500000
-0.500000 0.500000 0.500000
-0.500000 0.500000 -0.500000
-0.500000 -0.500000 0.500000
-0.500000 -0.500000 -0.500000
object 3 class array type int rank 0 items 56 data follows
0 1 3 2
4 5 7 6
0 1 5 4
0 1
4 5
2 3 7 6
2 3
6 7
0 2 6 4
0 2
4 6
0 4
0
4
2 6
2
6
1 3 7 5
1 3
5 7
1 5
1
5
3 7
3
7
attribute "ref" string "positions"
#
object 4 class array type int rank 0 items 26 data follows
0 4 8 12 14 16
20 22 24 28 30 32
34 35 36 38 39 40
44 46 48 50 51 52
54 55
attribute "ref" string "edges"
#
object 5 class array type int rank 0 items 26 data follows
0 1 2 3 4 5
6 7 8 9 10 11
12 13 14 15 16 17
18 19 20 21 22 23
24 25
attribute "ref" string "loops"
#
object "box" class field
component "positions" value 1
component "edges" value 3
component "loops" value 4
component "faces" value 5
#
end
--
Yours sincerely,
Jiang-long Wang
#### box.dx has been removed from this note on June 03 2002 by Gregory D
Abram
