org.jcae.mesh.amibe.ds
Class MGroup3D

java.lang.Object
  extended by org.jcae.mesh.amibe.ds.MGroup3D

public class MGroup3D
extends java.lang.Object

Group of triangles in the 3D mesh.


Constructor Summary
MGroup3D(int i, java.lang.String n, java.util.Collection<Triangle> faces)
           
MGroup3D(java.lang.String n, java.util.Collection<Triangle> faces)
          Creates a group.
 
Method Summary
 java.util.Iterator<Triangle> getFacesIterator()
          Returns an iterator over the set of faces.
 int getId()
          Returns the group id.
 java.lang.String getName()
          Returns the group name.
 MGroup3D merge(MGroup3D that)
          Merges a group to this one
 int numberOfFaces()
          Returns the number of faces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MGroup3D

public MGroup3D(java.lang.String n,
                java.util.Collection<Triangle> faces)
Creates a group.

Parameters:
n - group name.
faces - set of faces.

MGroup3D

public MGroup3D(int i,
                java.lang.String n,
                java.util.Collection<Triangle> faces)
Method Detail

getName

public java.lang.String getName()
Returns the group name.

Returns:
the group name.

getId

public int getId()
Returns the group id.

Returns:
the group id.

getFacesIterator

public java.util.Iterator<Triangle> getFacesIterator()
Returns an iterator over the set of faces.

Returns:
an iterator over the set of faces.

numberOfFaces

public int numberOfFaces()
Returns the number of faces.

Returns:
the number of faces.

merge

public MGroup3D merge(MGroup3D that)
Merges a group to this one

Returns:
the merged group.