Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

A48::Surface Class Reference

The the abstract class Surface defines a interface to multi-resolution surface. More...

#include <mesh.h>

List of all members.

Public Member Functions

virtual void base_mesh (int *np, int **fcs, int *nf)=0
 Specifies base mesh geometry and topology (the coarsest resolution level).

virtual void sample (int i, Vertex *v)=0
 Specifies vertex attributes (geometry, color, normal, prioriry) of index i.

virtual void sample (Edge *e, Vertex *v)=0
 Receives edge pointer and calculates vertex coordinate.

virtual void sample (Face *f, Vertex *v)=0
 Receives a face pointer and calculates vertex coordinate.

virtual float elenght (Edge *e)=0
 Returns the edge length.

virtual float ref_rank (Edge *e)=0
 Returns the rank for split edge operation.

virtual float simpl_rank (Vertex *v)=0
 Return the rank for weld vertex operation.

virtual Vertexnew_vertex (void)=0
 Creates new vertex.

virtual void del_vertex (Vertex *v)=0
 Removes vertex.


Detailed Description

The the abstract class Surface defines a interface to multi-resolution surface.

The Surface class provides information to the adative mesh. The interface describes a set of operations to build the base mesh, control the surface resolution and provide geometric information.

Definition at line 21 of file mesh.h.


Member Function Documentation

virtual void A48::Surface::base_mesh int *  np,
int **  fcs,
int *  nf
[pure virtual]
 

Specifies base mesh geometry and topology (the coarsest resolution level).

Parameters:
np Pointer to number of vertices.
fcs Pointer to array of indices that describes the mesh connectivity.
nf Pointer to number of faces.

Referenced by A48::Mesh::Mesh().

virtual void A48::Surface::del_vertex Vertex v  )  [pure virtual]
 

Removes vertex.

Parameters:
v Vertex pointer.

Referenced by A48::Mesh::del_vertex().

virtual float A48::Surface::elenght Edge e  )  [pure virtual]
 

Returns the edge length.

Parameters:
e Edge pointer.
Returns:
Return the edge length.

Referenced by node::node().

virtual Vertex* A48::Surface::new_vertex void   )  [pure virtual]
 

Creates new vertex.

Returns:
Vertex pointer.

Referenced by A48::Mesh::add_vertex(), and A48::Mesh::set_base_mesh().

virtual float A48::Surface::ref_rank Edge e  )  [pure virtual]
 

Returns the rank for split edge operation.

Parameters:
e Edge pointer.
Returns:
Return the split priority.

virtual void A48::Surface::sample Face f,
Vertex v
[pure virtual]
 

Receives a face pointer and calculates vertex coordinate.

Parameters:
f Face pointer.
v Vertex pointer.

virtual void A48::Surface::sample Edge e,
Vertex v
[pure virtual]
 

Receives edge pointer and calculates vertex coordinate.

Parameters:
e Edge pointer.
v Vertex pointer.

virtual void A48::Surface::sample int  i,
Vertex v
[pure virtual]
 

Specifies vertex attributes (geometry, color, normal, prioriry) of index i.

Parameters:
i Index of the vertex.
v Vertex pointer.

Referenced by A48::Mesh::bisect(), A48::Mesh::set_base_mesh(), and A48::Mesh::split().

virtual float A48::Surface::simpl_rank Vertex v  )  [pure virtual]
 

Return the rank for weld vertex operation.

Parameters:
v Vertex pointer.
Returns:
Return the the weld priority.


The documentation for this class was generated from the following file:
Generated on Mon Oct 11 19:32:38 2004 for A48 by doxygen 1.3.7