From e8bb3fd399f2261c9b430ffa319626950499d4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 23 May 2022 23:06:11 +0200 Subject: new spherical graph --- buch/papers/kugel/images/spherecurve.pov | 73 ++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 buch/papers/kugel/images/spherecurve.pov (limited to 'buch/papers/kugel/images/spherecurve.pov') diff --git a/buch/papers/kugel/images/spherecurve.pov b/buch/papers/kugel/images/spherecurve.pov new file mode 100644 index 0000000..86c3745 --- /dev/null +++ b/buch/papers/kugel/images/spherecurve.pov @@ -0,0 +1,73 @@ +// +// curvature.pov +// +// (c) 2022 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule +// + +#version 3.7; +#include "colors.inc" + +global_settings { + assumed_gamma 1 +} + +#declare imagescale = 0.14; + +camera { + location <10, 10, -40> + look_at <0, 0, 0> + right 16/9 * x * imagescale + up y * imagescale +} + +light_source { + <-10, 10, -40> color White + area_light <1,0,0> <0,0,1>, 10, 10 + adaptive 1 + jitter +} + +sky_sphere { + pigment { + color rgb<1,1,1> + } +} + +// +// draw an arrow from to with thickness with +// color +// +#macro arrow(from, to, arrowthickness, c) +#declare arrowdirection = vnormalize(to - from); +#declare arrowlength = vlength(to - from); +union { + sphere { + from, 1.1 * arrowthickness + } + cylinder { + from, + from + (arrowlength - 5 * arrowthickness) * arrowdirection, + arrowthickness + } + cone { + from + (arrowlength - 5 * arrowthickness) * arrowdirection, + 2 * arrowthickness, + to, + 0 + } + pigment { + color c + } + finish { + specular 0.9 + metallic + } +} +#end + +arrow(<-2.7,0,0>, <2.7,0,0>, 0.03, White) +arrow(<0,-2.7,0>, <0,2.7,0>, 0.03, White) +arrow(<0,0,-2.7>, <0,0,2.7>, 0.03, White) + +#include "spherecurve.inc" + -- cgit v1.2.1 From 6ee6a7b0cf91469c7a79827293b8e3b880a6a0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 24 May 2022 11:45:50 +0200 Subject: add C++ program to compute the surface --- buch/papers/kugel/images/spherecurve.pov | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buch/papers/kugel/images/spherecurve.pov') diff --git a/buch/papers/kugel/images/spherecurve.pov b/buch/papers/kugel/images/spherecurve.pov index 86c3745..b1bf4b8 100644 --- a/buch/papers/kugel/images/spherecurve.pov +++ b/buch/papers/kugel/images/spherecurve.pov @@ -11,12 +11,12 @@ global_settings { assumed_gamma 1 } -#declare imagescale = 0.14; +#declare imagescale = 0.13; camera { location <10, 10, -40> look_at <0, 0, 0> - right 16/9 * x * imagescale + right x * imagescale up y * imagescale } -- cgit v1.2.1