Commit 0983e44
implement isconvex for Pyramid (#1266)
* implement specialized isconvex for Pyramid
* use internal field access instead of accessor in Pyramid
* Export base in Polytope section for consistency
* document pyramid base order and convexity requirement
* add test for pyramid base
* Incorporate Joshua's suggestions
* fix typo and use base function for pyramid
* Apply suggestion from @juliohm
* Add apex for Pyramid
* Update src/geometries/polytopes/pyramid.jl
Co-authored-by: Joshua Lampert <[email protected]>
* Apply suggestion from @juliohm
* Apply suggestion from @juliohm
* format test/predicates.jl
---------
Co-authored-by: Júlio Hoffimann <[email protected]>
Co-authored-by: Joshua Lampert <[email protected]>1 parent 7c2fbc3 commit 0983e44
File tree
5 files changed
+23
-4
lines changed- src
- geometries/polytopes
- predicates
- test
5 files changed
+23
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
19 | | - | |
| 28 | + | |
20 | 29 | | |
21 | | - | |
| 30 | + | |
22 | 31 | | |
23 | | - | |
24 | | - | |
| 32 | + | |
| 33 | + | |
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| 957 | + | |
| 958 | + | |
957 | 959 | | |
958 | 960 | | |
959 | 961 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
331 | 335 | | |
332 | 336 | | |
333 | 337 | | |
| |||
0 commit comments