bernhard-42 / vscode-ocp-cad-viewer

A viewer for OCP based Code-CAD (CadQuery, build123d) integrated into VS Code
Apache License 2.0
78 stars 9 forks source link

showing edges blanks viewer window #82

Open mngrm3a opened 2 months ago

mngrm3a commented 2 months ago

Vertices and faces work without any issues but edges will blank the viewer.

from build123d import *
from ocp_vscode import *

part = Box(10, 10, 10)

show_object(part)

# show_object(part.vertices() >> Axis.Z)  # works
# show_object(part.edges() >> Axis.Z)  # doesn't work
# show_object(part.faces() >> Axis.Z)  # works

I tested this with 2.2.2 and all 3 lines render as expected.

bernhard-42 commented 2 months ago

@mngrm3a I can only reproduce when measure_toolsare True Could it be that the issue only occurs when measure_tools=True? Similar as in https://github.com/bernhard-42/vscode-ocp-cad-viewer/issues/81

mngrm3a commented 2 months ago

Indeed, it works when the measure tools are disabled.

bernhard-42 commented 2 months ago

Thanks. Duplicate of https://github.com/bernhard-42/vscode-ocp-cad-viewer/issues/81