net.von_gagern.martin.confoo.conformal
Class ResultMesh<V>

java.lang.Object
  extended by net.von_gagern.martin.confoo.conformal.ResultMesh<V>
Type Parameters:
V - the class used to represent vertices of the mesh
All Implemented Interfaces:
CombinatoricMesh<V>, LocatedMesh<V>, MetricMesh<V>

public class ResultMesh<V>
extends Object
implements LocatedMesh<V>

Representation of a transformed mesh.

This map is returned as the result of a transformation. Its vertices are the same as those of the input mesh, bur its coordinates come from the transformed mesh.

This class has no public constructor, as it is only ever returned by methods of classes in this package.

Since:
1.1
Author:
Martin von Gagern
See Also:
Conformal.transform()

Method Summary
 double edgeLength(V v1, V v2)
          Get edge length.
 double getU(V v)
          Get the parameter u associated with this vertex.
 double getX(V v)
          Get x coordinate of vertex.
 double getY(V v)
          Get y coordinate of vertex.
 double getZ(V v)
          Get z coordinate of vertex.
 MeshIterator<V> iterator()
          Get iterator over all triangles of the mesh.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getX

public double getX(V v)
Get x coordinate of vertex.

Specified by:
getX in interface LocatedMesh<V>
Parameters:
v - a vertex of the mesh
Returns:
the x coordinate of that vertex

getY

public double getY(V v)
Get y coordinate of vertex.

Specified by:
getY in interface LocatedMesh<V>
Parameters:
v - a vertex of the mesh
Returns:
the y coordinate of that vertex

getZ

public double getZ(V v)
Get z coordinate of vertex.

Specified by:
getZ in interface LocatedMesh<V>
Parameters:
v - a vertex of the mesh
Returns:
the z coordinate of that vertex

getU

public double getU(V v)
Get the parameter u associated with this vertex. eu/2 is the factor by which edges adjacent to a given vertex will be scaled.

Parameters:
v - a vertex of the mesh
Returns:
the parameter u associated with that vertex

edgeLength

public double edgeLength(V v1,
                         V v2)
Get edge length.

Specified by:
edgeLength in interface MetricMesh<V>
Parameters:
v1 - one vertex of the mesh
v2 - a vertex adjacent to v1
Returns:
the length of the edge between the two vertices

iterator

public MeshIterator<V> iterator()
Get iterator over all triangles of the mesh.

Specified by:
iterator in interface CombinatoricMesh<V>
Returns:
an iterator over the triangles of this mesh
See Also:
Iterable.iterator(), MeshIterator


Copyright © 2008-2009 Martin von Gagern. All Rights Reserved.