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 Segment (geometry.addSegment)

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 straight segment; points given by coordinates are added or reused, and the same segment is reused. One undo step.

Parameters

  • from: int|[number] (a point index, or x, y in m)
  • to: int|[number]
  • snap: number? (grid, m)

Reply

  • edge (its index)
  • from
  • to (point indices)
  • ...summary