|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.geom.mesh.VertexSelector
public abstract class VertexSelector
Abstract parent class for selecting mesh vertices and manipulating resulting
selections using set theory operations. Implementations of this class should
aim to work with all mesh types (e.g. TriangleMesh
,
WETriangleMesh
).
Constructor Summary | |
---|---|
VertexSelector(Mesh3D mesh)
Creates a new selector assigned to the given mesh |
Method Summary | |
---|---|
VertexSelector |
addSelection(VertexSelector sel2)
Adds all vertices selected by the given selector to the current selection. |
VertexSelector |
clearSelection()
Clears the current selection. |
Mesh3D |
getMesh()
Returns the associated mesh for this selector. |
java.util.Collection<Vertex> |
getSelection()
Returns the actual collection of selected vertices |
VertexSelector |
invertSelection()
Creates a new selection of all vertices NOT currently selected. |
VertexSelector |
selectSimilar(java.util.Collection<? extends Vec3D> points)
Selects vertices identical or closest to the ones given in the list of points. |
abstract VertexSelector |
selectVertices()
Selects vertices using an implementation specific method. |
void |
setMesh(Mesh3D mesh)
Assigns a new mesh instance to this selector and clears the current selection. |
int |
size()
Returns the current number of selected vertices. |
VertexSelector |
subtractSelection(VertexSelector sel2)
Removes all vertices selected by the given selector from the current selection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VertexSelector(Mesh3D mesh)
mesh
- Method Detail |
---|
public VertexSelector addSelection(VertexSelector sel2)
sel2
- other selector
public VertexSelector clearSelection()
public Mesh3D getMesh()
public java.util.Collection<Vertex> getSelection()
public VertexSelector invertSelection()
public VertexSelector selectSimilar(java.util.Collection<? extends Vec3D> points)
points
-
public abstract VertexSelector selectVertices()
public void setMesh(Mesh3D mesh)
mesh
- the mesh to setpublic int size()
public VertexSelector subtractSelection(VertexSelector sel2)
sel2
- other selector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |