Primitives
Box, Cylinder, Sphere and Torus make a solid in one step, without drawing a sketch yourself. They are in the CREATE panel of the SOLID tab, behind the arrow at the panel's end.
Placing one
Placement has three stages: where, how big across, how tall.
1. Where. Click the command. Anvil asks for the face or plane to build on, exactly as Create Sketch does: click an origin plane, a flat face of a body, or a construction plane. If a flat face or a construction plane is already selected, this step is skipped.
2. The footprint. A prompt at the top of the viewport reads Click where the footprint starts.
- For a Box, click one corner and then the opposite corner.
- For a Cylinder, Sphere or Torus, click the centre and then a point on the circle.
After the first click you can type instead of clicking, as in a sketch: for a box, the width, Tab, the depth, Enter; for the round ones, the diameter and Enter.
3. The rest. The primitive's dialog opens with the footprint filled in. Set the remaining size, check the preview, and click OK. You can drag the arrow in the viewport for the height.
Press Esc at any stage to abandon it.
The four primitives
| Primitive | Footprint | Fields in the dialog | Starts as |
|---|---|---|---|
| Box | A rectangle | Width, Depth, Height | Height 20 |
| Cylinder | A circle | Radius, Height | Height 20 |
| Sphere | Its widest circle, lying in the plane | Radius | |
| Torus | The circle the ring follows | Ring radius, Tube radius | Tube radius a quarter of the ring radius |
A sphere and a torus are centred on the plane, so half of each is below it. A box and a cylinder stand on the plane.
Every primitive also has Position X, Y and Z. X and Y are measured across the plane it stands on, and Z is the distance out of the plane, so a Z of 5 lifts the primitive 5 mm off its plane. For a box, the position is its corner; for the others, the centre of the circle.
All of these fields accept expressions and parameters.
Operation
Primitives have the same Operation list as Extrude: New Body, Join, Cut, Intersect.
- Placed on an origin plane or a construction plane, a primitive is a New Body.
- Placed on a face of a body, it joins that body.
- Give a box or a cylinder on a face a negative height and it goes into the body instead, and the operation switches to Cut. That is a quick pocket or blind hole.
The default follows the height until you choose an operation yourself.
Editing a primitive
Double-click it in the timeline to reopen its dialog and change any field.
Editing the footprint as a sketch
A primitive can be edited as the shape it stands on.
- Right-click the primitive in the timeline.
- Choose Edit Sketch.
The first time you do this, Anvil gives the primitive a sketch of its footprint: a rectangle with width and depth dimensions for a box, a circle with a radius dimension for the others. The dimensions carry the same expressions the dialog fields held, and the sketch opens for editing with the full set of drawing tools.
From then on the primitive is built from that sketch:
- The footprint fields and Position no longer appear in its dialog. Change them in the sketch.
- A box is extruded from whatever closed region its sketch encloses, so you can round its corners or notch it there.
- A cylinder, sphere or torus needs its sketch to contain exactly one circle.
The footprint sketch belongs to the primitive. It is not a step of its own in the timeline, and deleting the primitive deletes the sketch with it.
Messages
| Message | Cause |
|---|---|
| a Cylinder's sketch is one circle; this one has 2 | The footprint sketch of a round primitive must hold exactly one circle. |
| this box's sketch encloses no region to extrude | The box's footprint sketch has been left open. See Why won't my sketch extrude. |
- Home
- Getting started
- Sketching
- Modelling
- Files
- Printing
- Working with an AI assistant
- Reference
Written for Anvil 0.2.0. Units are millimetres. Repository · Issue tracker