Skip to content

I tried to render 3D polyhedron using --renderer=opengl --write_to_movie to speed up, the following bug appears.  #3247

Open
@HanwenJin16

Description

@HanwenJin16

Here is the code I used

from manim import *
import pywavefront
class MyObj(ThreeDScene):
    def construct(self):
        self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES)
        my_obj=pywavefront.Wavefront("myobj.obj",collect_faces=True)
        faces=my_obj.mesh_list[0].faces
        vertices=my_obj.vertices
        my_obj_mobj= Polyhedron(vertices, faces)
        for i in range(len(vertices)):
            my_obj_mobj.graph[i].scale(0)

        self.add(my_obj_mobj)
 

        self.begin_ambient_camera_rotation(rate=1)
        self.wait(6)

The bug says
AttributeError: 'Dot3D' object has no attribute 'has_fill'
myobj.txt

I have also incuded a text version of myobj.obj

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue:bugSomething isn't working... For use in issuesopenglConcerning the OpenGL renderer.

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions