mirror of
https://github.com/TengerTechnologies/Bricklayers.git
synced 2025-02-07 13:24:45 +00:00
Update bricklayersNonPlanarInfill.py
This commit is contained in:
parent
3b4d2013d0
commit
27cd61b19b
@ -314,7 +314,7 @@ def process_wall_shifting(lines, layer_height, extrusion_multiplier, enable_wall
|
|||||||
def get_layer_height(gcode_lines):
|
def get_layer_height(gcode_lines):
|
||||||
"""Extract layer height from G-code header comments"""
|
"""Extract layer height from G-code header comments"""
|
||||||
for line in gcode_lines:
|
for line in gcode_lines:
|
||||||
if "layer_height =" in line.lower():
|
if "; layer_height =" in line.lower():
|
||||||
match = re.search(r'layer_height = (\d*\.?\d+)', line, re.IGNORECASE)
|
match = re.search(r'layer_height = (\d*\.?\d+)', line, re.IGNORECASE)
|
||||||
if match:
|
if match:
|
||||||
return float(match.group(1))
|
return float(match.group(1))
|
||||||
@ -386,4 +386,4 @@ if __name__ == "__main__":
|
|||||||
enable_wall_reorder=bool(args.wallReorder),
|
enable_wall_reorder=bool(args.wallReorder),
|
||||||
amplitude=args.amplitude,
|
amplitude=args.amplitude,
|
||||||
frequency=args.frequency,
|
frequency=args.frequency,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user