Skip to content

Convert solid infill to variable density for MPF/G-code

Notifications You must be signed in to change notification settings

ansonl/elemx-density

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Localized Gradient Density MPF/G-code Post Processor

This script will replace bounded infill areas in MPF/G-code files with single location extrusions approximating a lower density infill. This is made to process files in the MPF format generated by Additec ElemX Builder 3.4.4 (formerly owned by Xerox) to be printed on the ElemX Plus additive printer.

elemx builder preview

Run

Run mpf_post_process.py

Settings

The bounded area is specified similar to a modifier cube in 3D slicer software. Bounding box for modified infill volume is set in testBoundingBox in mpf_post_process.py.

The new infill is only placed where previous layers have modified infill so that the infill stacks on top of lower layers. A 50% overlap is currently hardcoded.

Most constants are defined in the constants.py file and classes defined for printing are in printing_classes.py.

The input and output files can be set at the bottom of mpf_post_process.py by modifying the line

process(inputFilepath='test-square.mpf', outputFilepath='test-square-output.mpf')

The user assumes all risk and liability when running code and output data in this repository.