|
Blender V5.0
|
#include <subpatch.h>
Classes | |
| struct | Edge |
Public Types | |
| enum | { TRIANGLE , QUAD } |
Public Member Functions | |
| SubPatch (const Patch *patch, const int face_index, const int corner=0) | |
| int | calc_num_inner_verts () const |
| int | calc_num_triangles () const |
| int | get_vert_along_edge (const int edge, const int n) const |
| int | get_vert_along_edge_reverse (const int edge, const int n) const |
| int | get_inner_grid_vert_triangle (int i, int j) const |
| int | get_vert_along_grid_edge (const int edge, const int n) const |
| float2 | map_uv (float2 uv) const |
Public Attributes | |
| const Patch * | patch = nullptr |
| int | face_index = 0 |
| int | corner = 0 |
| enum SubPatch:: { ... } | shape = QUAD |
| int | inner_grid_vert_offset = 0 |
| int | triangles_offset = 0 |
| float2 | uvs [4] = {zero_float2(), make_float2(1.0f, 0.0f), one_float2(), make_float2(0.0f, 1.0f)} |
| Edge | edges [4] = {} |
Definition at line 91 of file subpatch.h.
| anonymous enum |
| Enumerator | |
|---|---|
| TRIANGLE | |
| QUAD | |
Definition at line 99 of file subpatch.h.
|
inlineexplicit |
Definition at line 167 of file subpatch.h.
References corner, face_index, and patch.
|
inline |
Definition at line 172 of file subpatch.h.
References edges, M, max, shape, and TRIANGLE.
Referenced by get_inner_grid_vert_triangle().
|
inline |
Definition at line 189 of file subpatch.h.
References edges, M, max, shape, and TRIANGLE.
Referenced by EdgeDice::tri_dice().
|
inline |
Definition at line 234 of file subpatch.h.
References assert, calc_num_inner_verts(), i, and inner_grid_vert_offset.
Referenced by get_vert_along_grid_edge(), and EdgeDice::tri_dice().
|
inline |
Definition at line 224 of file subpatch.h.
References edges.
Referenced by EdgeDice::add_grid_triangles_and_stitch(), EdgeDice::add_triangle_strip(), get_vert_along_edge_reverse(), EdgeDice::quad_set_sides(), EdgeDice::tri_dice(), and EdgeDice::tri_set_sides().
|
inline |
Definition at line 229 of file subpatch.h.
References edges, and get_vert_along_edge().
Referenced by EdgeDice::add_triangle_strip().
|
inline |
Definition at line 242 of file subpatch.h.
References assert, edges, get_inner_grid_vert_triangle(), inner_grid_vert_offset, M, max, shape, and TRIANGLE.
Referenced by EdgeDice::add_grid_triangles_and_stitch(), and EdgeDice::tri_dice().
Definition at line 295 of file subpatch.h.
References clamp(), interp(), one_float2(), shape, TRIANGLE, uvs, float2::x, float2::y, and zero_float2().
Referenced by EdgeDice::add_grid_triangles_and_stitch(), EdgeDice::add_triangle_strip(), EdgeDice::quad_set_sides(), EdgeDice::scale_factor(), EdgeDice::tri_dice(), and EdgeDice::tri_set_sides().
| int SubPatch::corner = 0 |
Definition at line 97 of file subpatch.h.
Referenced by EdgeDice::set_triangle(), EdgeDice::set_vertex(), and SubPatch().
| Edge SubPatch::edges[4] = {} |
Definition at line 165 of file subpatch.h.
Referenced by EdgeDice::add_grid_triangles_and_stitch(), EdgeDice::add_triangle_strip(), calc_num_inner_verts(), calc_num_triangles(), get_vert_along_edge(), get_vert_along_edge_reverse(), get_vert_along_grid_edge(), EdgeDice::quad_dice(), EdgeDice::quad_set_sides(), EdgeDice::scale_factor(), EdgeDice::tri_dice(), and EdgeDice::tri_set_sides().
| int SubPatch::face_index = 0 |
Definition at line 96 of file subpatch.h.
Referenced by EdgeDice::set_triangle(), EdgeDice::set_vertex(), and SubPatch().
| int SubPatch::inner_grid_vert_offset = 0 |
Definition at line 101 of file subpatch.h.
Referenced by EdgeDice::add_grid_triangles_and_stitch(), get_inner_grid_vert_triangle(), and get_vert_along_grid_edge().
Definition at line 94 of file subpatch.h.
Referenced by EdgeDice::eval_projected(), EdgeDice::set_triangle(), EdgeDice::set_vertex(), and SubPatch().
| enum { ... } SubPatch::shape |
Referenced by calc_num_inner_verts(), calc_num_triangles(), EdgeDice::dice(), get_vert_along_grid_edge(), and map_uv().
| int SubPatch::triangles_offset = 0 |
Definition at line 103 of file subpatch.h.
Referenced by EdgeDice::add_grid_triangles_and_stitch(), EdgeDice::add_triangle_strip(), and EdgeDice::tri_dice().
| float2 SubPatch::uvs[4] = {zero_float2(), make_float2(1.0f, 0.0f), one_float2(), make_float2(0.0f, 1.0f)} |
Definition at line 162 of file subpatch.h.
Referenced by map_uv().