Lines & Distance Maps basics: work with polylines and depth maps

What polylines and distance maps are, where they come from, what you can turn them into, and which tool of the Lines and Distance Maps tabs to use

3 min read

Lines and distance maps are the two "in-between" object types of MeshInspector. You rarely open them as files: you get them from a mesh or a point cloud, edit them, and turn them into a mesh again. This guide explains both types, where they come from, what you can make of them, and which tool of the Lines and Distance Maps tabs does what.

Lines and Distance Maps

  • A polyline (a lines object) is a chain of straight segments: an ordered set of vertices joined by edges, open or closed, without thickness. A section contour, an outline or a path is a polyline. See Polylines.
  • A distance map is a regular 2D grid of distance values, like a depth or height map, shown in the viewport as a relief. See Distance Maps.

For a selected lines object, the Information panel shows the Vertices, Edges, Length, Avg Edge Length and Components of the polyline.

Where Lines Come From

Source Tool Result
A cross-section of a mesh Inspect › Section, then Export › Create Section Object A lines object (Section0, …) under the cut object
Iso-lines of a distance map Distance Maps › Distance Map to IsoLines Contour lines at the chosen levels
A point cloud Points › Points to Lines One line through the points in their order
A file Open Files with an SVG drawing or a MeshLib .mrlines file A lines object

A lines object can be saved as .mrlines, PTS, PLY or DXF with Save object.

The Section tool on a CAD housing: the XY plane cuts the part, the Section Window shows the U-shaped contour, and Export › Create Section Object turns it into a lines object

What You Can Turn Lines Into

The Lines Tab at a Glance

Task Tools
Combine, copy, set direction Combine, Clone, Delete Colors, Flip Orientation
Check a line Lines Info, Lines Derivative
Edit a line or make a mesh along it To Components, Simplify, Subdivide, Reduce Noise, Offset, Extrusion Body, To Spline
Convert to another object type Lines to Distance Map, Lines to Mesh, Lines to Points, Lines to Voxels

Combine, Clone, Delete Colors, To Components, Subdivide and Reduce Noise are the same buttons as on the mesh and point tabs; their guides have a part about lines.

The Distance Maps Tab at a Glance

Tool What it does
Mesh to Distance Map Makes a depth map of the selected mesh
Distance Map to Mesh Turns a distance map back into a mesh
Distance Map to IsoLines Makes lines at chosen distance levels
Distance Map to Image Saves the map as an image; Distance Map to Image Advanced is in its drop-down
Image to Distance Map Loads an image as a distance map
Distance Map Boolean Combines two maps: maximum, minimum or subtraction

Clone is on this tab too.

Recipe: From a Section to a Solid

  1. Select the mesh and open Inspect › Section. Pick a plane (Plane XY, Plane XZ or Plane YZ) and drag Shift until the Section Window shows the contour you need.
  2. Open Export, keep Number of Sections at One and click Create Section Object. Close the tool.
  3. Select the new lines object. If the contour is noisy or very dense, use To Spline or Simplify first.
  4. Make the solid: Lines to Mesh for a flat plate from a closed contour, or Extrusion Body with Move Along Z Axis for a prism of the section's shape.

Customize Consent Preferences

We use cookies and similar technologies, such as local storage. You will find detailed information about all of them under each consent category below.

To learn more about how Google processes personal information, visit: Google privacy policy

Always Active