Skip to main content

User Interface

Once your editor is set up and your model is rendering, here's what you'll see in the FluidCAD viewport.

FluidCAD User Interface

#ElementDescription
1File nameThe name of the currently open .fluid.js file.
2History panelLists every feature (operation) in your model, in order.
3Feature statusA checkmark means the feature was served from cache. A refresh icon means it was re-computed.
4Feature nameClick a feature name to rollback the model to that point in the history. Double-click to insert a breakpoint() at that feature.
5Shapes panelLists all solid shapes produced by the model.
6Shape propertyGives information about the solid mesh, such as center of mass.
7Show/Hide gridToggles the background grid on or off.
8Perspective cameraSwitches to perspective projection (objects farther away appear smaller).
9Orthographic cameraSwitches to orthographic projection (no perspective distortion).
10Fit model into viewResets the camera to fit the entire model in the viewport.

Breakpoints

A breakpoint() statement pauses model evaluation at that line, rolling the viewport back to that point so you can tweak the feature above it (or anything before it) and see the result in isolation. Remove the statement to resume full evaluation.

You can add one in several ways:

  • From the viewport — double-click a feature name in the history panel to insert a breakpoint() right after that feature in the source file.
  • VS Code — click the gutter next to any line in a .fluid.js file (just like setting a debugger breakpoint) and a breakpoint() statement is inserted at that line. You can also run FluidCAD: Toggle Breakpoint from the Command Palette.
  • Neovim — run :FluidCadToggleBreakpoint to insert a breakpoint() at the current line.