From f5c4eff1d1d77b0d7a805e873ff24753e7fc84f2 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 1 May 2021 21:43:50 +0200 Subject: Remove title from GeometriSymmetries scene and add circle group --- vorlesungen/punktgruppen/crystals.py | 44 +++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 8 deletions(-) (limited to 'vorlesungen/punktgruppen') 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): -- cgit v1.2.1