Curves · Chapter 2 of 4
Curves: Profiles, Thickness and Caps
Written for version 2.7.0
The tube round a curve, card by card: Tube or Wire, Resolution, the Ellipse and Rounded Rectangle profiles, Radius, Shape Ratio, corners, and None, Flat or Round caps.
The last chapter drew the line: control points, handles and handle types. This chapter is about the tube the editor draws round that line. How thick it is, what shape its cross section has, how finely it is built and how its two ends are finished are all set in one place, the Curve section of the detail panel.
Add a curve, shape it with control points and handles, and close it with Cyclic.
Where the controls are
- Select the curve. It does not matter whether you are in Node mode or Curve mode.
- Scroll the detail panel down past Origin and Mesh to the Curve section.
- The section holds three cards, Display, Profile and Caps, followed by Cyclic, Edit Curve and Convert to Mesh.
- A blue word on the right of a row is a menu. Tap it and choose.
- A row with minus and plus buttons is a stepper. Each tap changes the number by one.
- A plain number is a number field. Tap it to enter a value, or drag up or down on it to change it.
- The tube is rebuilt the moment a value changes, and every change is a step for Undo in the top bar.
- The Mesh section just above counts the triangles the tube is made of. Keep an eye on it while you read this chapter.
Display
Style: Tube or Wire
- Tube is what a new curve starts as, and what the rest of this chapter shapes.
- Wire shows the curve as a bare line with no thickness. It has no faces at all.
- Nothing is lost when you switch. Go back to Tube and the radius, shape and caps are as you left them.
- Wire is the lightest way to keep a curve in the rig while you are still deciding its path.
Resolution
- A curve is never truly round. The editor walks along it and joins the places it stops with straight pieces. Resolution is the number of pieces between one control point and the next.
- It runs from 1 to 128 and starts at 12. At 1 each stretch is a single straight piece from point to point.
- A gentle bend looks smooth at 6 or 8. A tight bend seen close up may want 16 or more.
- Resolution works on Wire too: it decides how smooth the line is.
- Resolution Mode is Uniform to begin with, which means one number for the whole curve. Non-Uniform gives every stretch its own number and is covered in the next chapter.
Each piece along the curve is one ring of faces, and each ring has as many faces as the profile has sides. So the triangles add up to roughly the pieces along the curve, times the sides round it, times two. A new curve is 12 pieces of 8 sides: 192 triangles, plus a few for the two ends. Doubling either number doubles the total. Raise Resolution and Profile Sides only as far as the picture needs.
Profile
The profile is the cross section of the tube: the shape you would see if you cut straight through it. The Profile card sets that shape and its size. The same profile is used along the whole curve unless you switch one of the three modes on the card to Non-Uniform, which is the subject of the next chapter.
Radius and Shape Ratio
- Radius is the thickness, measured from the curve out to the side of the tube. It starts at 0.1, and the whole tube is twice that across.
- Radius can be any number from 0 upwards. At 0 the tube shrinks to a thread too thin to see.
- Shape Ratio is the height of the profile compared with its width. At 1 the profile is a circle. At 0.5 it is half as high as it is wide. At 2 it is twice as high.
- The width stays at the Radius. Only the height changes with Shape Ratio.
- Shape Ratio goes down to 0.001, which is all but flat, and has no upper limit.
- Which way the wide side faces follows from the curve itself: the editor carries the profile along with as little turning as it can. If a flat tube lies the wrong way round, turn it with Twist, in the next chapter.
Profile Sides
- With the Ellipse shape, Profile Sides runs from 3 to 128 and starts at 8.
- Low numbers are shapes in their own right: 3 is a triangular bar, 4 a square one, 6 a hexagonal one.
- In the app the sides are shaded smoothly into each other, so 8 already looks round from a distance. The outline is where a low number shows, so raise it for anything seen close up.
- 12 to 16 is plenty for most cables and pipes.
Rounded Rectangle
- Tap Shape and choose Rounded Rectangle. The tube becomes a bar with softened corners.
- Drag Corner Radius down towards 0 for sharp corners, or up towards 1 for round ones.
- For corners that differ, switch Linked Corners off. Four rows replace the one: Corner Top Right, Corner Top Left, Corner Bottom Left and Corner Bottom Right.
- Radius is now half the width of the bar, and Shape Ratio still sets the height against the width. At 1 the bar is square.
- Corner Radius is a share of the shorter side, not a distance. 0 is a sharp corner, 0.25 is where it starts, and 1 rounds the corner as far as it can go. On a square bar, 1 on every corner gives a circle. Because it is a share, corners can never overlap.
- Corner Sides appears with this shape. It is how many pieces each rounded corner is built from, 1 to 32, starting at 4. One piece is a flat chamfer, more pieces make a rounder corner.
- Profile Sides changes its meaning with this shape. It is now the number of pieces along each flat side, 1 to 32. A flat side looks the same however many pieces it has, so turn it down to 1 unless you mean to twist the bar.
- Switching Linked Corners back on gives all four corners the value of Corner Top Right.
The profile is always an ellipse or a rounded rectangle. You cannot draw a cross section of your own and have it carried along the curve, and the editor has no tool that spins a curve round an axis to make a vase or a wheel. For those shapes, build a mesh instead.
The three modes on the card
Radius Mode, Ratio Mode and Corner Mode each read Uniform to begin with. Uniform means the number on this card is used along the whole curve. Non-Uniform lets every control point carry its own value, so a tube can taper or change shape along its length. The next chapter is about exactly that. Until then, leave all three on Uniform.
Caps
| Caps | What the ends look like | Use it for |
|---|---|---|
| None | Open. The tube is a skin with no thickness, so each end is a hole | Ends that will be hidden inside something else, or joined to other geometry later |
| Flat | Closed with a single flat face, cut square across the curve. A new curve starts here | Rails, bars and anything with a cut end |
| Round | Closed with a dome that grows out of the last ring of the tube | Cables, fingers, tails and anything with a soft end |
- A cap takes the shape of the profile. On a rounded rectangle, a round cap is a rounded pillow, not a ball.
- A closed curve has no ends. With Cyclic on, Caps makes no difference.
- A round cap is built from several rings of its own, so it costs more triangles than a flat one.
Shaping a round cap
- Four rows appear under Caps: Start Flatness, Start Falloff, End Flatness and End Falloff. Start is the end at Point 0, the first control point. End is the end at the last one.
- Flatness 1 is half a ball. Lower numbers flatten the dome, and 0 is as flat as a Flat cap. Above 1 the cap is drawn out into a longer nose.
- Flatness can go below 0. The cap then dips into the tube like the inside of a bowl.
- The two ends are set separately, so one end can be a blunt dome and the other a point.
| Falloff | The outline from the rim to the tip |
|---|---|
| Round | An arc. With Flatness 1 this is the plain dome |
| Smooth | A cone whose rim and tip are both eased, like the nose of a bullet |
| Linear | A straight line: a plain cone with a sharp tip |
Four looks
Everything above combines into a handful of looks you will use again and again. Each of these starts from a curve you have already drawn.
A round cable
- Leave Shape on Ellipse and Shape Ratio at 1.
- Set Radius to half the thickness you want.
- Raise Profile Sides to 12 or 16 so the outline is round.
- Set Caps to Round, or to None if both ends disappear into a plug or a wall.
A flat strap or ribbon
- Set Shape to Rounded Rectangle.
- Set Radius to half the width of the strap.
- Drag Shape Ratio down to about 0.1, so the strap is a tenth as thick as it is wide.
- Turn Profile Sides down to 1.
- Set Corner Radius to 1 for rounded edges, or 0 for edges that look cut.
- For a blade or a leaf, with edges that thin to nothing, keep Shape on Ellipse and lower Shape Ratio the same way.
- If the strap lies on its edge when you wanted it flat, give every point a Twist of 90 degrees. The next chapter shows how.
A square rail with softened corners
- Set Shape to Rounded Rectangle and leave Shape Ratio at 1.
- Set Radius to half the width of the rail.
- Set Corner Radius between 0.2 and 0.3.
- Turn Profile Sides down to 1, and Corner Sides to 2 or 3. A softened corner does not need more.
- Leave Caps on Flat.
A wire outline
- Set Style to Wire.
- Switch Cyclic on if the outline should close.
- Give the corner points the Vector handle type for straight edges, and leave the others on Auto for curved ones.
- Lower Resolution until just before the curves start to show corners.
Every control
| Control | Range | What it changes |
|---|---|---|
| Style | Tube or Wire | A mesh round the curve, or the line alone |
| Resolution Mode | Uniform or Non-Uniform | One Resolution for the curve, or one for each stretch between points |
| Resolution | 1 to 128, starts at 12 | Pieces along each stretch between two points. Shown while Resolution Mode is Uniform |
| Shape | Ellipse or Rounded Rectangle | The cross section |
| Profile Sides | 3 to 128 for Ellipse, 1 to 32 for Rounded Rectangle. Starts at 8 | Sides round an ellipse, or pieces along each flat side of a rectangle |
| Corner Sides | 1 to 32, starts at 4 | Pieces in each rounded corner. Rounded Rectangle only |
| Radius | 0 upwards, starts at 0.1 | Thickness: half the width of the profile |
| Radius Mode | Uniform or Non-Uniform | One thickness, or a Point Scale on every point |
| Shape Ratio | 0.001 upwards, starts at 1 | Height of the profile against its width |
| Ratio Mode | Uniform or Non-Uniform | One ratio, or a Shape Ratio on every point |
| Linked Corners | On or off, starts on | One Corner Radius for all four corners, or one each. Rounded Rectangle only |
| Corner Radius | 0 to 1, starts at 0.25 | How round the corners are, as a share of the shorter side. Rounded Rectangle only |
| Corner Mode | Uniform or Non-Uniform | One corner setting, or a Corner Radius on every point. Rounded Rectangle only |
| Caps | None, Flat or Round. Starts on Flat | How the two ends are closed |
| Start Flatness, End Flatness | Any number, starts at 1 | How far a round cap reaches. 1 is half a ball, 0 is flat, below 0 dips inwards |
| Start Falloff, End Falloff | Round, Smooth or Linear | The outline of a round cap |
- The Profile and Caps cards are only there while Style is Tube.
- The four cap rows are only there while Caps is Round.
- All of these belong to the curve, not to its points, so they are the same in Node mode and Curve mode.
So far one profile has run the whole length of the curve. The next chapter gives each control point values of its own, so a tube can taper to a point, twist like a ribbon and change shape as it goes.
A different thickness, shape and twist at every point: Point Scale, the Non-Uniform modes and the value tools.
Tell us which control you changed, the value you gave it and what the tube did instead. A screenshot of the viewport with the Curve section helps.