Blender V2.61 - r43446
Public Member Functions | Public Attributes

EdgeDice Class Reference

#include <subd_dice.h>

Inheritance diagram for EdgeDice:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 EdgeDice (Mesh *mesh, int shader, bool smooth, float dicing_rate)
void reserve (int num_verts, int num_tris)
int add_vert (Patch *patch, float2 uv)
void add_triangle (int v0, int v1, int v2)
void stitch_triangles (vector< int > &outer, vector< int > &inner)

Public Attributes

Cameracamera
Meshmesh
float3mesh_P
float3mesh_N
float dicing_rate
size_t vert_offset
size_t tri_offset
int shader
bool smooth

Detailed Description

Definition at line 38 of file subd_dice.h.


Constructor & Destructor Documentation

CCL_NAMESPACE_BEGIN EdgeDice::EdgeDice ( Mesh mesh,
int  shader,
bool  smooth,
float  dicing_rate 
)

Member Function Documentation

void EdgeDice::add_triangle ( int  v0,
int  v1,
int  v2 
)

Definition at line 73 of file subd_dice.cpp.

References Mesh::add_triangle(), mesh, shader, and smooth.

Referenced by QuadDice::add_grid(), TriangleDice::add_grid(), and stitch_triangles().

int EdgeDice::add_vert ( Patch patch,
float2  uv 
)

Definition at line 58 of file subd_dice.cpp.

References assert, cross(), Patch::eval(), mesh_N, mesh_P, N, normalize(), P(), vert_offset, float2::x, and float2::y.

void EdgeDice::reserve ( int  num_verts,
int  num_tris 
)
void EdgeDice::stitch_triangles ( vector< int > &  outer,
vector< int > &  inner 
)

Definition at line 78 of file subd_dice.cpp.

References add_triangle(), i, len(), and mesh_P.

Referenced by TriangleDice::add_grid(), and QuadDice::dice().


Member Data Documentation

Definition at line 44 of file subd_dice.h.

Referenced by EdgeDice(), and QuadDice::scale_factor().

Definition at line 41 of file subd_dice.h.

Referenced by add_triangle(), TriangleDice::dice(), QuadDice::dice(), EdgeDice(), and reserve().

Definition at line 43 of file subd_dice.h.

Referenced by add_vert(), EdgeDice(), and reserve().

Definition at line 42 of file subd_dice.h.

Referenced by add_vert(), EdgeDice(), reserve(), and stitch_triangles().

Definition at line 47 of file subd_dice.h.

Referenced by add_triangle(), and EdgeDice().

Definition at line 48 of file subd_dice.h.

Referenced by add_triangle(), and EdgeDice().

Definition at line 46 of file subd_dice.h.

Referenced by reserve().

Definition at line 45 of file subd_dice.h.

Referenced by add_vert(), TriangleDice::dice(), QuadDice::dice(), EdgeDice(), and reserve().


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