cadloop Slicer

v0.1.0
io.github.richardofortune/cadloop-slicer Checked 1 day ago Published 4 months ago

Find printer profiles, check bed fit, slice to .gcode.3mf and extract the G-code.

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

openscad_info

Report the OpenSCAD binary, its version, and the workspace directory.

list_files

List files in the workspace matching a glob pattern.

ParameterTypeDescription
patternstring

read_file

Read a text file from the workspace.

ParameterTypeDescription
path *string

write_file

Write a text file into the workspace, creating parent directories.

ParameterTypeDescription
content *string
path *string

check

Compile a script without evaluating geometry. Fast syntax and reference check. Returns errors, warnings and any ECHO output.

ParameterTypeDescription
defines
file
hard_warningsboolean
source

echo

Evaluate a script and return only its ECHO output. Use this to read computed values out of a model without paying for a mesh render.

ParameterTypeDescription
defines
file
source

render

Render a script to a mesh or 2D file in the workspace. The format is taken from the output extension: stl, off, amf, 3mf, dxf, svg, csg. Returns the manifold report OpenSCAD prints (simple, volumes, facets), plus bounding box and volume when the output is an STL.

ParameterTypeDescription
output *string
defines
file
measureboolean
source
timeout_s

measure

Render to a throwaway STL and report bounding box, size, volume and triangle count. Use it to check a part fits the print bed.

ParameterTypeDescription
defines
file
source
timeout_s

preview

Render a PNG of the model and return it as an image. camera is OpenSCAD's own string. Seven numbers are gimbal style, translate x,y,z then rotate x,y,z then distance, for example "0,0,0,55,0,25,400". Six numbers are eye x,y,z then centre x,y,z. Leave it unset and viewall frames the object automatically. projection is "o" for orthogonal or "p" for perspective. Set full_render to evaluate the real geometry rather than the preview approximation. It is slower but shows what will export.

ParameterTypeDescription
camera
colorschemestring
defines
file
full_renderboolean
imgsizestring
projectionstring
source
timeout_s
viewallboolean