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

Export 3D Field Model as STL (field.exportModelStl)

Component reference · 繁體中文

Menu: none (Quick Open, the CLI, Python and MCP) · Runs as: a job, with progress and Cancel

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

Writes the meshed 3D model of the design, sketch or import as STL, so its bodies can be checked in a CAD or mesh viewer or taken on into another tool. Each region's solid is the boundary of its tetrahedra: curved faces come out as the mesh's flat facets, and two regions that touch both have the faces between them, turned opposite ways. A ring design is revolved whole. Solves nothing and changes nothing; save the text with the extension .stl.

Parameters

  • design: object? or "sketch":object? or "import":object? (the model as magnetics.fieldSolve {dimension: 3} builds it, with "muR","clearanceMm","elementMm","layers","stepDeg","endTurns" and "cache" as there)
  • unit: "mm|m"="mm" (the file's unit; STL has none of its own)
  • whole: bool=true (reflect a part meshed for its symmetry (the wound E core's eighth, an extrusion's half or quarter) into the whole model; false writes the meshed part as the solve meshes it)
  • regions: [str]? (the regions to write, by name; default every region, the air box included)

Reply

  • stl (ASCII STL text, one solid per region named after it, each closed and facing outward)
  • unit
  • solids:[{region,facets,vertices,volumeM3}]
  • model:{construction,family,nodes,elements,symmetry,whole (the file is the whole model)}
  • notes:[{en,zh-Hant}]