source:
trunk/src/mesh/test_node3d.cc
@
709
Last change on this file since 709 was 208, checked in by cxsong, 18 years ago | |
---|---|
File size: 313 bytes |
Line | |
---|---|
1 | #include "node3d.h" |
2 | #include <vector> |
3 | |
4 | int main() |
5 | { |
6 | vector<RpNode3d> list(10); |
7 | int i; |
8 | int tmp[3]; |
9 | |
10 | for (i=0; i<10; i++) { |
11 | tmp[0] = i; |
12 | tmp[1] = i+1; |
13 | tmp[2] = i+2; |
14 | list[i].set(tmp); |
15 | list[i].id(i); |
16 | } |
17 | printf("list size: %d\n", list.size()); |
18 | for (i=0; i<10; i++) { |
19 | list[i].print(); |
20 | } |
21 | |
22 | return 0; |
23 | } |
Note: See TracBrowser
for help on using the repository browser.