Skip to content

Using 3DViewer without starting a web server #882

Open
@imgeaslikok

Description

@imgeaslikok

I'm trying to render the 3D files to Django template but the render function which it's in the x3dom_renderer.py file creates a web server and the web server stopped my django web server. I have to return the HTML file's path that created by generate_html_file( ) function and include that file to my existing template. According to this, I have tried to override the x3dom_renderer.py file but in cloud, the pythonocc-core library is installed automatically with a config file. Then I have tried to add just the x3dom_renderer.py file to my root directory of my project but now, I'm getting AttributeError: 'ShapeTesselator' object has no attribute 'ExportShapeToX3DTriangleSet' error. Could you give any suggestions about this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions