mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Use is not operator rather than not ... is
This is advocated by both PEP8 and the Google Python Style Guide
This commit is contained in:
parent
ff07129f2c
commit
54b9ed97ae
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class ShapeArray:
|
||||||
if child_hull is not None:
|
if child_hull is not None:
|
||||||
hull_verts = hull_verts.unionConvexHulls(child_hull)
|
hull_verts = hull_verts.unionConvexHulls(child_hull)
|
||||||
child_hull_head = child.callDecoration("getConvexHullHead") or child_hull
|
child_hull_head = child.callDecoration("getConvexHullHead") or child_hull
|
||||||
if not child_hull_head is None:
|
if child_hull_head is not None:
|
||||||
hull_head_verts = hull_head_verts.unionConvexHulls(child_hull_head)
|
hull_head_verts = hull_head_verts.unionConvexHulls(child_hull_head)
|
||||||
|
|
||||||
offset_verts = hull_head_verts.getMinkowskiHull(Polygon.approximatedCircle(min_offset))
|
offset_verts = hull_head_verts.getMinkowskiHull(Polygon.approximatedCircle(min_offset))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue