HE_Mesh2014  2.0.11
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
wblut.hemesh.HE_Vertex Class Reference
+ Inheritance diagram for wblut.hemesh.HE_Vertex:

Public Member Functions

 HE_Vertex ()
 
 HE_Vertex (final double x, final double y, final double z)
 
 HE_Vertex (final WB_Coordinate v)
 
HE_Vertex get ()
 
HE_Halfedge getHalfedge ()
 
void setHalfedge (final HE_Halfedge halfedge)
 
void set (final HE_Vertex v)
 
WB_Point getOffset (final double d)
 
WB_ClassificationConvex getVertexType ()
 
String toString ()
 
void clearHalfedge ()
 
long key ()
 
List< HE_HalfedgegetHalfedgeStar ()
 
List< HE_HalfedgegetEdgeStar ()
 
List< HE_FacegetFaceStar ()
 
List< HE_VertexgetNeighborVertices ()
 
List< HE_VertexgetVertexStar ()
 
List< HE_VertexgetNextNeighborVertices ()
 
WB_Point[] getNeighborsAsPoints ()
 
int getVertexOrder ()
 
double getVertexArea ()
 
void setData (final String s, final Object o)
 
Object getData (final String s)
 
boolean isBoundary ()
 
WB_Point getPoint ()
 
double xd ()
 
double yd ()
 
double zd ()
 
double wd ()
 
double getd (final int i)
 
float xf ()
 
float yf ()
 
float zf ()
 
float wf ()
 
float getf (final int i)
 
int compareTo (final WB_Coordinate p)
 
void apply (final WB_Transform T)
 
void setX (final double x)
 
void setY (final double y)
 
void setZ (final double z)
 
void setW (final double w)
 
void setCoord (final int i, final double v)
 
void set (final WB_Coordinate p)
 
void set (final double x, final double y)
 
void set (final double x, final double y, final double z)
 
void set (final double x, final double y, final double z, final double w)
 
int getColor ()
 
void setColor (final int color)
 
WB_CoordinateSystem getCS ()
 
WB_Vector getVertexNormal ()
 
double getGaussianCurvature (final WB_Vector meanCurvatureVector)
 
double getGaussianCurvature ()
 
WB_CoordinateSystem getCurvatureDirections ()
 
void copyProperties (final HE_Vertex el)
 
void clear ()
 
double getUmbrellaAngle ()
 
HE_Halfedge getHalfedge (final HE_Face f)
 
void clearUVW ()
 
void setUVW (final double u, final double v, final double w)
 
void setUVW (final WB_Coordinate uvw)
 
void setUVW (final HE_TextureCoordinate uvw)
 
boolean hasTexture (final HE_Face f)
 
boolean hasVertexTexture ()
 
boolean hasHalfedgeTexture (final HE_Face f)
 
HE_TextureCoordinate getVertexUVW ()
 
HE_TextureCoordinate getHalfedgeUVW (final HE_Face f)
 
HE_TextureCoordinate getUVW (final HE_Face f)
 
- Public Member Functions inherited from wblut.hemesh.HE_Element
 HE_Element ()
 
final void setInternalLabel (final int label)
 
final void setLabel (final int label)
 
final long getKey ()
 
final int getInternalLabel ()
 
final int getLabel ()
 
int hashCode ()
 
boolean equals (final Object other)
 
void copyProperties (final HE_Element el)
 
abstract void clear ()
 
- Public Member Functions inherited from wblut.geom.WB_MutableCoordinate
void setX (double x)
 
void setY (double y)
 
void setZ (double z)
 
void setW (double w)
 
void setCoord (int i, double v)
 
void set (WB_Coordinate p)
 
void set (double x, double y)
 
void set (double x, double y, double z)
 
void set (double x, double y, double z, double w)
 
- Public Member Functions inherited from wblut.geom.WB_Coordinate
double getd (int i)
 
float getf (int i)
 
