Guide › Surface tab › Surface from Mesh

Surface from Mesh

Select an area of a scan and one smooth NURBS surface follows it. Set its U and V lines by count or by tolerance, drag corners, points and lines onto the scan, check the fit in color, and keep it. You can also fit a grid of patches that join with matching position, tangent and curvature.

Try this tool live in your browser

On the Surface tab, first on the left. Its panel opens at the side of the window, and the Angle Fill selection tool is switched on for you.
Works onA scan mesh. Import or select a scan first.
You getA body named “Surface from Mesh” in the model, or one surface per patch for a connected grid.
Good forOne smooth area at a time: a roof, a door face, a bonnet, a gently curved panel.

The panel at a glance

  1. Columns / Rows fit one surface at 1 × 1, or a connected grid when set higher.
  2. Orientation and guides sets which way U and V run and holds guide curves for the grid.
  3. Scan preparation lets you paint areas for the fit to ignore.
  4. Lines chooses a set number of lines, or as many as the tolerance needs.
  5. Count U / V set how many lines run each way.
  6. Most lines a side limits the lines when fitting to a tolerance.
  7. Tolerance (rms) sets the typical distance the fit must reach.
  8. Tolerance (max) sets the largest distance allowed anywhere.
  9. Place lines where the shape needs them bunches the lines where the scan bends.
  10. Add U/V line places a line exactly where you click on the surface.
  11. Smoothing trades smoothness against closeness to the scan.
  12. Extend each side pushes every side out past the selection.
  13. Square patch makes the surface's frame square.
  14. U direction turns which way the U lines run.
  15. Reset corners rebuilds the frame from the selection and refits.
  16. Release dragged points lets go of every control point you've dragged.
  17. Move point X, Y, Z the exact distances Move point moves the picked point along each axis.
  18. Move point moves the picked point by the typed distances.
  19. Color by deviation colors the surface by its distance from the scan, reaching red at the Red at distance.
  20. Color by curvature colors the surface by how tightly it bends.
  21. Show U and V lines shows or hides the grid.
  22. Show control points shows or hides the inner control points.
  23. Surface opacity sets how solid the surface looks.
  24. Show / Hide surface fits the surface to the selected area, then hides or shows the fitted preview.
  25. Update surface refits the surface to the current selection.
  26. Summary gives the lines, the points and how close the fit is.
  27. Accept surface adds the surface to the model.
  28. Remove surface removes the preview and keeps your selection.
  29. Trim to selection cuts the accepted surface back to the selected area's outline.
  30. Close closes the tool and clears the scan selection.
  31. Status line says how many faces are selected and reports any problem.

How to fit a surface

As you read each step, the picture shows it happening.

Open Surface from Mesh

Click Surface from Mesh on the Surface tab. The panel opens and Angle Fill is switched on. With no scan loaded you'll see “Import or select a scan first: Surface from Mesh fits to a mesh selection.”

Select the area

Click the scan. Angle Fill spreads over the smoothly connected area and stops at sharp edges. Any other selection tool works too (brush, lasso and so on). The status line says how many faces are selected.

Select only what this one surface should cover. Leave creases, holes and flanges for other surfaces. A very large selection is thinned evenly to 40,000 points, which keeps the fit quick.

Press Show surface

A surface is fitted and drawn over the scan, with its U and V lines, its control points and the four corners of its frame. The button becomes Hide surface, which hides the preview so you can see the scan and the selection under it; press it again to bring the preview back. Changing the selection never refits by itself, so press Update surface beside it to refit to the new area.

Adjust the lines

Set how many U and V lines the surface has, or give it a tolerance to meet (see U and V lines). Once a surface is showing, every change refits straight away.

Drag corners and points Optional

Drag a corner to square up or move the edge of the surface; it snaps to the scan. Drag a control point and it moves so the surface meets the scan there. See Dragging on the surface.

Check the fit

Tick Color by deviation to the scan. Green is close, and the color goes through yellow to red at the Red at distance.

Accept the surface

Press Accept surface. It goes into the model as “Surface from Mesh”. The tool stays open, so select the next area and press Show surface again.

U and V lines

The U and V lines are the surface's grid: where its spans meet, edges included. A U line runs at a set U, and a V line at a set V. More lines let it follow more detail, but also more scan noise. The surface has two more control points each way than it has lines.

Lines choiceSet the number of lines

Set the number of lines
You choose the count each way with Count U and Count V.
As many as the tolerance needs
Lines are added until the surface is within Tolerance (rms) and Tolerance (max), up to Most lines a side. If it can't get there, the summary says “tolerance NOT met”.

Count U, Count V number4 · 2–28

Set the number of lines each way when you choose a set count, counting the two edges. Typing a count throws away lines you added or dragged by hand in that direction.

Most lines a side number12 · 2–28

Sets the most lines either way when fitting to a tolerance.

Tolerance (rms) length0.1 mm

Sets the typical distance from the scan that the fit must get down to (the root-mean-square). It measures the overall fit, not the worst spot.

Tolerance (max) length0.5 mm

