org.jcae.mesh.amibe.ds
Class MMesh0D

java.lang.Object
  extended by org.jcae.mesh.amibe.ds.MMesh0D
Direct Known Subclasses:
MMesh1D

public class MMesh0D
extends java.lang.Object

List of vertices of the whole shape. A MMesh0D instance is a list of vertices. All topological vertices which share the same location are merged into a unique vertex, and MMesh0D contains the list of these unique vertices.


Field Summary
protected  CADShape shape
           
 
Constructor Summary
MMesh0D(BModel model)
          Creates one node for each different discretization of the BCADGraphCell of type Vertex The current method may be unnecessary: even if there are many discretizations on a 0D Vertex, we may want to use the same CADVertex.
MMesh0D(CADShape s)
          Creates a MMesh0D instance by merging all topological vertices which have the same location.
 
Method Summary
 BDiscretization getChildDiscretization(CADVertex V, BCADGraphCell pcell, BDiscretization pd)
          Returns the discretization of CADVertex V related to parent discretization pd on cell
 CADVertex getGeometricalVertex(CADVertex V)
          Returns the vertex which has the same location as the argument.
 CADVertex getGeometricalVertex(int index)
          Returns the vertex represented by its index.
 int getIndexGeometricalVertex(CADVertex V)
          Returns an index of the vertex which has the same location as the argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shape

protected CADShape shape
Constructor Detail

MMesh0D

public MMesh0D(CADShape s)
Creates a MMesh0D instance by merging all topological vertices which have the same location.

Parameters:
s - topological shape

MMesh0D

public MMesh0D(BModel model)
Creates one node for each different discretization of the BCADGraphCell of type Vertex The current method may be unnecessary: even if there are many discretizations on a 0D Vertex, we may want to use the same CADVertex. However, as we need the method public MMesh1D(BModel model) we have to define a method public MMesh0D(BModel model)

Method Detail

getGeometricalVertex

public CADVertex getGeometricalVertex(CADVertex V)
Returns the vertex which has the same location as the argument. This method must be used by 1D algos to ensure that vertices are unique.

Parameters:
V - vertex
Returns:
the vertex which has the same location as V.

getChildDiscretization

public BDiscretization getChildDiscretization(CADVertex V,
                                              BCADGraphCell pcell,
                                              BDiscretization pd)
Returns the discretization of CADVertex V related to parent discretization pd on cell

Parameters:
V - vertex
pcell - graphcell of a parent edge of V
pd - discretization of cell, parent discretization
Returns:
child discretization on V

getIndexGeometricalVertex

public int getIndexGeometricalVertex(CADVertex V)
Returns an index of the vertex which has the same location as the argument.

Parameters:
V - vertex
Returns:
the index of the vertex which has the same location as V.

getGeometricalVertex

public CADVertex getGeometricalVertex(int index)
Returns the vertex represented by its index.

Parameters:
index - the index of the vertex.
Returns:
the geometrical vertex.