actually working apparently
This commit is contained in:
parent
5913cf16a6
commit
d56dc73286
3 changed files with 829 additions and 457 deletions
32
fractal_dimension/circle_counting_new/cube.txt
Normal file
32
fractal_dimension/circle_counting_new/cube.txt
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
{{{1., 0., 0., 0., 0., 0., 0., 0.}, {0., 1., 0., 0., 0., 0., 0.,
|
||||||
|
0.}, {1., 3., 0., -1., 2., 0., 0., 0.}, {2., 2., 0., -1., 2., 0.,
|
||||||
|
0., 0.}, {0., 0., 0., 0., 1., 0., 0., 0.}, {-1., 1., 0., 0., 1.,
|
||||||
|
0., 0., 0.}, {0., 3., 0., -1., 3., 0., 0., 0.}, {1., 2., 0., -1.,
|
||||||
|
3., 0., 0., 0.}}, {{1., 0., 0., 0., 0., 0., 0., 0.}, {1., 0.,
|
||||||
|
1., -1., 0., 0., 0., 0.}, {0., 0., 1., 0., 0., 0., 0., 0.}, {0.,
|
||||||
|
0., 0., 1., 0., 0., 0., 0.}, {4., 0., 2., 0., -1., 0., 0.,
|
||||||
|
0.}, {4., 0., 3., -1., -1., 0., 0., 0.}, {3., 0., 3., 0., -1., 0.,
|
||||||
|
0., 0.}, {3., 0., 2., 1., -1., 0., 0., 0.}}, {{1., 0., 0., 0., 0.,
|
||||||
|
0., 0., 0.}, {4., -1., 0., 0., 0., 0., 0., 2.}, {4., -1., 0.,
|
||||||
|
0., -1., 0., 0., 3.}, {1., 0., 0., 0., -1., 0., 0., 1.}, {0., 0.,
|
||||||
|
0., 0., 1., 0., 0., 0.}, {3., -1., 0., 0., 1., 0., 0.,
|
||||||
|
2.}, {3., -1., 0., 0., 0., 0., 0., 3.}, {0., 0., 0., 0., 0., 0.,
|
||||||
|
0., 1.}}, {{-1., 2., 2., 0., 0., 2., 0., 0.}, {0., 1., 0., 0., 0.,
|
||||||
|
0., 0., 0.}, {0., 0., 1., 0., 0., 0., 0., 0.}, {-1., 1., 3., 0.,
|
||||||
|
0., 2., 0., 0.}, {-1., 1., 2., 0., 0., 3., 0., 0.}, {0., 0., 0.,
|
||||||
|
0., 0., 1., 0., 0.}, {0., -1., 1., 0., 0., 1., 0., 0.}, {-1., 0.,
|
||||||
|
3., 0., 0., 3., 0., 0.}}, {{0., -1., 0., 4., 0., 0.,
|
||||||
|
3., -1.}, {0., -1., 0., 4., 0., 0., 4., -2.}, {0., 0., 0., 1., 0.,
|
||||||
|
0., 1., -1.}, {0., 0., 0., 1., 0., 0., 0., 0.}, {0., -1., 0., 3.,
|
||||||
|
0., 0., 3., 0.}, {0., -1., 0., 3., 0., 0., 4., -1.}, {0., 0., 0.,
|
||||||
|
0., 0., 0., 1., 0.}, {0., 0., 0., 0., 0., 0., 0., 1.}}, {{0., -1.,
|
||||||
|
0., 0., 0., 4., -1., 3.}, {0., -1., 0., 0., 0., 4., 0.,
|
||||||
|
2.}, {0., -1., 0., 0., 0., 3., 1., 2.}, {0., -1., 0., 0., 0., 3.,
|
||||||
|
0., 3.}, {0., 0., 0., 0., 0., 1., -1., 1.}, {0., 0., 0., 0., 0.,
|
||||||
|
1., 0., 0.}, {0., 0., 0., 0., 0., 0., 1., 0.}, {0., 0., 0., 0., 0.,
|
||||||
|
0., 0., 1.}}}
|
||||||
|
|
||||||
|
{-1, 4, 7, 2, 7, 12, 15, 10}
|
||||||
|
|
||||||
|
{{0, 1, 5, 4}, {0, 3, 2, 1}, {0, 4, 7, 3}, {1, 2, 6, 5}, {2, 3, 7,
|
||||||
|
6}, {4, 5, 6, 7}}
|
||||||
|
|
@ -29,8 +29,8 @@ pub fn fractal_dimension(
|
||||||
let mut add = false;
|
let mut add = false;
|
||||||
for (j, curvature) in new_tuple.iter().enumerate() {
|
for (j, curvature) in new_tuple.iter().enumerate() {
|
||||||
let mut skip = false;
|
let mut skip = false;
|
||||||
for face in &faces[i] {
|
for vertex in &faces[i] {
|
||||||
if j == *face {
|
if j == *vertex {
|
||||||
skip = true;
|
skip = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue