fdmguard

v0.4.1
io.github.SamKo88927/fdmguard Checked 2 days ago Published 5 days ago

Function-first checks for 3D-printed parts: insertion path, thin necks, holes, bed stability.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_insertion

Sweep the moving part (given in its SEATED pose) along its insertion path into the fixed part(s). The path is straight (direction, travel) or a list of translate / rotate legs (bayonets, hinges, slide-then-drop). Reports the overlap at every step and the seated-pose-only result next to the path result. seated_only_pass true with pass false means the part is clear when seated but cannot travel there.

ParameterTypeDescription
fixed *arrayAbsolute paths to closed mesh files.
moving *stringAbsolute path to a closed mesh file (STL, OBJ, 3MF or PLY).
allowarrayIntentional snap regions, each 'name:x0,y0,z0,x1,y1,z1' in fixed-part mm.
directionStraight path: motion direction during assembly (x, -x, y, -y, z, -z or 'dx,dy,dz'). Default -z.
grownumberFDM over-size (mm).
grow_modestring
max_snap_lengthnumberLongest overlap allowed inside a snap region.
pathMulti-leg path instead of direction/travel, in assembly order, ending at the seated pose. Legs: {'translate': {'direction': '-z', 'distance': 25}} or {'rotate': {'axis': 'z', 'point': [0, 0, 0], 'angl…
stepnumberStep along the path.
travelStraight path: length before the seated pose; must start outside. Default 20.

check_necks

Find thin necks: erode each body by radius; a body that splits (NECK) or vanishes (THIN) fails.

ParameterTypeDescription
meshes *arrayAbsolute paths to closed mesh files.
pitchnumberVoxel size.
radiusnumberErosion radius; catches joins thinner than about 2r.

check_strips

Find strips narrower than width on each printed layer (mesh in print orientation), plus the marginal band.

ParameterTypeDescription
meshes *arrayAbsolute paths to closed mesh files.
bandnumberMarginal band above width.
layernumberLayer height.
upstringBuild direction in the mesh's axes: x, y, z, -x, -y or -z.
widthnumberMinimum strip width per printed layer.

check_holes

Recommend the printed hole size for a fit; with meshes, also flag round holes (axis along up) that are too small.

ParameterTypeDescription
pin *numberNominal pin or screw diameter, e.g. 1.75 filament or 3 for M3.
fit
meshesarrayOptional meshes to check round holes in.
min_depthnumberIgnore round holes shallower than this (mm).
upstringBuild direction in the mesh's axes: x, y, z, -x, -y or -z.

check_stability

Screen a print orientation for toppling: bed contact, height / contact width, centre of mass over the base.

ParameterTypeDescription
meshes *arrayMeshes in PRINT orientation.
max_slendernessnumberFail above height / contact width.
min_contactnumberMinimum first-layer bed contact (mm^2).
upstringBuild direction in the mesh's axes: x, y, z, -x, -y or -z.
warn_slendernessnumberWarn above height / contact width.

tradeoff

Compare print options: function gates first, then print metrics. Show the returned table to a person. The file must include the unchanged original (original: true). A gate that is missing or unknown is UNVERIFIED.

ParameterTypeDescription
options *stringAbsolute path to a YAML or JSON options file (see the guide).

guide

The full fdmguard agent guide: when to check, check order, tolerance defaults, anti-patterns and limits.