Blender
V3.3
|
#include <dice.h>
Public Member Functions | |
QuadDice (const SubdParams ¶ms) | |
float3 | eval_projected (Subpatch &sub, float u, float v) |
float2 | map_uv (Subpatch &sub, float u, float v) |
void | set_vert (Subpatch &sub, int index, float u, float v) |
void | add_grid (Subpatch &sub, int Mu, int Mv, int offset) |
void | set_side (Subpatch &sub, int edge) |
float | quad_area (const float3 &a, const float3 &b, const float3 &c, const float3 &d) |
float | scale_factor (Subpatch &sub, int Mu, int Mv) |
void | dice (Subpatch &sub) |
![]() | |
EdgeDice (const SubdParams ¶ms) | |
void | reserve (int num_verts, int num_triangles) |
void | set_vert (Patch *patch, int index, float2 uv) |
void | add_triangle (Patch *patch, int v0, int v1, int v2) |
void | stitch_triangles (Subpatch &sub, int edge) |
Additional Inherited Members | |
![]() | |
SubdParams | params |
float3 * | mesh_P |
float3 * | mesh_N |
size_t | vert_offset |
size_t | tri_offset |
|
explicit |
Definition at line 214 of file dice.cpp.
References EdgeDice::add_triangle(), float(), i1, offset, Subpatch::patch, set_vert(), and v.
Referenced by dice().
Definition at line 240 of file dice.cpp.
References add_grid(), ceilf, Subpatch::edge_u0, Subpatch::edge_u1, Subpatch::edge_v0, Subpatch::edge_v1, Subpatch::inner_grid_vert_offset, max, scale_factor(), set_side(), EdgeDice::stitch_triangles(), and Subpatch::edge_t::T.
Referenced by DiagSplit::post_split().
Definition at line 130 of file dice.cpp.
References SubdParams::camera, Patch::eval(), map_uv(), NULL, P(), EdgeDice::params, Subpatch::patch, transform_perspective(), v, Camera::worldtoraster, float2::x, and float2::y.
Referenced by scale_factor().
Definition at line 122 of file dice.cpp.
References Subpatch::c00, Subpatch::c01, Subpatch::c10, Subpatch::c11, interp(), and v.
Referenced by eval_projected(), and set_vert().
float QuadDice::quad_area | ( | const float3 & | a, |
const float3 & | b, | ||
const float3 & | c, | ||
const float3 & | d | ||
) |
Definition at line 180 of file dice.cpp.
References Freestyle::a, usdtokens::b(), Freestyle::c, and triangle_area().
Referenced by scale_factor().
Definition at line 185 of file dice.cpp.
References A1, A2, D(), SubdParams::dicing_rate, Subpatch::edge_u0, Subpatch::edge_u1, Subpatch::edge_v0, Subpatch::edge_v1, eval_projected(), max, N, P(), EdgeDice::params, quad_area(), sqrtf, and Subpatch::edge_t::T.
Referenced by dice().
Definition at line 147 of file dice.cpp.
References Subpatch::edges, float(), Subpatch::get_vert_along_edge(), set_vert(), Subpatch::edge_t::T, t, and v.
Referenced by dice().
Definition at line 142 of file dice.cpp.
References map_uv(), Subpatch::patch, EdgeDice::set_vert(), and v.
Referenced by add_grid(), and set_side().