Sets the largest distance from the scan allowed anywhere.

Place lines where the shape needs them tick boxon

In tolerance mode, lets the lines bunch up where the scan bends and spread out where it's flat. Untick it for evenly spaced lines.

Adding and moving lines by hand

Add a line where you want more detail, then drag it into place.

Shape

Smoothing slider20 %

Raise it to smooth out scan noise and waviness, or lower it to follow the scan more closely. Check the deviation after changing it, because smoothing can pull the surface away from the scan.

Extend each side length0

Pushes every side of the surface outward by this much past the selection, so you can trim it back cleanly later.

Square patch tick boxoff

Makes the surface's frame square, instead of following the selection's own proportions.

U direction degrees0

Turns which way the U lines run within the surface. At 0, U follows the selection's longest direction. With Follow selection outline on (the default), it only chooses which side U starts on.

Reset corners

Forgets dragged corners, held points and hand-placed lines, rebuilds the frame from the selection, and refits.

Release dragged points

Lets go of every control point you've dragged, so the fit decides them again.

Extend each side, Square patch and U direction work while the frame still comes from the selection. Once you drag a corner, they're grayed out until you press Reset corners.

Dragging on the surface

Corners, points and lines can be dragged once a surface has been fitted. Points pick within about 9 pixels, and highlight when you hover over them.

A corner

Dragging a corner moves that corner of the frame, and it snaps to the scan. The surface refits a moment later. The frame then keeps its shape through Update surface, until you press Reset corners.

A control point

Dragging a control point makes a local change. The point moves so its part of the surface lands on the scan where you let go. The point is held for the next Update surface, and Release dragged points lets it go.

A line

Dragging a line slides it along the surface, and the surface refits live.

Esc stops a drag, and moves already made stay. Alt-click passes to the view, for turning and zooming. A click that isn't on a point or line goes to the selection tool.

Undo (Ctrl+Z or the Undo button) takes back the last drag of a corner, point or line, one drag at a time with the newest first, and Redo puts it back. The selection, the counts and the other points stay as they are. Once you press Accept, Undo takes back the accepted surface instead.

Moving a point along X, Y or Z

Pressing a corner or control point picks it as well as dragging it. A picked point shows the move handle: a red X, a green Y and a blue Z arrow, the same arrows as in Design's Move, with a rotation ring round each axis. Ctrl-click more points to pick several, or Ctrl-click a picked point to drop it from the pick. The handle then sits at the middle of the picked points, and they move together.

A moved control point changes the surface only around that point, and a moved corner reshapes the frame and refits, just as dragging does. Undo and Redo step through these moves one at a time while the tool is open. Update surface, any other refit, and closing the tool clear those steps. Pressing another point moves the handle to it. To drop the handle, click away from the points or press Esc.

Checks

Color by deviation to the scan tick box

Colors the surface by its distance from the scan: green at 0, yellow at half of Red at, red at Red at (0.5 mm by default) and beyond. It needs the scan to be indexed first, and until then its tooltip says so.

Color by curvature tick box

Colors the surface by how tightly it bends, green where it's flattest and red where it's tightest. If both colorings are ticked, deviation wins.

Show U and V lines, Show control points tick boxeson

These show or hide the grid and the inner control points. Hidden points can't be picked, but corners always show. You need the lines showing to drag them.

Surface opacity slider85

Sets how solid the light-green surface looks, from 10 to 100.

Reading the summary

The box under the checks reads, for example, “4 x 4 lines | 8343 points | rms 0.0794 mm | max 0.8189 mm” then “Surface to scan: worst 3.624 mm | tightest radius 4.648 mm”.

Connected patches

Set Columns or Rows above 1 to fit a grid of patches in one go. They're solved together, with shared position, tangent and curvature along every join, so they flow into each other.

  1. Set Columns and Rows (1 to 8 each). Any current fit is discarded and the grid is spaced evenly.
  2. Drag the amber boundaries to put the joins where you want them (a feature line, a change of shape). They snap to the scan. Esc during a drag puts it back.
  3. Press Show surface. Patches are shaded in alternating greens, and their edges are orange.
  4. Press Accept, and each patch becomes its own surface (“Sheet 1 of 6” and so on) with matching edges. Sew them when you want one body.
Two connected patches; drag the amber join to where the shape changes.

In connected mode, only Smoothing is used, not “Place lines where the shape needs them”. There's no corner, point or right-click line editing, and each patch has at least 5 lines each way. In tolerance mode, lines are added to every patch until it's met. The summary lists each patch, plus the worst gap, tangent angle and curvature mismatch across the joins.

Orientation and guides

Click the section title to open it, and again to close it.

  1. Face the view sets the surface up as seen from where you're looking.
  2. Face the selection goes back to the automatic direction.
  3. Swap U and V swaps the two directions.
  4. Follow selection outline makes the frame hug the selection's outline.
  5. Space boundaries evenly puts the patch joins back on an even grid.
  6. Use guide curves for layout places the patch joins along your guides.
  7. Draw guide lets you click a guide line on the scan.
  8. Finish guide keeps the guide you're drawing.
  9. Clear guides removes all the guides.

