Blender V2.61 - r43446
Classes | Public Member Functions

QuadDice Class Reference

#include <subd_dice.h>

Inheritance diagram for QuadDice:
Inheritance graph
[legend]

List of all members.

Classes

struct  EdgeFactors
struct  SubPatch

Public Member Functions

 QuadDice (Mesh *mesh, int shader, bool smooth, float dicing_rate)
void reserve (EdgeFactors &ef, int Mu, int Mv)
float3 eval_projected (SubPatch &sub, float u, float v)
float2 map_uv (SubPatch &sub, float u, float v)
int add_vert (SubPatch &sub, float u, float v)
void add_corners (SubPatch &sub)
void add_grid (SubPatch &sub, int Mu, int Mv, int offset)
void add_side_u (SubPatch &sub, vector< int > &outer, vector< int > &inner, int Mu, int Mv, int tu, int side, int offset)
void add_side_v (SubPatch &sub, vector< int > &outer, vector< int > &inner, int Mu, int Mv, int tv, int side, int offset)
float quad_area (const float3 &a, const float3 &b, const float3 &c, const float3 &d)
float scale_factor (SubPatch &sub, EdgeFactors &ef, int Mu, int Mv)
void dice (SubPatch &sub, EdgeFactors &ef)

Detailed Description

Definition at line 73 of file subd_dice.h.


Constructor & Destructor Documentation

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

Definition at line 117 of file subd_dice.cpp.


Member Function Documentation

void QuadDice::add_corners ( SubPatch sub)

Definition at line 240 of file subd_dice.cpp.

References add_vert(), Patch::is_triangle(), and QuadDice::SubPatch::patch.

Referenced by dice().

void QuadDice::add_grid ( SubPatch sub,
int  Mu,
int  Mv,
int  offset 
)

Definition at line 256 of file subd_dice.cpp.

References EdgeDice::add_triangle(), add_vert(), and i.

Referenced by dice().

void QuadDice::add_side_u ( SubPatch sub,
vector< int > &  outer,
vector< int > &  inner,
int  Mu,
int  Mv,
int  tu,
int  side,
int  offset 
)

Definition at line 154 of file subd_dice.cpp.

References add_vert(), and i.

Referenced by dice().

void QuadDice::add_side_v ( SubPatch sub,
vector< int > &  outer,
vector< int > &  inner,
int  Mu,
int  Mv,
int  tv,
int  side,
int  offset 
)

Definition at line 180 of file subd_dice.cpp.

References add_vert(), and i.

Referenced by dice().

int QuadDice::add_vert ( SubPatch sub,
float  u,
float  v 
)

Definition at line 149 of file subd_dice.cpp.

References map_uv(), and QuadDice::SubPatch::patch.

Referenced by add_corners(), add_grid(), add_side_u(), and add_side_v().

void QuadDice::dice ( SubPatch sub,
EdgeFactors ef 
)
float3 QuadDice::eval_projected ( SubPatch sub,
float  u,
float  v 
)
float2 QuadDice::map_uv ( SubPatch sub,
float  u,
float  v 
)
float QuadDice::quad_area ( const float3 a,
const float3 b,
const float3 c,
const float3 d 
)

Definition at line 206 of file subd_dice.cpp.

References triangle_area().

Referenced by scale_factor().

void QuadDice::reserve ( EdgeFactors ef,
int  Mu,
int  Mv 
)
float QuadDice::scale_factor ( SubPatch sub,
EdgeFactors ef,
int  Mu,
int  Mv 
)

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