org.jcae.mesh.amibe.ds
Class SubMesh1D

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

public class SubMesh1D
extends java.lang.Object

1D discretization of a single topological edge. The SubMesh1D class represents a 1D discretization of topological edges. In order to ensure fitting in 3D space, edges are discretized only once even if they appear with several orientations.


Constructor Summary
SubMesh1D(BDiscretization d, MMesh0D m0d)
          Creates a SubMesh1D instance and initializes it with vertices found in a MMesh0D instance.
SubMesh1D(CADEdge E)
          Creates an empty SubMesh1D instance.
SubMesh1D(CADEdge E, MMesh0D m0d)
          Creates a SubMesh1D instance and initializes it with vertices found in a MMesh0D instance.
 
Method Summary
 java.util.ArrayList<MEdge1D> getEdges()
          Returns the list of edges.
 java.util.Iterator<MEdge1D> getEdgesIterator()
          Returns an iterator over the list of edges.
 CADEdge getGeometry()
          Returns the topological edge.
 java.util.ArrayList<MNode1D> getNodes()
          Returns the list of nodes.
 java.util.Iterator<MNode1D> getNodesIterator()
          Returns an iterator over the list of nodes.
 boolean isValid()
          Checks the validity of a 1D discretization.
 void printInfos()
          Prints edge lengths.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubMesh1D

public SubMesh1D(CADEdge E,
                 MMesh0D m0d)
Creates a SubMesh1D instance and initializes it with vertices found in a MMesh0D instance. The returned SubMesh1D instance can be seen as a very rough approximation of the geometrical edge, which can be refined via algorithms found in org.jcae.mesh.amibe.algos1d.

Parameters:
E - the topological edge being disretized,
m0d - the mesh containing all vertices

SubMesh1D

public SubMesh1D(BDiscretization d,
                 MMesh0D m0d)
Creates a SubMesh1D instance and initializes it with vertices found in a MMesh0D instance. The returned SubMesh1D instance can be seen as a very rough approximation of the geometrical edge, which can be refined via algorithms found in org.jcae.mesh.amibe.algos1d.

Parameters:
d - container for the requested discretization
m0d - the mesh containing all vertices

SubMesh1D

public SubMesh1D(CADEdge E)
Creates an empty SubMesh1D instance.

Parameters:
E - the topological edge being disretized,
Method Detail

getGeometry

public CADEdge getGeometry()
Returns the topological edge.

Returns:
the topological edge.

getEdges

public java.util.ArrayList<MEdge1D> getEdges()
Returns the list of edges.

Returns:
the list of edges.

getNodes

public java.util.ArrayList<MNode1D> getNodes()
Returns the list of nodes.

Returns:
the list of nodes.

getEdgesIterator

public java.util.Iterator<MEdge1D> getEdgesIterator()
Returns an iterator over the list of edges.

Returns:
an iterator over the list of edges.

getNodesIterator

public java.util.Iterator<MNode1D> getNodesIterator()
Returns an iterator over the list of nodes.

Returns:
an iterator over the list of nodes.

isValid

public boolean isValid()
Checks the validity of a 1D discretization. This method is called within assertions, this is why it returns a boolean.

Returns:
true if all checks pass.
Throws:
AssertException - if a check fails.

printInfos

public void printInfos()
Prints edge lengths.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object