Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Add Rectangle (geometry.addRectangle)

Component reference · 繁體中文

Menu: none (Quick Open, the CLI, Python and MCP) · Runs as: at once

Preview: turn on Preview features in Edit › Preferences › Simulation, or run preview.set {"enabled":true}. Its replies carry preview: true and a note.

What it does

Adds the axis-aligned rectangle as four segments, reusing points and segments it shares with the drawing. One undo step.

Parameters

  • min: [number] (one corner, x, y in m)
  • max: [number] (the opposite corner)
  • snap: number? (grid, m)

Reply

  • added:[int] (the edges: bottom, right, top, left)
  • ...summary