Blender
V3.3
|
#include <subpatch.h>
Classes | |
struct | edge_t |
Public Member Functions | |
Subpatch (Patch *patch=nullptr) | |
Subpatch (Patch *patch, float2 c00, float2 c01, float2 c11, float2 c10) | |
int | calc_num_inner_verts () const |
int | calc_num_triangles () const |
int | get_vert_along_edge (int e, int n) const |
int | get_vert_along_grid_edge (int edge, int n) const |
Public Attributes | |
class Patch * | patch |
int | inner_grid_vert_offset |
union { | |
float2 corners [4] | |
struct { | |
float2 c00 | |
float2 c01 | |
float2 c11 | |
float2 c10 | |
} | |
}; | |
union { | |
edge_t edges [4] | |
struct { | |
edge_t edge_v0 | |
edge_t edge_u1 | |
edge_t edge_v1 | |
edge_t edge_u0 | |
} | |
}; | |
Definition at line 14 of file subpatch.h.
|
inlineexplicit |
Definition at line 56 of file subpatch.h.
Definition at line 65 of file subpatch.h.
|
inline |
Definition at line 70 of file subpatch.h.
References edge_u0, edge_u1, edge_v0, edge_v1, max, and Subpatch::edge_t::T.
|
inline |
Definition at line 79 of file subpatch.h.
References edge_u0, edge_u1, edge_v0, edge_v1, max, and Subpatch::edge_t::T.
|
inline |
Definition at line 199 of file subpatch.h.
References edges, and Subpatch::edge_t::get_vert_along_edge().
Referenced by QuadDice::set_side(), and EdgeDice::stitch_triangles().
|
inline |
Definition at line 95 of file subpatch.h.
References edge_u0, edge_u1, edge_v0, edge_v1, inner_grid_vert_offset, max, and Subpatch::edge_t::T.
Referenced by EdgeDice::stitch_triangles().
union { ... } |
union { ... } |
float2 Subpatch::c00 |
Definition at line 44 of file subpatch.h.
Referenced by QuadDice::map_uv(), and DiagSplit::split_ngon().
float2 Subpatch::c01 |
Definition at line 44 of file subpatch.h.
Referenced by QuadDice::map_uv(), and DiagSplit::split_ngon().
float2 Subpatch::c10 |
Definition at line 44 of file subpatch.h.
Referenced by QuadDice::map_uv(), and DiagSplit::split_ngon().
float2 Subpatch::c11 |
Definition at line 44 of file subpatch.h.
Referenced by QuadDice::map_uv(), and DiagSplit::split_ngon().
float2 Subpatch::corners[4] |
Definition at line 42 of file subpatch.h.
edge_t Subpatch::edge_u0 |
Definition at line 52 of file subpatch.h.
Referenced by calc_num_inner_verts(), calc_num_triangles(), QuadDice::dice(), get_vert_along_grid_edge(), DiagSplit::post_split(), QuadDice::scale_factor(), DiagSplit::split_ngon(), DiagSplit::split_quad(), and EdgeDice::stitch_triangles().
edge_t Subpatch::edge_u1 |
Definition at line 52 of file subpatch.h.
Referenced by calc_num_inner_verts(), calc_num_triangles(), QuadDice::dice(), get_vert_along_grid_edge(), DiagSplit::post_split(), QuadDice::scale_factor(), DiagSplit::split_ngon(), DiagSplit::split_quad(), and EdgeDice::stitch_triangles().
edge_t Subpatch::edge_v0 |
Definition at line 52 of file subpatch.h.
Referenced by calc_num_inner_verts(), calc_num_triangles(), QuadDice::dice(), get_vert_along_grid_edge(), DiagSplit::post_split(), QuadDice::scale_factor(), DiagSplit::split_ngon(), DiagSplit::split_quad(), and EdgeDice::stitch_triangles().
edge_t Subpatch::edge_v1 |
Definition at line 52 of file subpatch.h.
Referenced by calc_num_inner_verts(), calc_num_triangles(), QuadDice::dice(), get_vert_along_grid_edge(), DiagSplit::post_split(), QuadDice::scale_factor(), DiagSplit::split_ngon(), DiagSplit::split_quad(), and EdgeDice::stitch_triangles().
edge_t Subpatch::edges[4] |
Definition at line 50 of file subpatch.h.
Referenced by get_vert_along_edge(), QuadDice::set_side(), and EdgeDice::stitch_triangles().
int Subpatch::inner_grid_vert_offset |
Definition at line 17 of file subpatch.h.
Referenced by QuadDice::dice(), and get_vert_along_grid_edge().
class Patch* Subpatch::patch |
Definition at line 16 of file subpatch.h.
Referenced by QuadDice::add_grid(), QuadDice::eval_projected(), QuadDice::set_vert(), DiagSplit::split_ngon(), and EdgeDice::stitch_triangles().