Commit d485293
authored
Geometry Basics refactor (#219)
* update MetaMesh
* add MultiFace type
* update Mesh & MultiFace types
* update Mesh & MetaMesh utils
* add MultiFace remapping code
* prototype MultiFace Rect -> Mesh pipeline
* generalize MultiFace getindex to Integer
* remove add_meta, pop_meta
* update merge for MultiFace and views
* add AbstractVertexFace and AbstractMultiFace
* split up mesh() for better usability
* minor fixes
* add views to Mesh constructors
* add `mesh()` method for converting facetype of mesh
* switch back to "normals"
* fix missing normals rename
* add back point/normal/uv-type kwargs
* consider face views in face decompose
* add mesh(mesh; attribs...) & improve dispatch safety
* fix normals(), cleanup tests
* add mesh constructor tests + fixes
* deprecate normals for normal as vertex attribute name
* make NormalFace and NormalUVFace types again
* cleanup tests & normals vs normal
* let ci run
* remove views aware face decomposition
* fix rect index order
* fix MultiFace remapping with OffsetIntegers
* add moreMultiFace utils
* restore decompose(FaceType, faces, views)
* allow MultiFace -> LineFace conversion
* define Rect3 faces counterclockwise
* add more convenience types
* filter nothing attributes
* drop Base.Pairs for 1.6 compat
* Add depwarn in hasproperty too
* improve MultiFace show
* update Pyramid
* update Cylinder
* add MultiFace decompose
* fix Cylinder tests
* make OffsetInteger printing copyable
* update tests for Rect3 and normal gen
* fix remaining tests
* fix incorrect vertex index counter
* simplify merge of mixed Face types
* test merge(meshes)
* prototype swapping from MultiFace to FaceViews
* treat views in vertex index remapping + some fixes
* fix face type change
* clean up AbstractVertexFace
* extend FaceView interface
* update Cylinder, Pyramids
* declutter NgonFace prints
* update tests
* cleanup some test_broken
* switch to Dict
* fix tests
* remove shorthands
* export vertex_attributes and FaceView
* add center point to Circle to avoid shallow triangles
* make untesselated rect vertices counter-clockwise
* fix tests
* fix Cylinder face windig direction
* add `face_normals()` helepr function
* cleanup face_normals and normals a bit more
* update tests for Cylinder
* rename connectivity -> faces
* update docs (meshes, primitives, decompose, Point, Vec, Mat)
* add/update docstrings
* add quick test for face_normals()
* fix TetrahedronFace conversions
* restore volume functions
* fix tests
* add some Polygon tests
* test Pyramids
* test TetrahedronFace decomposition
* test and improve Mesh validation
* test Mesh inteface functions
* test decompose with views
* test and fix matrix det, inv, transpose, mat*vec
* fix tests
* cleanup normal gen and export face_normals
* add util for splitting meshes by views
* fix missing dot in range .+ idx
* improve performance of merge
* fix tests
* improve GeoInterface conversion performance
* switch back to NamedTuple for performance
* cleanup merge(meshes)
* test clear_faceviews with mesh.views
* fix missing import in docs examples
* add convert for arrays of meshes
* add function for removing duplicate faces
* update normal gen tests + fixes
- fix normal gen for varying face types
- fix normalization of face_normals
* remove time piracy
* bring back shorthand types
* restrict type in meshes to error earlier
* update precompiles
* autoconvert point dim in merge(meshes) instead of restricitng type
* add compat entry
* ignore unused PrecompileTools in 1.6, 1.7
* bring back old precompiles
* add convert target to orthogonal_vector
* revert triangulation changes of Circle
* revert to using StaticArrays
* avoid some invalidations (and fix get)
* fix stale instances due to AbstractVector
Apparently T[] is an AbstractVector here?
* use string interpolation in error to avoid invalidation from string *
* fix test
* export clear_faceviews & update FaceView docstring
* update type docstring
* add notes about views
* update Mesh docs
* add FaceView ref to Mesh docstring
* add brief section about extending decompose
* derive Point eltype when dimension is given
* reuse docstring
* fix docs?
* fix docs??1 parent 94aefd5 commit d485293
File tree
31 files changed
+2273
-1343
lines changed- .github/workflows
- docs
- src
- src
- primitives
- test
31 files changed
+2273
-1343
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| 25 | + | |
23 | 26 | | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 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 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 25 | + | |
56 | 26 | | |
57 | 27 | | |
58 | 28 | | |
59 | 29 | | |
60 | 30 | | |
61 | 31 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 32 | + | |
69 | 33 | | |
70 | 34 | | |
71 | 35 | | |
72 | 36 | | |
73 | 37 | | |
74 | | - | |
| 38 | + | |
75 | 39 | | |
76 | 40 | | |
77 | 41 | | |
| |||
89 | 53 | | |
90 | 54 | | |
91 | 55 | | |
92 | | - | |
| 56 | + | |
93 | 57 | | |
94 | 58 | | |
95 | | - | |
| 59 | + | |
96 | 60 | | |
97 | 61 | | |
98 | 62 | | |
99 | 63 | | |
100 | 64 | | |
101 | | - | |
| 65 | + | |
102 | 66 | | |
103 | 67 | | |
104 | 68 | | |
105 | 69 | | |
106 | 70 | | |
107 | 71 | | |
108 | 72 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 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 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
7 | 58 | | |
8 | 59 | | |
9 | 60 | | |
10 | | - | |
| 61 | + | |
11 | 62 | | |
12 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
13 | 68 | | |
14 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
15 | 72 | | |
16 | | - | |
| 73 | + | |
| 74 | + | |
17 | 75 | | |
18 | | - | |
| 76 | + | |
19 | 77 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 78 | + | |
24 | 79 | | |
| 80 | + | |
0 commit comments