- Public Member Functions inherited from wblut.geom.WB_HasData
Object getData (String s)
 
void setData (String s, Object o)
 
- Public Member Functions inherited from wblut.geom.WB_HasColor
void setColor (int color)
 

Static Public Member Functions

static int compare (final double a, final double b)
 

Private Member Functions

WB_Vector findOptimalSolution (final WB_Vector normal, final WB_Vector t1, final WB_Vector t2)
 

Static Private Member Functions

static double computeNormal3D (final WB_Point p0, final WB_Point p1, final WB_Point p2, WB_Vector tempD1, WB_Vector tempD2, final WB_Vector ret)
 

Private Attributes

WB_Point pos
 
HE_Halfedge _halfedge
 
HashMap< String, Object > _data
 
int vertexcolor
 
HE_TextureCoordinate uvw = null
 

Additional Inherited Members

- Protected Attributes inherited from wblut.hemesh.HE_Element
final long _key
 
- Static Protected Attributes inherited from wblut.hemesh.HE_Element
static long _currentKey
 
static final WB_GeometryFactory geometryfactory
 

Detailed Description

Vertex element of half-edge mesh.

Author
Frederik Vanhoutte (W:Blut)

Constructor & Destructor Documentation

wblut.hemesh.HE_Vertex.HE_Vertex ( )

Instantiates a new HE_Vertex.

wblut.hemesh.HE_Vertex.HE_Vertex ( final double  x,
final double  y,
final double  z 
)

Instantiates a new HE_Vertex at position x, y, z.

Parameters
xx-coordinate of vertex
yy-coordinate of vertex
zz-coordinate of vertex
wblut.hemesh.HE_Vertex.HE_Vertex ( final WB_Coordinate  v)

Instantiates a new HE_Vertex at position v.

Parameters
vposition of vertex

Member Function Documentation

void wblut.hemesh.HE_Vertex.apply ( final WB_Transform  T)
Parameters
T
void wblut.hemesh.HE_Vertex.clear ( )
void wblut.hemesh.HE_Vertex.clearHalfedge ( )

Clear halfedge.

void wblut.hemesh.HE_Vertex.clearUVW ( )
static int wblut.hemesh.HE_Vertex.compare ( final double  a,
final double  b 
)
static
Parameters
a
b
Returns
int wblut.hemesh.HE_Vertex.compareTo ( final WB_Coordinate  p)
Parameters
p
Returns
static double wblut.hemesh.HE_Vertex.computeNormal3D ( final WB_Point  p0,
final WB_Point  p1,
final WB_Point  p2,
WB_Vector  tempD1,
WB_Vector  tempD2,
final WB_Vector  ret 
)
staticprivate
Parameters
p0
p1
p2
tempD1
tempD2
ret
Returns
void wblut.hemesh.HE_Vertex.copyProperties ( final HE_Vertex  el)
Parameters
el
WB_Vector wblut.hemesh.HE_Vertex.findOptimalSolution ( final WB_Vector  normal,
final WB_Vector  t1,
final WB_Vector  t2 
)
private
Parameters
normal
t1
t2
Returns
HE_Vertex wblut.hemesh.HE_Vertex.get ( )
Returns
int wblut.hemesh.HE_Vertex.getColor ( )
Returns

Implements wblut.geom.WB_HasColor.

WB_CoordinateSystem wblut.hemesh.HE_Vertex.getCS ( )
Returns
WB_CoordinateSystem wblut.hemesh.HE_Vertex.getCurvatureDirections ( )
Returns
double wblut.hemesh.HE_Vertex.getd ( final int  i)
Object wblut.hemesh.HE_Vertex.getData ( final String  s)
List<HE_Halfedge> wblut.hemesh.HE_Vertex.getEdgeStar ( )

Get edges in vertex.

Returns
edges
float wblut.hemesh.HE_Vertex.getf ( final int  i)
List<HE_Face> wblut.hemesh.HE_Vertex.getFaceStar ( )

