Menu

GCodePoreCorrelation

Lukas Englert

GCodePoreCorrelation


Description

This is the direct successor of the tool presented in the paper: https://doi.org/10.1108/RPJ-07-2019-0200 (, see also https://github.com/IAM-WK/GCodePores for reference).
Compared to the version in the paper no interpolation is needed anymore, because distance of a pore to the path is calculated through line segments via [GCodeLib]'s GetPointbyLocation(...) method, which increases performance drastically.
GCodePoreCorrelation can be used to analyse information obtained through image segmentation, labeling and analysing through MorphoLibJ (https://imagej.net/MorphoLibJ.html) with respect to toolpath data from additive manufacturing processes.
It is intended to be used to correlate pore locations and morphology to the toolpath but can also be used and adapted for example for fibre orientation analysis of additively manufactured parts.


Usage

Simply call the supplied executable with suitable options.
You obtain a .csv file that you can open and and analyse in various calculation programs (e.g. Excel or Origin).

Availabe options can be accessed by calling:

.\GCodePoreCorrelation.exe --help

which lists all options.

Download

Windows x64 executable

Options

You need to specify the filename of the GCode to be read and the type of machine the code belongs to (FFF, LPBF, AKF). The toolpath .vtk (obtained through GCode2vtk) needs to be registered (with -u and -a options) to the image that was used to generate the MorphoLibJ output. The parameters of -u and -a can be obtained through opening the .vtk and the .mhd both in paraview and translating and rotating the .vtk until it overlays the image.
Pay attention to rotating the image until each slice is oriented like the layers of the 3D printed part. Rotation through -a should only be used for rotations around the Z-axis!
When using this tool, only the .mhd part of the original image is needed to get correct image sizes and pixel spacing.

.\GCodePoreCorrelation.exe -i imagefile.mhd --lpbf -g GCode.xml -u "5.2 5.2 12.75" -a 1.57079 -o PorePathCorrelateOutput.csv -p morpholibjfile.csv

For problems that are related to GCode parsing or analysis, read the entry for [GCode2vtk] and try this simplified app first.

Example
.\GCode2vtk.exe -g GCode.gcode --fff -j 3 --vtkfilename "outputfile.vtk"

Cite

If you intend to use this work for your scientific publication please cite https://doi.org/10.1108/RPJ-07-2019-0200


Troubleshooting

tbd


Related

Wiki: GCode2vtk
Wiki: GCodeLib
Wiki: Home

MongoDB Logo MongoDB