- made sure that the new feature of redrawing Gerber on top is not activated when that Gerber object is disabled

- added ability to turn off the outline plotting for Gerber objects (will speed up the plotting but the plotting visual quality will degrade); controlled from Preferences -> Gerber -> General
- plotting visuals in 3d graphic mode will no longer create some unnecessary lists
This commit is contained in:
Marius Stanciu
2022-02-11 10:42:03 +02:00
committed by Marius
parent 4b611f5ce3
commit 5421b65b9e
8 changed files with 45 additions and 13 deletions

View File

@@ -52,11 +52,11 @@ def _update_shape_buffers(data, triangulation='glu'):
if type(geo) == LineString:
# Prepare lines
pts = _linestring_to_segments(list(simplified_geo.coords))
pts = _linestring_to_segments(simplified_geo.coords)
elif type(geo) == LinearRing:
# Prepare lines
pts = _linearring_to_segments(list(simplified_geo.coords))
pts = _linearring_to_segments(simplified_geo.coords)
elif type(geo) == Polygon:
# Prepare polygon faces
@@ -69,9 +69,9 @@ def _update_shape_buffers(data, triangulation='glu'):
# Prepare polygon edges
if color is not None:
pts = _linearring_to_segments(list(simplified_geo.exterior.coords))
pts = _linearring_to_segments(simplified_geo.exterior.coords)
for ints in simplified_geo.interiors:
pts += _linearring_to_segments(list(ints.coords))
pts += _linearring_to_segments(ints.coords)
# Appending data for mesh
if len(tri_pts) > 0 and len(tri_tris) > 0: