diff options
author | Nao Pross <np@0hm.ch> | 2021-05-01 21:43:50 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-05-01 21:43:50 +0200 |
commit | f5c4eff1d1d77b0d7a805e873ff24753e7fc84f2 (patch) | |
tree | 0e4d5b6bfe50109f74f19bb6456ab2461290adee | |
parent | Add slide for 4th roots of 1 (diff) | |
download | SeminarMatrizen-f5c4eff1d1d77b0d7a805e873ff24753e7fc84f2.tar.gz SeminarMatrizen-f5c4eff1d1d77b0d7a805e873ff24753e7fc84f2.zip |
Remove title from GeometriSymmetries scene and add circle group
Diffstat (limited to '')
-rw-r--r-- | vorlesungen/punktgruppen/crystals.py | 44 |
1 files changed, 36 insertions, 8 deletions
diff --git a/vorlesungen/punktgruppen/crystals.py b/vorlesungen/punktgruppen/crystals.py index 136481b..70e1f89 100644 --- a/vorlesungen/punktgruppen/crystals.py +++ b/vorlesungen/punktgruppen/crystals.py @@ -16,16 +16,10 @@ config.tex_template.add_to_preamble( class Geometric2DSymmetries(Scene): def construct(self): # title - title = Tex(r"Geometrische \\ Symmetrien") - title.scale(1.5) - self.play(Write(title)) - self.wait() - self.play(FadeOut(title)) - self.wait() - self.intro() self.cyclic() self.dihedral() + self.circle() def intro(self): # create square @@ -114,7 +108,7 @@ class Geometric2DSymmetries(Scene): r"r^3", r"r^4", r"\mathbb{1}"]) action = next(actions, MathTex(r"r")) - + self.play(Create(figure)) self.play(Write(action)) self.wait() @@ -238,6 +232,40 @@ class Geometric2DSymmetries(Scene): self.wait(5) self.play(FadeOut(dihedral), FadeOut(dihedral_title)) + def circle(self): + circle = Circle(radius=2) + dot = Dot() + dot.move_to(2 * RIGHT) + + figure = VGroup(circle, dot) + group_name = MathTex(r"S^1") + + # create circle + self.play(Create(circle)) + self.play(Create(dot)) + + # move it around + self.play(Rotate(figure, PI/3)) + self.play(Rotate(figure, PI/6)) + self.play(Rotate(figure, -PI/3)) + + # show name + self.play(Rotate(figure, PI/4), Write(group_name)) + self.play(Uncreate(figure)) + + nsphere = MathTex(r"S^1 = \left\{z \in \mathbb{C} : |z| = 1\right\}") + nsphere_title = Tex(r"Kreisgruppe") + nsphere_title.next_to(nsphere, 2 * UP) + + nsphere.scale(1.2) + nsphere_title.scale(1.2) + + self.play(ReplacementTransform(group_name, nsphere)) + self.play(FadeInFrom(nsphere_title, UP)) + + self.wait(5) + self.play(FadeOut(nsphere_title), FadeOut(nsphere)) + class Geometric3DSymmetries(ThreeDScene): def construct(self): |