🎨 style(visplot_render.py): add camera distance to improve 3D visualization

The camera distance is set to 10 to improve the 3D visualization of the object. This change is purely cosmetic and does not affect the functionality of the code.
This commit is contained in:
Djalim Simaila 2023-05-02 10:20:24 +02:00
parent 0ae697096c
commit ef1cf64759

View File

@ -29,6 +29,7 @@ def render3D(obj:ScannedObject,show:bool=True)->scene.SceneCanvas|None:
view = canvas.central_widget.add_view()
view.camera = 'arcball'
view.camera.depth_value = 1e3
view.camera.distance = 10
color = (0.3, 0.5, 0.8)
mesh = Mesh(vertices, faces, color=color)
view.add(mesh)