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

DiagSplit Class Reference

#include <subd_split.h>

List of all members.

Public Member Functions

 DiagSplit ()
float3 project (Patch *patch, float2 uv)
int T (Patch *patch, float2 Pstart, float2 Pend)
void partition_edge (Patch *patch, float2 *P, int *t0, int *t1, float2 Pstart, float2 Pend, int t)
void dispatch (QuadDice::SubPatch &sub, QuadDice::EdgeFactors &ef)
void split (QuadDice::SubPatch &sub, QuadDice::EdgeFactors &ef, int depth=0)
void dispatch (TriangleDice::SubPatch &sub, TriangleDice::EdgeFactors &ef)
void split (TriangleDice::SubPatch &sub, TriangleDice::EdgeFactors &ef, int depth=0)
void split_triangle (Mesh *mesh, Patch *patch, int shader, bool smooth)
void split_quad (Mesh *mesh, Patch *patch, int shader, bool smooth)

Public Attributes

vector< QuadDice::SubPatchsubpatches_quad
vector< QuadDice::EdgeFactorsedgefactors_quad
vector< TriangleDice::SubPatchsubpatches_triangle
vector< TriangleDice::EdgeFactorsedgefactors_triangle
int test_steps
int split_threshold
float dicing_rate
Cameracamera

Detailed Description

Definition at line 39 of file subd_split.h.


Constructor & Destructor Documentation

CCL_NAMESPACE_BEGIN DiagSplit::DiagSplit ( )

Definition at line 34 of file subd_split.cpp.

References camera, dicing_rate, NULL, split_threshold, and test_steps.


Member Function Documentation

void DiagSplit::dispatch ( QuadDice::SubPatch sub,
QuadDice::EdgeFactors ef 
)

Definition at line 42 of file subd_split.cpp.

References edgefactors_quad, and subpatches_quad.

Referenced by split().

void DiagSplit::dispatch ( TriangleDice::SubPatch sub,
TriangleDice::EdgeFactors ef 
)

Definition at line 48 of file subd_split.cpp.

References edgefactors_triangle, and subpatches_triangle.

void DiagSplit::partition_edge ( Patch patch,
float2 P,
int *  t0,
int *  t1,
float2  Pstart,
float2  Pend,
int  t 
)

Definition at line 94 of file subd_split.cpp.

References DSPLIT_NON_UNIFORM, I, interp(), and T().

Referenced by split().

float3 DiagSplit::project ( Patch patch,
float2  uv 
)

Definition at line 54 of file subd_split.cpp.

References camera, Patch::eval(), NULL, P(), transform(), Camera::worldtoraster, float2::x, and float2::y.

Referenced by T().

void DiagSplit::split ( QuadDice::SubPatch sub,
QuadDice::EdgeFactors ef,
int  depth = 0 
)
void DiagSplit::split ( TriangleDice::SubPatch sub,
TriangleDice::EdgeFactors ef,
int  depth = 0 
)
void DiagSplit::split_quad ( Mesh mesh,
Patch patch,
int  shader,
bool  smooth 
)
void DiagSplit::split_triangle ( Mesh mesh,
Patch patch,
int  shader,
bool  smooth 
)
int DiagSplit::T ( Patch patch,
float2  Pstart,
float2  Pend 
)

Member Data Documentation

Definition at line 49 of file subd_split.h.

Referenced by create_subd_mesh(), DiagSplit(), project(), split_quad(), and split_triangle().

Definition at line 42 of file subd_split.h.

Referenced by dispatch(), and split_quad().

Definition at line 44 of file subd_split.h.

Referenced by dispatch(), and split_triangle().

Definition at line 47 of file subd_split.h.

Referenced by DiagSplit(), and T().

Definition at line 41 of file subd_split.h.

Referenced by dispatch(), and split_quad().

Definition at line 43 of file subd_split.h.

Referenced by dispatch(), and split_triangle().

Definition at line 46 of file subd_split.h.

Referenced by DiagSplit(), and T().


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