libsurf
Programmer's Documentation

Public Member Functions | Private Attributes | List of all members
DnVertex Class Reference

Detailed Description

Triangulation vertex.

Vertex representation which contains both the 3D position and the location of the point in the parameter plane (u,v). Hence, a DnVertex is always defined on a single parametric surface. The local surface normal is also stored.

See Also
DnMesh

#include <dnvertex.h>

Public Member Functions

 DnVertex ()
 undefined vertex
 
 DnVertex (const Surface &srf, const Vct2 &p)
 create a new vertex
 
const Vct2 & parpos () const
 access parameter position
 
const Vct3 & eval () const
 access 3D position on surface
 
const Vct3 & normal () const
 access surface normal vector
 
void displace (const Vct2 &p)
 move vertex in parameter plain only
 
void displace (const Surface &srf, const Vct2 &p)
 move vertex
 
uint attachTriangle (uint fi)
 append a triangle to neighbor list
 
void detachTriangle (uint fi)
 remove triangle from neighbor list
 
const Indices & nbTriangles () const
 neighbor triangles
 
void clearNeighbors ()
 remove all neighbors
 
bool canMoveTo (const DnVertexArray &vtx, const Vct2 &pt) const
 check if vertex can be moved to pt
 

Private Attributes

Vct3 xyz
 3D position and local surface normal
 
Vct3 nrm
 
Vct2 uv
 position in parameter space
 
Indices nbf
 list of triangles which share this vertex
 

The documentation for this class was generated from the following file:
Generated on Wed Jan 19 2022 03:03:16 for libsurf by   doxygen 1.8.5