Skip to content

Commit

Permalink
add boundary box inset
Browse files Browse the repository at this point in the history
  • Loading branch information
ansonl committed Aug 16, 2024
1 parent 4c29f38 commit 8b4c15c
Show file tree
Hide file tree
Showing 35 changed files with 33,489 additions and 110,517 deletions.
30 changes: 23 additions & 7 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
CONFIG_APP_NAME = 'CONFIG_APP_NAME'
CONFIG_APP_VERSION = 'CONFIG_APP_VERSION'

# Universal MFM Gcode Tags
UNIVERSAL_TOOLCHANGE_START = '^; MFM TOOLCHANGE START'
UNIVERSAL_TOOLCHANGE_END = '^; MFM TOOLCHANGE END'
UNIVERSAL_LAYER_CHANGE_END = '^; MFM LAYER CHANGE END'


# Gcode Regex and Constants

Expand All @@ -36,6 +33,8 @@
TRAVEL = 'travel'
INFILL = 'fill'
UNKNOWN = 'unknown'
OUTER_PERIMETER = 'outer perimeter'
INNER_PERIMETER = 'inner perimeter'

FEATURE_TYPE_WRITE_OUT = '; feature '
PULSE_OFF='PRIO_OFF'
Expand All @@ -45,10 +44,27 @@

LAYERS_COMPLETED_WRITE_OUT = 'LayersCompleted=' #number of layers completed starting from 1

#PRINT SETTINGS
# User config settings

# Input/Output files
MPF_INPUT_FILE = 'test-square-25x25x10.mpf'
MPF_OUTPUT_FILE = 'test-square-output.mpf'
GCODE_OUTPUT_FILE = 'test-square-output.gcode'

# G-code options
ADD_ELEMX_PREVIEW_MOVE = True
OUTPUT_RENAME_OUTER_PERIMETER = INNER_PERIMETER #None or new feature type string
DWELL_BEFORE_EXTRUDE = True
DWELL_AFTER_EXTRUDE = False

# PRINT SETTINGS
LAYER_HEIGHT = 0.24 #mm

#DROPLET
# DROPLET
DROPLET_WIDTH = 0.510 #mm
DROPLET_OVERLAP_PERC = 0.5 #%
DROPLET_DWELL = 0.2 #s
DROPLET_DWELL = 0.2 #s
DROPLET_EXTRUSION_MULTIPLIER = 1 # multiply by this value

# INFILL
BOUNDARY_BOX_INSET = DROPLET_WIDTH*5 #mm
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 8b4c15c

Please sign in to comment.