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

DooSabin.cpp File Reference

#include "DooSabin.h"
#include "indexFace.h"
#include "indexEdge.h"
#include "indexVertex.h"
#include "mesh.h"
#include "meshGroup.h"

Include dependency graph for DooSabin.cpp:

Include dependency graph

Go to the source code of this file.

Classes

class  EdgeData
class  VertexData

Defines

#define IndexFace   indexFace
 Implementation of Doo-Sabin subdivision.

#define IndexEdge   indexEdge
#define IndexVertex   indexVertex

Functions

EdgeDatafind_edge_data (U32 v, Narray< EdgeData > &n)
U32 find_vertex_index (IndexFace &f, U32 v)
void create_boundary_vertices (Mesh &mm_mesh, IndexEdge &e, Narray< VertexData > &vertices, Narray< Narray< EdgeData > > &edge_children, U32 *es)
gmVector3 red (0.8, 0.2, 0.2)
gmVector3 green (0.2, 0.8, 0.2)
gmVector3 blue (0.2, 0.2, 0.8)


Define Documentation

#define IndexEdge   indexEdge
 

Definition at line 15 of file DooSabin.cpp.

#define IndexFace   indexFace
 

Implementation of Doo-Sabin subdivision.

Definition at line 14 of file DooSabin.cpp.

#define IndexVertex   indexVertex
 

Definition at line 16 of file DooSabin.cpp.

Referenced by DooSabin::subdivide().


Function Documentation

gmVector3 blue 0.  2,
0.  2,
0.  8
[static]
 

void create_boundary_vertices Mesh mm_mesh,
IndexEdge &  e,
Narray< VertexData > &  vertices,
Narray< Narray< EdgeData > > &  edge_children,
U32 es
[static]
 

Definition at line 84 of file DooSabin.cpp.

References Mesh::addNormal(), Mesh::addVertex(), find_vertex_index(), VertexData::i, IndexFace, EdgeData::new_v, VertexData::normal, U32, and EdgeData::v.

Referenced by DooSabin::subdivide().

EdgeData* find_edge_data U32  v,
Narray< EdgeData > &  n
[static]
 

Definition at line 55 of file DooSabin.cpp.

References U32.

Referenced by DooSabin::subdivide().

U32 find_vertex_index IndexFace &  f,
U32  v
[static]
 

Definition at line 70 of file DooSabin.cpp.

References U32.

Referenced by create_boundary_vertices(), and DooSabin::subdivide().

gmVector3 green 0.  2,
0.  8,
0.  2
[static]
 

Referenced by DooSabin::subdivide().

gmVector3 red 0.  8,
0.  2,
0.  2
[static]
 

Referenced by DooSabin::subdivide().


Generated on Mon Jun 28 14:58:51 2004 for Advanced Surface Library by doxygen 1.3.4