Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cadquery/fig.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
vtkRenderWindow,
vtkRenderWindowInteractor,
vtkProp3D,
vtkMapper,
)


Expand Down Expand Up @@ -102,6 +103,11 @@ def __init__(self, port: int = 18081):
orient_widget.EnabledOn()
orient_widget.InteractiveOff()

# rendering related settings
vtkMapper.SetResolveCoincidentTopologyToPolygonOffset()
vtkMapper.SetResolveCoincidentTopologyPolygonOffsetParameters(1, 0)
vtkMapper.SetResolveCoincidentTopologyLineOffsetParameters(-1, 0)

self.axes = axes
self.orient_widget = orient_widget
self.win = win
Expand Down
73 changes: 73 additions & 0 deletions cadquery/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,83 @@
offset2D,
sweep,
loft,
hollow,
check,
closest,
setThreads,
project,
faceOn,
isSubshape,
prism,
hollow,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hollow, offset2D listed twice.

offset2D,
fillet2D,
chamfer2D,
draft,
)

__all__ = [
"Vector",
"Plane",
"Location",
"Shape",
"Vertex",
"Edge",
"Wire",
"Face",
"Shell",
"Solid",
"CompSolid",
"Compound",
"edgeOn",
"wireOn",
"wire",
"face",
"shell",
"solid",
"compound",
"vertex",
"segment",
"polyline",
"polygon",
"rect",
"spline",
"circle",
"ellipse",
"plane",
"box",
"cylinder",
"sphere",
"torus",
"cone",
"text",
"fuse",
"cut",
"intersect",
"imprint",
"split",
"fill",
"clean",
"cap",
"fillet",
"chamfer",
"extrude",
"revolve",
"offset",
"offset2D",
"sweep",
"loft",
"hollow",
"check",
"closest",
"setThreads",
"project",
"faceOn",
"isSubshape",
"prism",
"hollow",
"offset2D",
"chamfer2D",
"fillet2D",
"draft",
]
Loading