artofillusion
Class TriMeshSelectionUtilities

java.lang.Object
  extended by artofillusion.TriMeshSelectionUtilities

public class TriMeshSelectionUtilities
extends java.lang.Object

This class provides a variety of static methods for selecting parts of TriangleMeshes in different ways.


Constructor Summary
TriMeshSelectionUtilities()
           
 
Method Summary
static boolean[] convertSelection(TriangleMesh mesh, int oldMode, boolean[] selection, int newMode)
          Convert one type of selection (point, edge, or face) to a different one.
static boolean[] findEdgeLoops(TriangleMesh mesh, boolean[] selection)
          Select an edge loop from each edge that is currently selected.
static boolean[] findEdgeStrips(TriangleMesh mesh, boolean[] selection)
          Select an edge strip from each edge that is currently selected.
static boolean[] findSelectionBoundary(TriangleMesh mesh, int oldMode, boolean[] selection)
          Find the boundary of the current selection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriMeshSelectionUtilities

public TriMeshSelectionUtilities()
Method Detail

convertSelection

public static boolean[] convertSelection(TriangleMesh mesh,
                                         int oldMode,
                                         boolean[] selection,
                                         int newMode)
Convert one type of selection (point, edge, or face) to a different one.

Parameters:
mesh - the mesh the selection applies to
oldMode - the selection mode of the old selection
selection - the old selection
newMode - the new selection mode
Returns:
a selection in the new mode which corresponds to the old selection as closely as possible

findSelectionBoundary

public static boolean[] findSelectionBoundary(TriangleMesh mesh,
                                              int oldMode,
                                              boolean[] selection)
Find the boundary of the current selection.

Parameters:
mesh - the mesh the selection applies to
oldMode - the selection mode of the old selection
selection - the old selection
Returns:
a selection in edge mode which corresponds to the boundary of the old selection

findEdgeLoops

public static boolean[] findEdgeLoops(TriangleMesh mesh,
                                      boolean[] selection)
Select an edge loop from each edge that is currently selected.

Parameters:
mesh - the mesh the selection applies to
selection - the current selection (in edge mode)
Returns:
a selection containing all the edges in the loops, or null if no loop could be found for one or more edges

findEdgeStrips

public static boolean[] findEdgeStrips(TriangleMesh mesh,
                                       boolean[] selection)
Select an edge strip from each edge that is currently selected.

Parameters:
mesh - the mesh the selection applies to
selection - the current selection (in edge mode)
Returns:
a selection containing all the edges in the strips, or null if no strip could be found for one or more edges


Copyright © 1999-2011 by Peter Eastman.