Skip to main content

Surfaces

A surface is a body made of faces only: a skin with no thickness and nothing inside. Where a solid is a closed volume, a surface is the wall on its own, and it may be open: a ribbon, a tube with no ends, a patch. Surfaces are for shapes that are easier to build as skins and for the construction work around a solid: a face to cut with, a wall to thicken, a skin to intersect with.

From an open profileFrom an open profile modeextrude(25).surface()

A line, an arc and a line swept up: one surface of three faces.

From a closed profileFrom a closed profile modeextrude(25).surface()

A rectangle gives its four walls and no caps: a tube open at both ends.

From the edges of a bodyFrom the edges of a body modeextrude(8, rim).surface()

A collar standing on the top rim of a block.

A surface and a solid​

SolidSurface
Made ofFaces that close around a volumeFaces that enclose nothing
Profile it is made fromClosed: a region to fillOpen or closed: curves to sweep
A closed profile givesA block, with its capsThe walls only, with no caps
Meets other bodiesFuses with them, cuts them, or stays apart (Add / Remove / New)Always a body of its own
Volume and massYesNone. It has an area
Shapes panelSolid nSurface n

The Solid / Surface tabs​

The tools that sweep a profile make either kind. Their dialogs start with two tabs, Solid and Surface:

  • Solid fills the profile and shows the dialog as it always was.
  • Surface sweeps the profile's curves without filling them. The dialog then shows only what a surface has. The Add / Remove / New row, the Scope slot and Thin walls do not apply, because a surface is a body of its own with no walls. To give a surface a thickness, thicken it afterwards.

The statement written on the Surface tab ends in .surface():

extrude(25) // a solid
extrude(25).surface() // a surface from the same sketch

A dialog opens on Solid, whatever the scene holds. To open it on Surface, select the profile first: a curve, or edges of a solid or a surface, selected before you click the tool go into its Profile row. Each tool's page says what it takes. Sweep also has a path to fill, so it sorts what is selected: a closed curve or a loop of edges is the profile, and a helix, an open curve or an open chain of edges is the path. Loft takes two or more profiles, so it opens on Surface over two or more curves or chains of edges, each a profile. A row made on one tab can be reopened from the timeline and switched to the other.

The surface tools​

ToolWhereWhat it makes
ExtrudeExtrude › Surface tabA profile's curves swept straight along its plane's normal: a ribbon from an open sketch, a tube with no caps from a closed one, a wall from a curve or from the edges of a body
RevolveRevolve › Surface tabA profile's curves turned about an axis: a vase wall from an open sketch, the hollow skin of a ring from a closed one, a bowl closed to a point where the profile touches the axis, a band from a curve or from the edges of a body
SweepSweep › Surface tabA profile's curves carried along a smooth path: a gutter from an open sketch, a tube wall with open ends from a closed one, a helicoid from a line along a helix, a wall from a curve or from the edges of a body. A path with a sharp corner is refused for now
LoftLoft › Surface tabA skin through two or more profiles in order, each one argument: a patch with a four-sided rim through open curves, a tube wall with open ends through closed ones, from sketches, single sketch edges, curves or edges of a body. Guides, connections and a tangent takeoff need closed profiles for now
ThickenSurfaces › ThickenA solid from a surface given a thickness, to one side or to both, fused with the model, cut out of it or kept apart. Faces of a solid thicken too, into a skin on them
OffsetSurfaces › OffsetA surface at a constant distance from faces of a solid or from a surface: a skin standing clear of a body, a parallel wall, a copy of the faces at distance 0
FillSurfaces › FillA surface inside a closed loop of edges and curves: a cap on an opening, a patch between curves, the flat face inside a closed sketch. It can be tangent to the faces beside it or match their curvature, and pass through guide points and curves
Delete faceSurfaces › Delete faceFaces taken off a solid or a surface: healed, so a fillet, a hole or a boss goes as if it had never been built; capped with a new face; or left open, so a solid becomes a surface
SplitSplit (beside Boolean), Keep Front side or Back sideA surface trimmed: cut and one side kept, or both as two surfaces. At a plane or a sketch line, where another surface crosses it, or along a curve lying on it; a closed curve cuts a window

The toolbar's Surfaces menu holds Thicken, Offset, Fill and Delete face. Surfaces are trimmed with Split, which cuts solids too.

From a surface to a solid​

A surface is often a step on the way to a part. The usual route has three stages:

  1. Make the surfaces: the Surface tab of the profile tools, Offset from faces, or a STEP import. The profiles are sketches and curves.
  2. Trim and fill: cut away what is not wanted with Split, and close openings with Fill. A fill joins the surface whose rim it closes, and once no opening is left the body is a solid.
  3. Thicken what is still open into a solid with Thicken.

The solid takes the surface's place, and from there on it is a solid like any other: it fuses, cuts, fillets, shells and exports to STL. From profiles to a solid walks through the three stages on one part.

const ribbon = extrude(25, profile).surface() // the skin
thicken(2, ribbon) // a 2 mm wall: ribbon now names the solid

The other way, Delete face opens a solid into a surface: leave a face open, and fill the rim with another shape to close it into a solid again.

In the viewport​

A surface is shaded on both sides, so it reads the same from the front and from behind, in a colour of its own, a shade bluer than a solid's. That is how you tell a tube from a block. Its edges, the open rim included, are drawn like the edges of a solid. With a tool armed, a double-click on a rim edge takes the whole rim loop, and in code s.boundaryEdges() or edge().boundary() names the rim (see Selection).

Its faces and edges are hovered and picked like a solid's, from either side, and a picked one is measured the same way. The Shapes panel lists the body as Surface n, with the controls a solid's row has.

What takes a surface​

  • The curve tools read surfaces: Intersect finds the curve where a surface meets other faces, Project lays curves onto it and Offset runs a curve along it. A click on a face of a surface takes that face, and the surface's row in the timeline the whole surface; a surface that is a single face is taken whole either way. Thicken, Offset and Split take faces the same way.
  • A surface's edges are edges like any other: a sweep path, a piece of a composite curve, the profile of another surface or one profile of a loft.
  • Thicken turns it into a solid, Offset makes a parallel surface from it, Fill closes an opening in it and joins it, a solid once no opening is left, and Split trims it: the split that solids use too, with a surface or a curve as the cut besides.
  • Translate, rotate and mirror move it, repeat repeats the feature that made it, and color paints it.
  • Export writes it to STEP, and Import brings the surfaces of a STEP file in.

Fillet, chamfer, shell, draft and the booleans work on solids only, and report an error when handed a surface. Thicken the surface first, and they take the solid it becomes.

Reading a surface in code​

A surface answers its faces and its rim, and a swept one also the edges by where they came from:

const s = extrude(25).surface()

s.faces() // every face
s.boundaryEdges() // the open rim
s.sideFaces() // the swept faces, in the order the profile's curves were drawn
s.startEdges() // the edges where the sweep starts
s.endEdges() // the edges where it ends
s.sideEdges() // the edges the profile's corners trace

Each takes an index or a filter, as on a solid: s.sideFaces(0), s.boundaryEdges(edge().line()).