org.jcae.mesh.amibe.ds
Class ElementFactory

java.lang.Object
  extended by org.jcae.mesh.amibe.ds.ElementFactory
All Implemented Interfaces:
ElementFactoryInterface

public class ElementFactory
extends java.lang.Object
implements ElementFactoryInterface


Constructor Summary
ElementFactory(MeshTraitsBuilder mtb)
           
 
Method Summary
 AbstractHalfEdge createHalfEdge(TriangleHE t, byte orientation, byte attributes)
           
 Triangle createTriangle(Triangle that)
          Clone an existing triangle.
 Triangle createTriangle(Vertex[] v)
           
 Triangle createTriangle(Vertex v0, Vertex v1, Vertex v2)
           
 Vertex createVertex(double[] x)
           
 Vertex createVertex(double u, double v)
           
 Vertex createVertex(double x, double y, double z)
           
 boolean hasAdjacency()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementFactory

public ElementFactory(MeshTraitsBuilder mtb)
Method Detail

createVertex

public Vertex createVertex(double u,
                           double v)
Specified by:
createVertex in interface ElementFactoryInterface

createVertex

public Vertex createVertex(double x,
                           double y,
                           double z)
Specified by:
createVertex in interface ElementFactoryInterface

createVertex

public Vertex createVertex(double[] x)
Specified by:
createVertex in interface ElementFactoryInterface

createHalfEdge

public AbstractHalfEdge createHalfEdge(TriangleHE t,
                                       byte orientation,
                                       byte attributes)

createTriangle

public Triangle createTriangle(Vertex v0,
                               Vertex v1,
                               Vertex v2)
Specified by:
createTriangle in interface ElementFactoryInterface

createTriangle

public Triangle createTriangle(Vertex[] v)
Specified by:
createTriangle in interface ElementFactoryInterface

createTriangle

public Triangle createTriangle(Triangle that)
Clone an existing triangle.

Specified by:
createTriangle in interface ElementFactoryInterface

hasAdjacency

public boolean hasAdjacency()
Specified by:
hasAdjacency in interface ElementFactoryInterface