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

Field Drawing (geometry.get)

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

The whole drawing (m, degrees) and whether it is ready to mesh: valid with each region's label and area (m²), or the first problem, naming the point, edge, region or label. With fill, a valid drawing also gives each region as triangles (arcs in 5° pieces; not a mesh to solve on), and an unfinished one null. Read-only.

Parameters

  • fill: bool=false (also return a coarse triangulation of the regions, for a canvas to paint)
  • sketch: bool=false (also return the drawing as the `sketch` param magnetics.fieldSolve and the other field commands take: mm, arcs as [a, b, sweepRad])

Reply

  • symmetry
  • depth
  • points:[[x,y]]
  • edges:[{kind:"segment"|"arc", start, end, sweepDeg}]
  • labels:[{name, at:[x,y], material:"air"|"magnetic"|"coil", muR, circuit, turns, maxSize}]
  • dimensions:[{a, b, value}]
  • valid
  • problem {en, zh-Hant}
  • regions:[{label, name, area}]
  • fill?:{nodes:[[x,y]], triangles:[[a,b,c]], labels:[label index per triangle]}|null
  • sketch?:{depthMm | axisymmetric:true, points, edges, labels}
  • history