|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jvx.geom.PwBary
Static methods that handle barycentric coordinates on triangulated element sets.
| Constructor Summary | |
PwBary()
|
|
| Method Summary | |
static PdBaryDir[] |
getGeodRepresentation(PgElementSet geom,
int origElem,
PdBaryDir origDir,
int localvertexindex,
PiVector elements,
PiVector localind)
Calculates the representations of a given vector in all elements of a vertex star by completion to a unnormalized angle of theta/2. |
static double |
getOrientedAngle(PgElementSet geom,
int elemInd,
PdBaryDir a,
PdBaryDir b,
boolean recalc)
Oriented angle between two barycentric vectors. |
static PdBaryDir[] |
getProjRepresentation(PgElementSet geom,
int origElem,
PdBaryDir origDir,
int localvertexindex,
PiVector elements,
PiVector locind)
Calculates the representations of a given vector in all elements of a vertex star by projection onto the plane the element lays in. |
static PdBaryDir[] |
getTransRepresentation(PgElementSet geom,
int origElem,
PdBaryDir origDir,
int localvertexindex,
PiVector elements,
PiVector locind)
Calculates the representations of a given vector in all elements of a vertex star by parallel translation along a straightest geodesic (half angles). |
static double |
getTransRepresentationValues(PgElementSet geom,
int origElem,
PdBaryDir origDir,
int localvertexindex,
PiVector elements,
PiVector locind,
PdVector betas)
Calculates the values (beta,theta) of a given vector in all elements of a vertex star by parallel translation along a straightest geodesic. |
static double |
getVertexAngles(PgVertexStar star,
PgElementSet geom,
PdVector angles)
Calculates inner angles of the elements of a vertexstar. |
static int |
liesOnVertex(PdBary pos)
Checks if given barycentric position lies on any vertex |
static double |
norm(PgElementSet geom,
int elemInd,
PdBaryDir x,
boolean forceRecalc)
Euklidian norm of two intrinsic (barycentric) vectors. |
static void |
projectOntoElement(PgElementSet geom,
int elemInd,
PdVector dir,
PdBaryDir outdir)
Projects given vector onto elements plane. |
static int |
rotateAtVertex(PgElementSet geom,
int elemind,
int localvertexind,
PdBaryDir dir,
PdBaryDir outdir,
PdBary bary,
double angle)
Rotates direction at vertex in same orientation as the star. |
static void |
rotateInElement(PgElementSet geom,
int elemInd,
PdBaryDir dir,
double angle,
PdBaryDir outdir,
boolean recalc)
Rotates direction in same orientation as the element's. |
static double |
scalar(PgElementSet geom,
int elemInd,
PdBaryDir x,
PdBaryDir y,
boolean forceRecalc)
Computes scalar product of barycentric directions in world coordinates, that means the scalar product of the vectors in euklidian space. |
static boolean |
showsIntoElement(PdBaryDir dir,
int vertexindex)
Checks if given barycentric vector shows into it's element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PwBary()
| Method Detail |
public static double scalar(PgElementSet geom,
int elemInd,
PdBaryDir x,
PdBaryDir y,
boolean forceRecalc)
scalar and parameter forceRecalc == false
then some calculations are skipped.geom - geometry the barycentric directions live onelemInd - element the barycentric directions live onx - one directiony - other directionforceRecalc - if true all variables are forced two be recalculated; should only
be used if the geometry may not be the same (in world coordinates) as in previous calls
public static double norm(PgElementSet geom,
int elemInd,
PdBaryDir x,
boolean forceRecalc)
geom - the geometry the barycentric direction lives onelemInd - the element the barycentric direction lives onx - barycentric vectorrecalc - used for scalar productscalar(jv.geom.PgElementSet, int, jv.vecmath.PdBaryDir, jv.vecmath.PdBaryDir, boolean)
public static double getVertexAngles(PgVertexStar star,
PgElementSet geom,
PdVector angles)
star - the stargeom - the geometryangles - output: vertex angles of star. if necessary it is resized.
public static PdBaryDir[] getGeodRepresentation(PgElementSet geom,
int origElem,
PdBaryDir origDir,
int localvertexindex,
PiVector elements,
PiVector localind)
geom - triangulationorigElem - element in which the vector is givenorigDir - vector that will be translated to the other elementslocalvertexindex - local index in origElem of the vertex
at which the vector is givenelements - output: global element indices of the vertex starlocalind - output: local vertex indices of common vertex in elements at vertex star
public static PdBaryDir[] getTransRepresentation(PgElementSet geom,
int origElem,
PdBaryDir origDir,
int localvertexindex,
PiVector elements,
PiVector locind)
geom - triangulationorigElem - element in which the vector is givenorigDir - vector that will be translated to the other elementslocalvertexindex - the local index in origElem of the vertex in which the vector is givenelements - output: global element indices of the vertex starlocind - output: local vertex indices of the vertex star
public static double getTransRepresentationValues(PgElementSet geom,
int origElem,
PdBaryDir origDir,
int localvertexindex,
PiVector elements,
PiVector locind,
PdVector betas)
geom - set of elementsorigElem - element in which the vector is givenorigDir - vector that will be translated to the other elementslocalvertexindex - the local index in origElem of the vertex in which the vector is givenelements - output: global element indices of the vertex star, beginning with origElemlocind - output: local indices of common vertex of star, beginning with localvertexindexbetas - output: beta values
public static PdBaryDir[] getProjRepresentation(PgElementSet geom,
int origElem,
PdBaryDir origDir,
int localvertexindex,
PiVector elements,
PiVector locind)
geom - set of elementsorigElem - element on which the vector is givenorigDir - vector that will be translated to the other elementslocalvertexindex - the local index in origElem of the vertex in which the vector is givenelements - output: global element indicee of the vertex starlocind - output: local vertex indices of the vertex star
public static void projectOntoElement(PgElementSet geom,
int elemInd,
PdVector dir,
PdBaryDir outdir)
geom - underlying geometryelemInd - global element indexdir - in world coordinatesoutdir - output: barycentric coordinates of the projected vector
public static double getOrientedAngle(PgElementSet geom,
int elemInd,
PdBaryDir a,
PdBaryDir b,
boolean recalc)
geom - underlying geometryelemInd - global element indexa - first vectorb - second vectorrecalc - used for scalar producta must be rotated
against the orientation of the triangle; -3*PI if an error occurredscalar(jv.geom.PgElementSet, int, jv.vecmath.PdBaryDir, jv.vecmath.PdBaryDir, boolean)
public static void rotateInElement(PgElementSet geom,
int elemInd,
PdBaryDir dir,
double angle,
PdBaryDir outdir,
boolean recalc)
geom - underlying geometryelemInd - element on that vector liesdir - barycentric directionangle - radoutdir - output: result of rotationrecalc - used for scalar productscalar(jv.geom.PgElementSet, int, jv.vecmath.PdBaryDir, jv.vecmath.PdBaryDir, boolean)
public static int rotateAtVertex(PgElementSet geom,
int elemind,
int localvertexind,
PdBaryDir dir,
PdBaryDir outdir,
PdBary bary,
double angle)
geom - underlying geometryelemind - global element indexlocalvertexind - local index of vertex that is base of the rotationdir - original vectoroutdir - output: result of rotationbary - output: barycentric coordinates of the base point of the resultangle - normalized angle [0;2*PI] ^= 360°
public static boolean showsIntoElement(PdBaryDir dir,
int vertexindex)
dir - barycentric vector that shall be checkedvertexindex - local vertex index that is the base of the directionpublic static int liesOnVertex(PdBary pos)
pos - barycentric pointjv.vecmath.PuMath.EPS-sphere around any vertex;
|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||