MCPcopy
hub / github.com/ManimCommunity/manim / construct

Method construct

example_scenes/opengl.py:90–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88
89class GuiTest(Scene):
90 def construct(self):
91 mesh = get_plane_mesh(self.renderer.context)
92 # mesh.attributes["in_vert"][:, 0]
93 self.add(mesh)
94
95 def update_mesh(mesh, dt):
96 mesh.model_matrix = np.matmul(
97 opengl.rotation_matrix(z=dt),
98 mesh.model_matrix,
99 )
100
101 mesh.add_updater(update_mesh)
102
103 self.interactive_embed()
104
105
106class GuiTest2(Scene):

Callers

nothing calls this directly

Calls 4

get_plane_meshFunction · 0.85
interactive_embedMethod · 0.80
addMethod · 0.45
add_updaterMethod · 0.45

Tested by

no test coverage detected