<!-- TE10 Studio documentation: /docs/app/geometry -->
# Building geometry

Everything you draw is an **object**: a **solid** (a closed volume with a material), a **sheet** (a
zero-thickness surface, used for ports, thin metal and boundaries) or a **curve** (a path for sweeps and
traces). Objects are listed under **Geometry** in the project tree, each with the steps that built it.

![A selected trace: its steps in the tree and its settings in Properties](/docs/img/app/main-selected-trace.webp)

## Drawing objects

The **Create** group on the **Geometry** tab (and the **Geometry** menu) holds the drawing tools:

| Kind | Tools |
|---|---|
| Solids | Box, Cylinder, Sphere, Cone, Torus, Regular Polyhedron, Helix..., Bondwire |
| Sheets | Rectangle, Circle, Ellipse, Regular Polygon, Equation Based Surface..., Spiral... |
| Curves | Line, Polyline, Spline, Arc (3 Point), Arc (Center Point), Equation Based Curve..., Point |
| Sweep | Along Vector, Around Axis..., Along Path... (turn a sheet or curve into a solid or sheet) |
| Templates | WR-90 Waveguide..., Microstrip Line..., Coaxial Line... (ready-made, validated models with ports) |
| Parametric | Parametric shapes with their own settings |

A drawing tool asks for its points one at a time; the status bar says which one it wants (for a box: the
first corner of the base, the opposite corner, then the height). Click in the view, or type the
coordinates in the status bar's **X**, **Y**, **Z** boxes and press <kbd>Enter</kbd>. Points snap to
vertices, edge centres, arc centres, quadrants, face centres and the grid; choose which in
**Geometry › Grid and Snap Settings...** <kbd>Esc</kbd> cancels a tool, and <kbd>Space</kbd> repeats the
last one.

New objects are drawn on the **drawing plane** (XY, YZ or XZ, in the status bar or the Coordinates group)
of the active coordinate system. Exact sizes are easiest to set afterwards: click the object's first step
(for example **CreateBox**) in the tree and type the values in **Properties**.

![Grid and Snap Settings](/docs/img/app/dlg-snap.webp){: .half }

### Units

**Geometry › Units...** (or **Units** on the Home tab) sets the length unit the app shows and that typed
numbers without a unit are read in. A value with a unit, such as `120mil` or `0.5in`, is always read in
its own unit.

## Parameters and expressions

Anywhere a length, angle or frequency is asked for, you can type:

| You type | Means |
|---|---|
| `3` | 3 in the project's unit (GHz for frequencies) |
| `3mm`, `120mil`, `2.4GHz` | a number with its unit |
| `w/2 + 1mm` | an expression of parameters |

**Edit › Parameters › Parameters...** (or **Parameters** on the Home tab) lists the design parameters.
Add one, give it a value such as `1.6mm`, and use its name in any dimension. Changing it later rebuilds
every object that uses it, and ports and boundaries follow their faces.

![Parameters window](/docs/img/app/dlg-parameters.webp)

- **Project parameters** start with `$` (for example `$h`) and are shared by every design in the
  project.
- **Datasets** are tables of (x, y) points, used in expressions as `pwl(name, x)` (piecewise linear).
- The **Parameters** panel at the bottom of the window shows the same list for quick edits.

