Thu, 07 Nov 2024 12:02:24 -0500
tan-mod based exp attempt
src/cube.rs | file | annotate | diff | comparison | revisions | |
src/main.rs | file | annotate | diff | comparison | revisions | |
visualisation/cube.tex | file | annotate | diff | comparison | revisions |
--- a/src/cube.rs Wed Nov 06 22:27:35 2024 -0500 +++ b/src/cube.rs Thu Nov 07 12:02:24 2024 -0500 @@ -303,16 +303,18 @@ fn exp(self, tangent : &Self::Tangent) -> Self { let mut face = self.face; let mut point = self.point; - let mut dest = self.point + tangent; - loop { + let mut tan = *tangent; + let dest = loop { + let dest = point + tan; let (next_face, cross) = face.find_crossing(&point, &dest); if next_face == face { - break + break dest } + tan -= cross-point; point = next_face.convert_adjacent(face, &cross).unwrap(); - dest = next_face.convert_adjacent(face, &dest).unwrap(); + //dest = next_face.convert_adjacent(face, &dest).unwrap(); face = next_face; - } + }; OnCube { face, point : dest } }
--- a/src/main.rs Wed Nov 06 22:27:35 2024 -0500 +++ b/src/main.rs Thu Nov 07 12:02:24 2024 -0500 @@ -95,7 +95,7 @@ let f = Sum::new(points.into_iter().map(DistToSquaredDiv2)); //let g = ZeroFn::new(); - let g = Scaled::new(0.5, DistTo(origin)); + let g = Scaled::new(2.5, DistTo(origin)); let τ = 0.05; std::fs::create_dir_all(PREFIX)?;
--- a/visualisation/cube.tex Wed Nov 06 22:27:35 2024 -0500 +++ b/visualisation/cube.tex Thu Nov 07 12:02:24 2024 -0500 @@ -52,10 +52,10 @@ scale only axis, enlargelimits=false, colormap access=map, - colormap/Blues, + colormap/Paired, colorbar, point meta rel=axis wide, - shader = interp, + shader = flat mean, xlabel = {$x$}, ylabel = {$y$}, zlabel = {$z$},