Vision and Mobile Robotics Laboratory | Software
Home | Members | Projects | Publications | Software | Videos Internal

MeshSlice

Description

MeshSlice is an interactive 3-D viewer that is used to create 2-D slices through 3-D surface meshes. It is used to analyse the shape difference between multiple meshes.

After MeshSlice has read in the meshes, a display tool pops up. The display tool has two viewers. On the left is the Mesh Viewer which shows the 3-D meshes; the meshes can be moved around and viewed from different positions. The slicing plane is shown as a blue plane. On the right is the Slice Viewer which displays the slices though all of the meshes; the slices can be translated and zoomed. Clicking with the left mouse button on the meshes in the mesh viewer changes the current slice position. By typing X,Y,Z in the Mesh Viewer, the slice plane changes slice direction.

Additionally, the slice plane of two MeshSlice instances can be synchronized so that the same slice can be shown under two sets of transforms. One viewer is set to be the master, and one is set to be the slave, and the necessary parameters are transferred using a temporary file.

Interface

MeshSlice accepts commands from the mouse and keyboard.

Clicking with the left mouse button on the model in the Mesh Viewer changes the current level of the slice plane. The direction of the slice plane is controlled by keyboard inputs. When the position of the slice plane changes, the displayed slice is automatically updated. (Note: the commands only work if the cursor is set to the arrow cursor and is placed inside the viewing window).

Typing x in the Mesh Viewer will make the slice plane perpendicular to the x-axis.

Typing y in the Mesh Viewer will make the slice plane perpendicular to the y-axis.

Typing z in the Mesh Viewer will make the slice plane perpendicular to the z-axis.

Typing s in the Mesh Viewer will save the view to the synchronization file (if the -master option is set) or synchronize the view with the synchronization file (if the -slave option is set). This allows you to view the same slice through a set of meshes under two different sets of transforms for comparison.

Files

By typing 'MeshSlice -' the following options (format description default) are printed:

Usage

Usage: MeshSlice (See MeshSlice.html for complete usage)

Detailed Usage

%S mesh prefix [required]

-baseView %d set base view number

-transDir %S directory containing transforms to base view

-wrlDir %S directory containing mesh files

-master %S write sync info to <file>

-slave %S read sync info from <file>

-newFormat use _<view>.wrl naming convention

-hidePlane don't show the blue plane

... list of views to display

Examples

To create a MeshSlice viewer for robot0.wrl, robot1.wrl and robot2.wrl (indexed meshes) use:

To compare the robot model under two sets of transforms, use the master and slave options:

up


The VMR Lab is part of the Vision and Autonomous Systems Center within the Robotics Institute in the School of Computer Science, Carnegie Mellon University.