4 The Ruckus Tools
Ruckus is primarily driven from the command-line. Here are the command-line tools.
This page will summarize command options used with the tools, but for up-to-date and comprehensive information, run the tool with the --help switch, e.g.
ruckus-3d --help
4.1 Visualization
4.1.1 ruckus-3d
Displays a design using GPU-accelerated ray-tracing. Typical invocation:
ruckus-3d path/to/my/design.rkt
Drag the design to rotate it around the origin. The mouse wheel or scroll gesture zooms in and out.
Useful keystrokes include:
F5 recompiles and reloads the design, reporting any issues to the terminal.
Spacebar switches between raytraced view and two diagnostic views. The first shows raytracing complexity as a heat map; if a design is showing graphical glitches, this might be informative. The second is not currently very useful.
The square brackets [ and ] increase and decrease the epsilon value used to test ray intersection. If sharp corners appear rounded, try decreasing epsilon, though it might drop the frame rate if your design is complex (or your graphics card is from Intel).
4.1.2 ruckus-2d
Displays a 2D design, or the intersection of a 3D design with the XY plane. Typical invocation:
ruckus-2d path/to/my/design.rkt
The mouse wheel or scroll gesture zooms in and out.
Useful keystrokes include:
F5 recompiles and reloads the design, reporting any issues to the terminal.
The square brackets [ and ] increase and decrease the edge threshold, which is basically the outline width.
4.2 Export
4.2.1 ruckus-export-surface
Exports the surface of a design by triangulation (STL format). Typical invocation:
ruckus-export-surface path/to/my/design.rkt path/to/output.stl
Ruckus’s variant of the Marching Cubes / Tetrahedra algorithms mean that this tool takes time proportional to the number of triangles emitted. Reducing the triangulation quantum (below) by half increases processing time by around 4x.
STL files can be interpreted in a variety of real-world units (such as millimeters), depending on the tools used and their configuration. Ruckus has no particular opinion on this; exported STL files are in your design units, whatever those may be. For dimensional accuracy you will need to ensure that the tools consuming your STL files are configured to match your design.
Command line options (check --help for complete list):
--dimension <s> or -d <s> sets the size of the initial region of interest (ROI), in design units. The ROI is a cube centered on the origin. The surface exporter is not guaranteed to find surfaces outside the ROI, so set this large enough to cover your whole design. (On the other hand, it may find surfaces outside the ROI, so don’t use this to clip your design.)
It’s safe to set the ROI pretty large; it costs very little.
--quantum <s> or -q <s> controls the triangulation quantum. The ROI will be chopped up into cubes of this size, which will then be triangulated separately. As a result, this also controls the maximum size of any aliasing artifacts in the output.
--tets switches from the default Marching Cubes algorithm to Marching Tetrahedra. The output from Marching Tetrahedra tends to have subjectively worse aliasing artifacts, but it’s here in case you need it.
4.2.2 ruckus-export-outline
Exports the outline of a 2D design, or of the intersection of a 3D design with the XY plane, in SVG format. Typical invocation:
ruckus-export-outline path/to/my/design.rkt path/to/output.svg
The output is intended for tool path planning, such as laser cutting, and so cosmetic attributes like color and fill are not included.
Ruckus’s variant of the Marching Squares algorithm mean that this tool takes time proportional to the number of outline segments emitted. Reducing the segment quantum (below) by half increases processing time by around 2x.
SVG files can measure their contents in real-world units. By default, SVG files emitted by ruckus-export-outline assume that one design unit is one millimeter. To override this, use one of the command line options listed below.
Command line options (check --help for complete list):
--dimension <s> or -d <s> sets the size of the initial region of interest (ROI), in design units. The ROI is a square centered on the origin. The outline exporter is not guaranteed to find outlines outside the ROI, so set this large enough to cover your whole design. (On the other hand, it may find outlines outside the ROI, so don’t use this to clip your design.)
It’s safe to set the ROI pretty large; it costs very little.
--quantum <s> or -q <s> controls the segment quantum. The ROI will be chopped up into squares of this size, which will then be separately stuffed with line segments. As a result, this also controls the maximum size of any aliasing artifacts in the output.
--mm, --cm, --inch, --pt, and --px set the size of a design unit in the real world —
to one millimeter, centimeter, inch, typographical point, or pixel, respectively. SVG uses pixels as its default units, so most tools will interpret files specified in pixels as not having specific units attached.