diff options
author | Runterer <37069007+Runterer@users.noreply.github.com> | 2022-05-26 15:44:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 15:44:34 +0200 |
commit | 97f9df441a8cf9e86545a7db2e0c1e935937638f (patch) | |
tree | 43adb2438e1e316c34997b13bb2d0fa3044f8f1b /buch/papers/kugel/images/spherecurve.pov | |
parent | added tikz -> kudos nic (diff) | |
parent | Merge branch 'master' of github.com:AndreasFMueller/SeminarSpezielleFunktionen (diff) | |
download | SeminarSpezielleFunktionen-97f9df441a8cf9e86545a7db2e0c1e935937638f.tar.gz SeminarSpezielleFunktionen-97f9df441a8cf9e86545a7db2e0c1e935937638f.zip |
Merge branch 'AndreasFMueller:master' into master
Diffstat (limited to 'buch/papers/kugel/images/spherecurve.pov')
-rw-r--r-- | buch/papers/kugel/images/spherecurve.pov | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/buch/papers/kugel/images/spherecurve.pov b/buch/papers/kugel/images/spherecurve.pov new file mode 100644 index 0000000..b1bf4b8 --- /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.13; + +camera { + location <10, 10, -40> + look_at <0, 0, 0> + right 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 <from> to <to> with thickness <arrowthickness> with +// color <c> +// +#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" + |