diff --git a/cadquery/occ_impl/jupyter_tools.py b/cadquery/occ_impl/jupyter_tools.py index a7c1b415f..ac6b188d7 100644 --- a/cadquery/occ_impl/jupyter_tools.py +++ b/cadquery/occ_impl/jupyter_tools.py @@ -8,8 +8,7 @@ from .shapes import Shape from ..assembly import Assembly from .assembly import toJSON - -DEFAULT_COLOR = [1, 0.8, 0, 1] +from ..vis import DEFAULT_COLOR TEMPLATE_RENDER = """ diff --git a/cadquery/vis.py b/cadquery/vis.py index 7d80ac31e..5e5019f86 100644 --- a/cadquery/vis.py +++ b/cadquery/vis.py @@ -1,6 +1,5 @@ from . import Shape, Workplane, Assembly, Sketch, Compound, Color from .occ_impl.exporters.assembly import _vtkRenderWindow -from .occ_impl.jupyter_tools import DEFAULT_COLOR from typing import Union @@ -11,6 +10,8 @@ from vtkmodules.vtkInteractionStyle import vtkInteractorStyleTrackballCamera from vtkmodules.vtkRenderingCore import vtkMapper, vtkRenderWindowInteractor +DEFAULT_COLOR = [1, 0.8, 0, 1] + def _to_assy(*objs: Union[Shape, Workplane, Assembly, Sketch]) -> Assembly: