Skip to main content

Editor

The Editor tool provides interactive editing capabilities for manual manipulation of surface meshes at the triangle level. This tool is essential for fine-grained corrections that automated tools cannot handle, such as removing specific triangles, adding missing faces, or adjusting vertex positions.

Medical Disclaimer

This tool is provided for research and educational purposes only. Any clinical or diagnostic use requires proper validation in accordance with applicable regulations.

Overview

While automated tools handle most mesh repair tasks, some situations require manual intervention:

  • Removing specific problematic triangles that automated detection misses
  • Adding triangles to bridge gaps or close complex holes
  • Fine-tuning vertex positions for better surface quality
  • Creating custom surface modifications for specific applications

The Editor tool provides three editing modes, each designed for a specific type of mesh manipulation.

Editing Modes

Delete Triangles Mode

The Delete triangles mode allows you to select and remove triangles from visible surfaces using various region-of-interest (ROI) selection tools.

ROI Selection Tools

Multiple selection tools are available for selecting triangles:

ToolDescription
FreehandDraw a freehand outline to select triangles
RectangleDraw a rectangular selection region
PolygonClick points to define a polygonal selection region
LassoSimilar to freehand but with automatic closure
SphereSelect triangles within a spherical region

Selection Options

OptionDescription
Select modeAdd to or replace current selection
Target surfacesApply selection to active surface or all visible surfaces

Delete on the Fly

When the Delete on the fly option is enabled:

  • Selected triangles are immediately deleted as you complete each selection
  • No need to click Apply after each selection
  • Faster workflow for removing multiple regions

When disabled, selections accumulate until you click Apply.

Operations

After selecting triangles (when Delete on the fly is disabled):

OperationDescription
Delete selectionRemove the selected triangles from the surface(s)
Retain selectionDelete unselected triangles and create a new surface from the selection

Add New Triangles Mode

The Add new triangles mode allows you to create new triangles by selecting three points on the active surface.

Workflow

  1. Select Add new triangles mode
  2. Click Enable to activate the interactive mode
  3. Left-click to select three points on the surface
  4. A new triangle is created connecting those three points
  5. Continue adding triangles or click Enable again to deactivate
Camera Control

Hold the Alt key while in this mode to enable camera spinning, panning, and zooming without accidentally placing points.

Use Cases

  • Bridging gaps between surface regions
  • Closing small holes manually
  • Adding missing faces to incomplete meshes
  • Creating custom surface connections

Manipulate Points Mode

The Manipulate points mode allows you to move individual vertices to adjust surface geometry.

Workflow

  1. Select Manipulate points mode
  2. Click Enable to activate the interactive mode
  3. Left-click and drag on a vertex to move it
  4. The vertex follows your mouse movement
  5. Release to place the vertex
  6. Continue adjusting vertices or click Enable again to deactivate
Camera Control

Hold the Alt key while in this mode to enable camera spinning, panning, and zooming without accidentally moving vertices.

Use Cases

  • Smoothing local surface irregularities
  • Adjusting vertex positions for better triangle quality
  • Fine-tuning surface shape in specific areas
  • Correcting small geometric errors

Interface

Mode Selection

ModeDescription
Delete trianglesSelect and remove triangles using ROI tools
Add new trianglesClick three points to create new triangles
Manipulate pointsDrag vertices to new positions

Delete Triangles Mode Controls

When in Delete triangles mode, the full ROI selection toolkit is available:

  • Selection tool buttons (freehand, rectangle, polygon, etc.)
  • Selection mode toggle (add/replace)
  • Target surface selector
  • Delete on the fly checkbox

Add/Manipulate Mode Controls

When in Add new triangles or Manipulate points mode:

ControlDescription
Enable buttonActivates/deactivates the interactive editing mode

Operations (Delete Mode)

OptionDescriptionDefault
Delete selectionRemove selected trianglesSelected
Retain selectionCreate new surface from selection

Actions

ButtonDescription
ApplyExecute the selected operation (Delete mode only)

Typical Workflows

Removing Specific Triangles

To remove problematic triangles that weren't caught by automated tools:

  1. Select Delete triangles mode
  2. Choose an appropriate ROI selection tool
  3. Enable Delete on the fly for quick removal
  4. Click and drag to select triangles to remove
  5. Repeat until all unwanted triangles are removed

Bridging a Gap

To connect two separate surface regions:

  1. Select Add new triangles mode
  2. Click Enable to activate
  3. Carefully click three points to create each bridging triangle
  4. Build up triangles to close the gap
  5. Hold Alt to rotate view as needed
  6. Click Enable to deactivate when done

Extracting a Region

To cut out a region as a new surface:

  1. Select Delete triangles mode
  2. Disable Delete on the fly
  3. Select the region you want to extract
  4. Choose Retain selection
  5. Click Apply

The selected region becomes a new surface object.

Smoothing Vertex Positions

To manually smooth a bumpy area:

  1. Select Manipulate points mode
  2. Click Enable to activate
  3. Drag vertices to more appropriate positions
  4. Hold Alt to adjust your view
  5. Continue until the surface is smooth
  6. Click Enable to deactivate

Best Practices

  1. Save before editing: Manual editing is hard to undo. Save your work or duplicate the surface before extensive editing.

  2. Use appropriate zoom: Zoom in close to the area you're editing for precise control.

  3. Work incrementally: Make small changes and verify results frequently.

  4. Consider automated tools first: Use Diagnostics and Fixes for bulk operations; reserve manual editing for cases they can't handle.

  5. Maintain mesh quality: When adding triangles, try to create triangles with reasonable aspect ratios (not too elongated or thin).

  6. Fill holes after deleting: Deleting triangles creates holes. Use Fill Holes or manually add triangles to close them.

  7. Use Alt key liberally: The Alt key is your friend—it lets you navigate without accidentally editing.

Keyboard Shortcuts

KeyAction
Alt (hold)Enable camera navigation (spin, pan, zoom)
DeleteDelete selected triangles (when enabled in Delete mode)
EscapeCancel current selection or operation

See Also