voneiden / cq-cam

CQ-CAM aims to become a free, parametric CAM solution for 3-axis CNC mills closely integrating with CadQuery.
https://cq-cam.readthedocs.io/en/latest/
Apache License 2.0
24 stars 4 forks source link

visualize_job does not work unless you use cq_editor #23

Closed giannissc closed 1 year ago

giannissc commented 1 year ago

I have recently switched from cq_editor to ocp_cad_viewer extension for vs code. Running visualize_job does not work but visualize_job_as_edges does

voneiden commented 1 year ago

It may very well be that AIS based rendering requires changes to ocp_cad_viewer like it required for cq-editor ( https://github.com/CadQuery/CQ-editor/pull/317 ). For cq-editor these changes were pretty simple.

voneiden commented 1 year ago

We can also research on our end if the edge based visualization could be improved (support different colours and arrows)

voneiden commented 1 year ago

Preliminary testing shows that render performance is actually slightly better with 100k random lines using TopoDS_Edge rather than AIS_Line.

It is slightly slower to generate Edges though.

However there doesn't seem to be any easy way of configuring the color of an edge in OpenCASCADE

voneiden commented 1 year ago

Fixed by #31 - opened #36 for making the visualization more informative in ocp-vscode.