Parameters are also what [parameter sweeps](/docs/app/solving#parameter-sweeps) and
[optimisation](/docs/app/solving#optimize) vary.

## Combining objects

| Command | Result |
|---|---|
| **Union** | The selected objects become one |
| **Subtract...** | Cuts the tool objects out of the first one (optionally keeping the tools) |
| **Intersect...** | Keeps only the common volume |
| **Insert** | Cuts the selected solid out of every solid it overlaps; it stays whole itself |
| **Split...** | Cuts objects with a plane |
| **Imprint...**, **Split with Picked Face...**, **Separate Bodies**, **Section...** | Under **More** |

Booleans are steps in the objects' history, so they replay when a parameter changes.
**Geometry › Boolean Tolerance...** sets how close two faces must be to count as touching.

## Moving and copying

| Command | What it does |
|---|---|
| **Transform...** | Typed values: translate (a vector, or from the last two picks), rotate (centre, axis, angle), scale (factor about a centre) or mirror (plane), in place or as copies with repetitions |
| **Handles** | Arrows and rings on the selection: drag an arrow to move along it, a ring to turn about it. Moves snap to picks and the grid, turns to 5°; <kbd>Shift</kbd> drags freely, <kbd>Esc</kbd> cancels |
| **Move**, **Rotate**, **Mirror** | Pick the points in the view |
| **Array** | Linear Array..., Circular Array..., Mirror Copy... |
| **Align** | Lays one face onto another, or moves from one picked point to another |
| **Scale...** | Scales about a centre |

![Transform window](/docs/img/app/dlg-transform.webp)

## Faces and edges

**Face Tools** (Shape Tools group) work on selected faces (<kbd>F</kbd> switches to face selection):
Extrude Face, Offset Faces, Move Faces Along Vector, Rotate Face, **Shell** (hollow a solid, leaving the
selected faces open), Thicken Sheet, Cover Lines / Cover Faces / Uncover Faces, Detach Faces, Create Object
From Face, Wrap Sheet, Bend and Connect.

**Curve Tools**: Rectangle / Circle / Polygon curves, 3D Polygon, Curve Fillet, Curve Chamfer,
**Trace along Curve...** (a rectangular trace of a given width and thickness along a curve, which follows
later edits of the curve) and **Loft...** (a solid through several profiles).

**Edges** (<kbd>E</kbd> selects edges): **Fillet...**, **Chamfer...**, Detach Edges, Create Object From Edge.

## Feature history

Each object keeps the steps that built it, shown under it in the tree. Click a step to change its values in
**Properties**; the object rebuilds from there. **Feature History** (History group, or **Edit › Feature
History**) shows every step of the whole model in order:

![Feature History](/docs/img/app/win-history.webp)

Select a step to see what it does. **Edit...** changes it, **Switch Off** skips it, **Up** / **Down**
reorder, **Delete** removes it, and **Update** rebuilds the model from the first changed step.
**Geometry › Delete Last Operation** and **Purge History** (keep the shape, forget the steps) are in the
Geometry menu.

## Coordinate systems

**Fixed CS** (Coordinates group) creates named coordinate systems: **Offset CS**, **Rotated CS**,
**Offset and Rotated CS**, **Face CS** (on a selected face) and **Body CS** (on an object). Make one active
to draw in it; objects drawn there move with it if it changes.

The **Working CS** is a single movable coordinate system for quick drawing:

| Command | |
|---|---|
| **Working CS On / Off** (<kbd>W</kbd>) | Draw in the working CS, or in the global one |
| **Align Working CS to Face** | Uses the newest picks (a face, a straight edge, or 1–3 points) or the selected face |
| **Move Working CS...** | Move along or turn about its own U, V, W axes |
| **Store Working CS...** | Keep a named copy as a fixed CS |
| **Reset Working CS** | Back to the global axes |

Objects keep their place when the working CS moves later.

## Picks

Picks are points, edges and faces you mark for the next command. **Pick Point** (<kbd>P</kbd>), Pick
Vertex, Pick Edge Center, Pick Circle Center, Pick Face Center, Pick Point on Face, Pick Edge, Pick Face
and Pick Selected Faces are in the **Snap & Pick** group. Picks are drawn in magenta, and drawing tools
snap to them first.

Commands that use picks:

- **Box** with two picked points opens a box window filled in with their corners.
- **Align Working CS to Face**, **Align**, **Transform...** (translate from the last two picks).
- Face commands and the **Wave Port** take the newest face pick when no face is selected.
- **Point Port** is placed between two picked points.
- **Distance Between Picks** measures; **Pick List...** shows them; **Clear Picks** empties the list.

**Reference Points** (anchors) are named points kept with the project.

## Measuring

**Edit › Measure** has Position, Distance (<kbd>R</kbd>), Length (picked edges), Area (picked face), Volume
(selected objects) and the **Measure...** window.

## Materials and model objects

Each solid has a material: set it in **Properties** or with **Assign Material / Material Library...** See
[Materials](/docs/app/materials).

**Model / Non-Model** marks an object as construction geometry: it is drawn and can be used in booleans,
but the solver doesn't see it. A non-model solid can also mark a region for a finer mesh (see
[Mesh](/docs/app/mesh)).

## Overlapping objects

Objects may overlap. Where they do, the solver needs one material for each point:

1. The object with the higher **mesh priority** (in Properties) wins.
2. At equal priority, an object lying wholly inside another wins. An air box drawn first never swallows
   the model, and a dielectric inside a metal block keeps its space.
3. For partial overlaps at equal priority, a conductor wins over a dielectric. Otherwise
   **Geometry › Overlap Rule...** decides: the object created first (the default), or the later one.

![Overlap Rule](/docs/img/app/dlg-overlap-rule.webp){: .half }

**Check Model** lists every partial overlap at equal priority and which object gets it.

## Checking and healing

**Geometry › Check Geometry...** lists every problem the model analysis finds, worst first, such as open
or invalid solids, tiny edges and faces, and overlaps. Double-click one to see it in the 3D view.

**Heal...** repairs imported geometry, with a step for each of: fixing face boundaries, orientation and
curves; sewing loose faces into solids; filling missing faces; repairing self-intersections; removing very
short edges, tiny and sliver faces; merging faces on the same surface; closing near-miss gaps between
objects; and fusing overlapping solids inside one object. It can also remove fillets, chamfers, holes and
pins below a size. Tolerances left at 0 are chosen from each object's size. Healing is recorded in the
objects' history and the window shows what each step did.

![Check Geometry](/docs/img/app/dlg-check-geometry.webp)

## Model folders

Objects can be grouped in folders in the tree: right-click objects › **New Folder…** or **Move to Folder**.
Folders can be nested, renamed and deleted (their objects move up a level unless you delete them too).
Each is one undo step. Object names stay unique across folders.

## Encrypted 3D models

An encrypted 3D model is a part you can give to someone to simulate without letting them see or change
its insides: a connector, a package or a whole sub-assembly, with its own ports.

- **Create:** select the objects and choose **File › Export › Create Encrypted 3D Model (*.encryp10)...**
  (or right-click them). For each object choose whether it is **Included**, part of the **Model** (solved)
  or just drawn, **Shown** (visible to the user, otherwise only its outline is drawn) and, for shown
  objects, **Interactable** (the user may use its faces). Either protect it with the app's internal key
  (no password needed to use it) or give it a password, which is then asked when it is inserted.
- **Insert:** **File › Import › Insert Encrypted 3D Model (*.encryp10)...** It appears under
  **Components**. The user can move and rotate it; its materials, hidden parts and its own ports stay
  locked, and solve exactly as in the original model.
- **Hidden insides stay hidden:** in a project with a model whose contents are hidden, the mesh, field
  plots, port fields and far-field displays are not available (S-parameters and other results are), and
  the project can only be solved on this computer, not on a cluster, in the cloud or as an exported job.
  The solver's mesh and field files are deleted as soon as each solve finishes.
