Skip to content

Commit 451fcc5

Browse files
committed
feat: minor changes
1 parent c7970d7 commit 451fcc5

File tree

9 files changed

+10747
-30
lines changed

9 files changed

+10747
-30
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"cinttypes": "cpp",
6363
"typeinfo": "cpp",
6464
"valarray": "cpp",
65-
"variant": "cpp"
65+
"variant": "cpp",
66+
"bitset": "cpp"
6667
}
6768
}

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,47 @@ This is an example implementation of the *closest point on mesh* algorithm. Give
22

33
# Demo
44

5+
# Performance
6+
7+
Here are some performance results of my implementation. Tests were made with an AMD Ryzen 5 3600 3.59Ghz. The implemntation only use one core.
8+
In the following tests, all vertices were normalized in the range [-1, 1].
9+
10+
The obj files I have used are available in [common-3d-test-models](https://github.com/alecjacobson/common-3d-test-models).
11+
12+
teapot.obj
13+
Vertex count : ~19k
14+
Triangle count : ~6k
15+
Average process time (any radius) : <1ms
16+
Precompute time : 1ms
17+
18+
stanford-bunny.obj
19+
Vertex count : ~209k
20+
Triangle count : ~70k
21+
Average process time (any radius) : ~2ms
22+
Precompute time : 23ms
23+
24+
fandisk.obj
25+
Vertex count : ~39k
26+
Triangle count : ~13k
27+
Average process time (any radius) : ~2ms
28+
Precompute time : 2ms
29+
30+
armadillo.obj
31+
Vertex count : ~300k
32+
Triangle count : ~100k
33+
Average process time (any radius) : ~5ms
34+
Precompute time : 36ms
35+
36+
xyzrgb_dragon.obj
37+
Vertex count : ~750k
38+
Triangle count : ~250k
39+
Average process time (any radius) : ~5ms
40+
Precompute time : 77ms
41+
42+
# Limitations
43+
44+
- A point far away makes performance works. A simple check distance to bbox will fix this
45+
546
# Build
647

748
This program works only on Linux and require the following dependencies:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Blender MTL File: 'None'
2+
# Material Count: 1
3+
4+
newmtl None
5+
Ns 500
6+
Ka 0.8 0.8 0.8
7+
Kd 0.8 0.8 0.8
8+
Ks 0.8 0.8 0.8
9+
d 1
10+
illum 2

0 commit comments

Comments
 (0)