Skip to content

Commit 721548f

Browse files
committed
update and add bunny data
1 parent 175fa91 commit 721548f

File tree

5 files changed

+250
-163
lines changed

5 files changed

+250
-163
lines changed

Makefile

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
all: vptree
1+
all: poster vptree compare
22

33
vptree: main.cpp
4-
g++ -o vptree main.cpp -O3 -std=c++17 -ICavalierContours/include/
4+
clang++ -o vptree main.cpp -O3 -std=c++17 -ICavalierContours/include/ -Wall
5+
6+
poster: poster.cpp
7+
clang++ -o poster poster.cpp -O3 -std=c++17 -ICavalierContours/include/ -Wall
8+
9+
compare: compare.cpp
10+
clang++ -o compare compare.cpp -O3 -std=c++17 -ICavalierContours/include/ -Wall
511

612
clean:
7-
rm -f vptree
13+
rm -f vptree compare poster

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
# vptree-draw
2+
3+
`geo.h` minimalist 2D geometry structures (Point, Vector, Box, Sphere)
4+
5+
`bvhsphere.h` minimalist bounding sphere hierarchy
6+
`bvhbox.h` minimalist bounding box hierarchy
7+
`kdtree.h` minimalist kd tree
8+
`quadtree.h` minimalist quadtree
9+
`vptree.h` minimalist vantage points tree
10+
11+
`draw.h` tree to SVG draw functions
12+
13+
`simple_svg_extend.h` extends simple-svg to support arcs and cavc::PolyLine
14+
15+
Dependencies
16+
- Simple SVG drawing library [link](https://github.com/adishavit/simple-svg)
17+
- Cavaliers contours [link](https://github.com/jbuckmccready/CavalierContours)

bunny.dat

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
0.460879 0.037578
2+
0.431985 0.042029
3+
0.405039 0.053320
4+
0.376456 0.057588
5+
0.347321 0.054731
6+
0.318342 0.050603
7+
0.289093 0.049279
8+
0.260056 0.052070
9+
0.234478 0.065554
10+
0.229621 0.092696
11+
0.227546 0.117366
12+
0.215714 0.140976
13+
0.229894 0.166496
14+
0.251557 0.185537
15+
0.278445 0.197123
16+
0.295392 0.218841
17+
0.275616 0.232757
18+
0.247429 0.240746
19+
0.220221 0.251525
20+
0.196716 0.268694
21+
0.174426 0.287643
22+
0.154906 0.309466
23+
0.135909 0.331783
24+
0.122099 0.357344
25+
0.109692 0.383758
26+
0.099230 0.410915
27+
0.098890 0.440152
28+
0.101893 0.469258
29+
0.112451 0.496489
30+
0.088925 0.508733
31+
0.065414 0.525498
32+
0.050184 0.550234
33+
0.048280 0.579232
34+
0.055396 0.607588
35+
0.062918 0.635889
36+
0.067712 0.664777
37+
0.072422 0.693714
38+
0.070048 0.722752
39+
0.078951 0.750392
40+
0.100948 0.769151
41+
0.128389 0.779351
42+
0.156825 0.786359
43+
0.183784 0.793767
44+
0.186717 0.822929
45+
0.189652 0.852082
46+
0.196452 0.880503
47+
0.209981 0.906046
48+
0.235814 0.919599
49+
0.264791 0.917851
50+
0.287318 0.899948
51+
0.294828 0.871962
52+
0.291822 0.842927
53+
0.281470 0.815575
54+
0.294239 0.816957
55+
0.316199 0.836357
56+
0.337922 0.856020
57+
0.360594 0.874554
58+
0.384358 0.891673
59+
0.409092 0.907402
60+
0.433775 0.922990
61+
0.458010 0.939472
62+
0.482876 0.954969
63+
0.510090 0.963154
64+
0.532881 0.945084
65+
0.546968 0.919699
66+
0.553205 0.891225
67+
0.552352 0.861987
68+
0.539264 0.836338
69+
0.517035 0.817356
70+
0.491110 0.803794
71+
0.464395 0.791744
72+
0.437456 0.780317
73+
0.411641 0.766537
74+
0.385760 0.752800
75+
0.360677 0.737769
76+
0.336216 0.721759
77+
0.331273 0.694543
78+
0.341028 0.667002
79+
0.359038 0.644073
80+
0.386504 0.635123
81+
0.414680 0.627276
82+
0.442726 0.619111
83+
0.471751 0.621830
84+
0.500146 0.628962
85+
0.528503 0.636362
86+
0.556990 0.643217
87+
0.585810 0.648321
88+
0.615031 0.650351
89+
0.644320 0.650478
90+
0.673436 0.648093
91+
0.700926 0.638034
92+
0.727205 0.625085
93+
0.752366 0.610098
94+
0.775314 0.591939
95+
0.796348 0.571550
96+
0.814987 0.548968
97+
0.831425 0.524751
98+
0.845539 0.499077
99+
0.857108 0.472223
100+
0.865840 0.444273
101+
0.870999 0.415432
102+
0.874687 0.386379
103+
0.877245 0.357187
104+
0.878133 0.328292
105+
0.907419 0.328619
106+
0.934226 0.318530
107+
0.951221 0.295306
108+
0.954517 0.266367
109+
0.951379 0.237242
110+
0.942767 0.209359
111+
0.925791 0.185632
112+
0.904215 0.165891
113+
0.879966 0.149504
114+
0.854159 0.135691
115+
0.827086 0.124513
116+
0.799277 0.115408
117+
0.771238 0.107008
118+
0.750292 0.086712
119+
0.727405 0.068785
120+
0.699412 0.060448
121+
0.670493 0.055826
122+
0.641352 0.052640
123+
0.612211 0.049898
124+
0.583033 0.046963
125+
0.553902 0.043855
126+
0.524792 0.040686
127+
0.495646 0.037662
128+
0.466398 0.037246

0 commit comments

Comments
 (0)