Get faces in vertex.

Returns
faces
double wblut.hemesh.HE_Vertex.getGaussianCurvature ( final WB_Vector  meanCurvatureVector)

Returns the discrete Gaussian curvature and the mean normal. These discrete operators are described in "Discrete Differential-Geometry Operators for Triangulated 2-Manifolds", Mark Meyer, Mathieu Desbrun, Peter Schr�der, and Alan H. Barr. http://www.cs.caltech.edu/~mmeyer/Publications/diffGeomOps.pdf http://www.cs.caltech.edu/~mmeyer/Publications/diffGeomOps.pdf Note: on a sphere, the Gaussian curvature is very accurate, but not the mean curvature. Guoliang Xu suggests improvements in his papers http://lsec.cc.ac.cn/~xuguo/xuguo3.htm

Parameters
meanCurvatureVector
Returns
double wblut.hemesh.HE_Vertex.getGaussianCurvature ( )

Returns the discrete Gaussian curvature. These discrete operators are described in "Discrete Differential-Geometry Operators for Triangulated 2-Manifolds", Mark Meyer, Mathieu Desbrun, Peter Schr�der, and Alan H. Barr. http://www.cs.caltech.edu/~mmeyer/Publications/diffGeomOps.pdf http://www.cs.caltech.edu/~mmeyer/Publications/diffGeomOps.pdf Note: on a sphere, the Gaussian curvature is very accurate, but not the mean curvature. Guoliang Xu suggests improvements in his papers http://lsec.cc.ac.cn/~xuguo/xuguo3.htm

Returns
HE_Halfedge wblut.hemesh.HE_Vertex.getHalfedge ( )

Get halfedge associated with this vertex.

Returns
halfedge
HE_Halfedge wblut.hemesh.HE_Vertex.getHalfedge ( final HE_Face  f)
List<HE_Halfedge> wblut.hemesh.HE_Vertex.getHalfedgeStar ( )

Get halfedges in vertex.

Returns
halfedges
HE_TextureCoordinate wblut.hemesh.HE_Vertex.getHalfedgeUVW ( final HE_Face  f)
WB_Point [] wblut.hemesh.HE_Vertex.getNeighborsAsPoints ( )

Gets the neighbors as points.

Returns
the neighbors as points
List<HE_Vertex> wblut.hemesh.HE_Vertex.getNeighborVertices ( )

Get neighboring vertices.

Returns
neighbors
List<HE_Vertex> wblut.hemesh.HE_Vertex.getNextNeighborVertices ( )
Returns
WB_Point wblut.hemesh.HE_Vertex.getOffset ( final double  d)
Parameters
d
Returns
WB_Point wblut.hemesh.HE_Vertex.getPoint ( )
Returns
double wblut.hemesh.HE_Vertex.getUmbrellaAngle ( )
Returns
HE_TextureCoordinate wblut.hemesh.HE_Vertex.getUVW ( final HE_Face  f)
double wblut.hemesh.HE_Vertex.getVertexArea ( )

Get area of faces bounding vertex.

Returns
area
WB_Vector wblut.hemesh.HE_Vertex.getVertexNormal ( )
Returns
int wblut.hemesh.HE_Vertex.getVertexOrder ( )

Get number of edges in vertex.

Returns
number of edges
List<HE_Vertex> wblut.hemesh.HE_Vertex.getVertexStar ( )
Returns
WB_ClassificationConvex wblut.hemesh.HE_Vertex.getVertexType ( )

Get vertex type. Returns stored value if update status is true.

