Skip to content

Rotate does not modify own mesh object #2

@bmmtstb

Description

@bmmtstb

Describe the bug
While using m.Rotate(BasicMesh, ...) the overridden rotate function gets only called on a copy of the BasicMesh, therefore the mesh objects and the respective Vertex Coordinates do not get updated. The rotation is visible but does not change the mesh.

To Reproduce

manim_triangle_pyramid = ManimMesh(mesh=create_pyramid(triangles_only=True), display_vertices=True, name="Tri Mesh")
self.add(manim_triangle_pyramid)
self.play(m.Rotate(manim_triangle_pyramid, angle=m.PI, about_point=m.ORIGIN, run_time=2.0))
manim_triangle_pyramid.move_vertex_to(vertex_idx=0, scene=self, pos=np.array([2, 2, 1]))

Expected behavior
Vertices faces and edges should be connected and updated correctly

Desktop (please complete the following information):

  • OS: Windows and Linux
  • Version 0.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions