-
Notifications
You must be signed in to change notification settings - Fork 0
/
Notes.txt
43 lines (35 loc) · 1.15 KB
/
Notes.txt
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Vertices:
* X, Y, Z
* Index
* Linked Vertices (by index)
Lines:
* Point 1, Point 2
* Index
* Linked Lines (by index)
Faces:
* Line N
* Index
* Normal Direction (is visible?)
* Linked Faces (by index)
* Bounding Box:
- Min X, Y, Z
- Max X, Y, Z
Calculate line-to-line angle for faces (to draw this line?)
* Compare with other parallel-ish lines for comparison
Find line length + end angles
* Can we slide the point without breaking the model?
* Can we remove the point altogether?
To draw as a single line:
* Use recursive backtracking-inspired algorithm for finding shortest path that hits all points
* Find a better, faster one later on
Find nearby end points for lines when drawing
* Minimize blanked travel
For doing edge detection:
* Detect if z index is lower than another connected face, and faces overlap
* Draw connected edge
Another methd:
* Calculate vertex normal
* Calculate connected vertex normals
* If normals are different enough, mark vertex as edge anchor point
* If 2 connected vertices are marked as such, mark edge as drawable
* Draw edges