Returns
HE.VertexType.FLAT: vertex is flat in all faces, HE.VertexType.CONVEX: vertex is convex in all faces, HE.VertexType.CONCAVE: vertex is concave in all faces, HE.VertexType.FLATCONVEX: vertex is convex or flat in all faces, HE.VertexType.FLATCONCAVE: vertex is concave or flat in all faces, HE.VertexType.SADDLE: vertex is convex and concave in at least one face each
HE_TextureCoordinate wblut.hemesh.HE_Vertex.getVertexUVW ( )
boolean wblut.hemesh.HE_Vertex.hasHalfedgeTexture ( final HE_Face  f)
boolean wblut.hemesh.HE_Vertex.hasTexture ( final HE_Face  f)
boolean wblut.hemesh.HE_Vertex.hasVertexTexture ( )
boolean wblut.hemesh.HE_Vertex.isBoundary ( )

Checks if is boundary.

Returns
true, if is boundary
long wblut.hemesh.HE_Vertex.key ( )

Get key.

Returns
key
void wblut.hemesh.HE_Vertex.set ( final HE_Vertex  v)

Set position to v.

Parameters
vposition
void wblut.hemesh.HE_Vertex.set ( final WB_Coordinate  p)
void wblut.hemesh.HE_Vertex.set ( final double  x,
final double  y 
)
void wblut.hemesh.HE_Vertex.set ( final double  x,
final double  y,
final double  z 
)
void wblut.hemesh.HE_Vertex.set ( final double  x,
final double  y,
final double  z,
final double  w 
)
void wblut.hemesh.HE_Vertex.setColor ( final int  color)
void wblut.hemesh.HE_Vertex.setCoord ( final int  i,
final double  v 
)
void wblut.hemesh.HE_Vertex.setData ( final String  s,
final Object  o 
)
void wblut.hemesh.HE_Vertex.setHalfedge ( final HE_Halfedge  halfedge)

Sets the halfedge associated with this vertex.

Parameters
halfedgethe new halfedge
void wblut.hemesh.HE_Vertex.setUVW ( final double  u,
final double  v,
final double  w 
)
void wblut.hemesh.HE_Vertex.setUVW ( final WB_Coordinate  uvw)
void wblut.hemesh.HE_Vertex.setUVW ( final HE_TextureCoordinate  uvw)
void wblut.hemesh.HE_Vertex.setW ( final double  w)
void wblut.hemesh.HE_Vertex.setX ( final double  x)
void wblut.hemesh.HE_Vertex.setY ( final double  y)
void wblut.hemesh.HE_Vertex.setZ ( final double  z)
String wblut.hemesh.HE_Vertex.toString ( )
double wblut.hemesh.HE_Vertex.wd ( )

Get w as double.

Returns
w

Implements wblut.geom.WB_Coordinate.

float wblut.hemesh.HE_Vertex.wf ( )

Get w as float.

Returns
w

Implements wblut.geom.WB_Coordinate.

double wblut.hemesh.HE_Vertex.xd ( )

Get x as double.

Returns
x

Implements wblut.geom.WB_Coordinate.

float wblut.hemesh.HE_Vertex.xf ( )

Get x as float.

Returns
x

Implements wblut.geom.WB_Coordinate.

double wblut.hemesh.HE_Vertex.yd ( )

Get y as double.

Returns
y

Implements wblut.geom.WB_Coordinate.

float wblut.hemesh.HE_Vertex.yf ( )

Get y as float.

Returns
y

Implements wblut.geom.WB_Coordinate.

double wblut.hemesh.HE_Vertex.zd ( )

Get z as double.

Returns
z

Implements wblut.geom.WB_Coordinate.

float wblut.hemesh.HE_Vertex.zf ( )

Get z as float.

Returns
z

Implements wblut.geom.WB_Coordinate.

Member Data Documentation

HashMap<String, Object> wblut.hemesh.HE_Vertex._data
private

The _data.

HE_Halfedge wblut.hemesh.HE_Vertex._halfedge
private

Halfedge associated with this vertex.

WB_Point wblut.hemesh.HE_Vertex.pos
private
HE_TextureCoordinate wblut.hemesh.HE_Vertex.uvw = null
private
int wblut.hemesh.HE_Vertex.vertexcolor
private

The documentation for this class was generated from the following file: