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.

Where the controls are

  1. Select the curve. It does not matter whether you are in Node mode or Curve mode.
  2. Scroll the detail panel down past Origin and Mesh to the Curve section.
  3. 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

Style switches between Tube, the mesh drawn round the curve, and Wire, the line on its own. With Wire the Profile and Caps cards disappear, because a line has nothing to shape.
  • 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

Resolution is how many straight pieces each stretch between two points is cut into. Lower it and the bend turns into visible corners, while the triangle count in the Mesh section drops.
  • 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.
What the tube costs

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

Drag up on Radius and the tube gets thicker. Shape Ratio squeezes the round section: below 1 it flattens, above 1 it grows tall. A finger on a number moves up or down, never sideways.
  • 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

Profile Sides is how many flat sides run round the tube. Three makes a triangular bar. Raising it makes the tube rounder, and adds triangles.
  • 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

Shape offers Ellipse and Rounded Rectangle. Corner Radius runs from 0, sharp corners, to 1, fully round. Switch Linked Corners off and each of the four corners has a number of its own.
  1. Tap Shape and choose Rounded Rectangle. The tube becomes a bar with softened corners.
  2. Drag Corner Radius down towards 0 for sharp corners, or up towards 1 for round ones.
  3. 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.
Two shapes, and no others

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 finishes the two ends of the tube. None leaves them open, Flat closes each with one flat face, and Round closes each with a dome.
CapsWhat the ends look likeUse it for
NoneOpen. The tube is a skin with no thickness, so each end is a holeEnds that will be hidden inside something else, or joined to other geometry later
FlatClosed with a single flat face, cut square across the curve. A new curve starts hereRails, bars and anything with a cut end
RoundClosed with a dome that grows out of the last ring of the tubeCables, 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

With Caps on Round, each end has a Flatness and a Falloff. Flatness is how far the cap reaches: above 1 it stretches into a nose. Falloff is its outline: Round, Smooth or Linear.
  • 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.
FalloffThe outline from the rim to the tip
RoundAn arc. With Flatness 1 this is the plain dome
SmoothA cone whose rim and tip are both eased, like the nose of a bullet
LinearA 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.

The same controls, four results: a round cable, a flat strap, a square rail with softened corners and a wire outline.

A round cable

  1. Leave Shape on Ellipse and Shape Ratio at 1.
  2. Set Radius to half the thickness you want.
  3. Raise Profile Sides to 12 or 16 so the outline is round.
  4. Set Caps to Round, or to None if both ends disappear into a plug or a wall.

A flat strap or ribbon

  1. Set Shape to Rounded Rectangle.
  2. Set Radius to half the width of the strap.
  3. Drag Shape Ratio down to about 0.1, so the strap is a tenth as thick as it is wide.
  4. Turn Profile Sides down to 1.
  5. 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

  1. Set Shape to Rounded Rectangle and leave Shape Ratio at 1.
  2. Set Radius to half the width of the rail.
  3. Set Corner Radius between 0.2 and 0.3.
  4. Turn Profile Sides down to 1, and Corner Sides to 2 or 3. A softened corner does not need more.
  5. Leave Caps on Flat.

A wire outline

  1. Set Style to Wire.
  2. Switch Cyclic on if the outline should close.
  3. Give the corner points the Vector handle type for straight edges, and leave the others on Auto for curved ones.
  4. Lower Resolution until just before the curves start to show corners.

Every control

ControlRangeWhat it changes
StyleTube or WireA mesh round the curve, or the line alone
Resolution ModeUniform or Non-UniformOne Resolution for the curve, or one for each stretch between points
Resolution1 to 128, starts at 12Pieces along each stretch between two points. Shown while Resolution Mode is Uniform
ShapeEllipse or Rounded RectangleThe cross section
Profile Sides3 to 128 for Ellipse, 1 to 32 for Rounded Rectangle. Starts at 8Sides round an ellipse, or pieces along each flat side of a rectangle
Corner Sides1 to 32, starts at 4Pieces in each rounded corner. Rounded Rectangle only
Radius0 upwards, starts at 0.1Thickness: half the width of the profile
Radius ModeUniform or Non-UniformOne thickness, or a Point Scale on every point
Shape Ratio0.001 upwards, starts at 1Height of the profile against its width
Ratio ModeUniform or Non-UniformOne ratio, or a Shape Ratio on every point
Linked CornersOn or off, starts onOne Corner Radius for all four corners, or one each. Rounded Rectangle only
Corner Radius0 to 1, starts at 0.25How round the corners are, as a share of the shorter side. Rounded Rectangle only
Corner ModeUniform or Non-UniformOne corner setting, or a Corner Radius on every point. Rounded Rectangle only
CapsNone, Flat or Round. Starts on FlatHow the two ends are closed
Start Flatness, End FlatnessAny number, starts at 1How far a round cap reaches. 1 is half a ball, 0 is flat, below 0 dips inwards
Start Falloff, End FalloffRound, Smooth or LinearThe 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.

Something unclear?

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.

Send Feedback