Face the view

Sets up the surface as seen from where you're looking, with V running up the screen. Useful for a panel that folds over, where the automatic direction picks the wrong side.

Face the selection

Goes back to the automatic direction, which uses the plane that best fits the selection.

Swap U and V tick boxoff

Swaps the two directions.

Follow selection outline tick boxon

When it's on, the frame is four-sided and hugs the selection's outline, with its corners on the scan. When it's off, the frame is a rectangle, square to U and V, that turns with U direction.

Space boundaries evenly

Puts the joins between connected patches back on an even grid.

Draw guide, Finish guide, Clear guides

Press Draw guide and click points on the scan to draw a guide line. Right-click or Finish guide keeps it (it needs at least 2 points), and Esc throws it away. Kept guides are magenta. Clear guides removes them all.

Use guide curves for layout

Places the connected-patch joins along your guides, and along any contours already drawn on the part. A guide becomes a join if it runs right across the frame one way (most of the way across, and not much along). Columns and Rows are set to match, up to 8 each way. If no guide runs across, turn the frame (Face the view, or U direction) so the guides line up with U or V.

Scan preparation

Scan preparation tells the fit to ignore dirt, tape, dents, badges or anything else on the scan that isn't the surface you want. Your original scan isn't changed.

  1. Paint areas to ignore lets you paint areas of the scan for the fit to ignore.
  2. Ignore selected area adds the selected faces to the ignored areas.
  3. Restore selected takes the selected faces out of the ignored areas.
  4. Show mask shows the ignored areas.
  5. Undo mask undoes the last change to the ignored areas.
  6. Clear mask clears all the ignored areas.
  7. Maximum hole perimeter sets the largest hole that is bridged.
  8. Apply prepared reference refits the surface to a copy of the scan with the ignored areas smoothed over.
  9. Restore measured samples goes back to fitting the original scan.
  1. Fit a surface over the area first (Show surface).
  2. Open Scan preparation and press Paint areas to ignore. Drag over the scan to paint areas in magenta, or Ctrl-drag to restore them. The scan must be shown at 100%.
  3. Press the button again (it reads Finish painting ignored areas).
  4. Press Apply prepared reference. A prepared copy of the scan is built with the painted areas smoothed over and small holes bridged, and the surface refits to it. Deviation is still measured against the original scan.
  5. Restore measured samples goes back to fitting the original scan.

Ignore selected area, Restore selected

These add the faces you've selected (with any selection tool) to the ignored areas, or take them out. The scan must be shown at 100%.

Show mask, Undo mask, Clear mask

These show the ignored areas, undo the last change to them (up to 50 changes), or clear them all.

Automatically bridge small scan holes tick boxon

Fills holes smaller than Maximum hole perimeter (0 = worked out from the scan's size) in the prepared copy. Larger openings stay open.

Relax ignored areas using their surroundings tick boxon

Replaces ignored areas with a smooth continuation of the scan around them. When it's off, those areas are simply left out of the fit.

Accept and trim

Accept surface

Adds the surface to the model as “Surface from Mesh” (a connected grid gives “Sheet 1 of N” and so on), clears the preview, and leaves the tool open for the next area. The surface remembers which scan it came from, for Deviation.

Trim to selection

After Accept, this cuts the surface you just accepted back to the outline of the area it was fitted to. It opens Trim with that outline as the cutter and the inside kept. The surface is cut where it reaches past the area inside the scan, and where it runs on past the scan's own edge: a fit over a panel with a corner cut off, a notch or a curved side is cut back along the scan's edge into the corner. Where it already ends with the area or the scan's edge it is left as fitted, and if it ends there all round there is nothing to cut. Check the pieces and press Accept trim there.

Remove surface

Removes the preview, held points, guides and frame, and keeps your selection.

Close

Closes the tool and clears the scan selection.

Editing later: right-click an accepted surface in the model tree and choose Edit surface fit…. The tool reopens with its settings. Change them or drag points, then press Accept to replace the surface in place.

If something goes wrong

“Select an area of the scan first, with Angle Fill or any selection tool.”

Nothing is selected. Click the scan with Angle Fill, which is on when the tool opens.

“Only … selected face(s) - select a larger area.” / “Too few points to fit - select a larger area.”

The selection is too small. Select more of the scan, or use fewer lines.

The surface is wavy

There are more lines than the shape needs, or the scan is noisy. Lower the counts, raise Smoothing, or paint noisy areas in Scan preparation. Then check with Color by curvature.

Extend, Square patch and U direction are grayed out

You've dragged a corner. Press Reset corners to use them again.

“This surface has held control points. Release dragged points before changing the patch layout…”

Press Release dragged points before changing Columns or Rows.

I changed the model while the tool was open

Nothing to do: the fit is made from the scan alone, so Accept adds it to the model as it is now. If the surface you were refitting has been deleted meanwhile, the fit is added as a new surface and the status bar says so.

User guide for Tesselform 1.1.3