Skip to content

Commit e9423d6

Browse files
Move DEFAULT_COLOR to vis (#1548)
* Add DEFAULT_COLOR to vis * Import default_color
1 parent 76fbff7 commit e9423d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cadquery/occ_impl/jupyter_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
from .shapes import Shape
99
from ..assembly import Assembly
1010
from .assembly import toJSON
11-
12-
DEFAULT_COLOR = [1, 0.8, 0, 1]
11+
from ..vis import DEFAULT_COLOR
1312

1413
TEMPLATE_RENDER = """
1514

cadquery/vis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from . import Shape, Workplane, Assembly, Sketch, Compound, Color
22
from .occ_impl.exporters.assembly import _vtkRenderWindow
3-
from .occ_impl.jupyter_tools import DEFAULT_COLOR
43

54
from typing import Union
65

@@ -11,6 +10,8 @@
1110
from vtkmodules.vtkInteractionStyle import vtkInteractorStyleTrackballCamera
1211
from vtkmodules.vtkRenderingCore import vtkMapper, vtkRenderWindowInteractor
1312

13+
DEFAULT_COLOR = [1, 0.8, 0, 1]
14+
1415

1516
def _to_assy(*objs: Union[Shape, Workplane, Assembly, Sketch]) -> Assembly:
1617

0 commit comments

Comments
 (0)