Skip to content

Commit

Permalink
Move DEFAULT_COLOR to vis (#1548)
Browse files Browse the repository at this point in the history
* Add DEFAULT_COLOR to vis

* Import default_color
  • Loading branch information
adam-urbanczyk committed Mar 24, 2024
1 parent 76fbff7 commit e9423d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cadquery/occ_impl/jupyter_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down
3 changes: 2 additions & 1 deletion cadquery/vis.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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:

Expand Down

0 comments on commit e9423d6

Please sign in to comment.