Blender  V3.3
Classes | Public Member Functions | Public Attributes | List of all members
Subpatch Class Reference

#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 Patchpatch
 
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
 
   } 
 
}; 
 

Detailed Description

Definition at line 14 of file subpatch.h.

Constructor & Destructor Documentation

◆ Subpatch() [1/2]

Subpatch::Subpatch ( Patch patch = nullptr)
inlineexplicit

Definition at line 56 of file subpatch.h.

◆ Subpatch() [2/2]

Subpatch::Subpatch ( Patch patch,
float2  c00,
float2  c01,
float2  c11,
float2  c10 
)
inline

Definition at line 65 of file subpatch.h.

Member Function Documentation

◆ calc_num_inner_verts()

int Subpatch::calc_num_inner_verts ( ) const
inline

Definition at line 70 of file subpatch.h.

References edge_u0, edge_u1, edge_v0, edge_v1, max, and Subpatch::edge_t::T.

◆ calc_num_triangles()

int Subpatch::calc_num_triangles ( ) const
inline

Definition at line 79 of file subpatch.h.

References edge_u0, edge_u1, edge_v0, edge_v1, max, and Subpatch::edge_t::T.

◆ get_vert_along_edge()

int Subpatch::get_vert_along_edge ( int  e,
int  n 
) const
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().

◆ get_vert_along_grid_edge()

int Subpatch::get_vert_along_grid_edge ( int  edge,
int  n 
) const
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().

Member Data Documentation

◆ 

union { ... }

◆ 

union { ... }

◆ c00

float2 Subpatch::c00

Definition at line 44 of file subpatch.h.

Referenced by QuadDice::map_uv(), and DiagSplit::split_ngon().

◆ c01

float2 Subpatch::c01

Definition at line 44 of file subpatch.h.

Referenced by QuadDice::map_uv(), and DiagSplit::split_ngon().

◆ c10

float2 Subpatch::c10

Definition at line 44 of file subpatch.h.

Referenced by QuadDice::map_uv(), and DiagSplit::split_ngon().

◆ c11

float2 Subpatch::c11

Definition at line 44 of file subpatch.h.

Referenced by QuadDice::map_uv(), and DiagSplit::split_ngon().

◆ corners

float2 Subpatch::corners[4]

Definition at line 42 of file subpatch.h.

◆ edge_u0

edge_t Subpatch::edge_u0

◆ edge_u1

edge_t Subpatch::edge_u1

◆ edge_v0

edge_t Subpatch::edge_v0

◆ edge_v1

edge_t Subpatch::edge_v1

◆ edges

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().

◆ inner_grid_vert_offset

int Subpatch::inner_grid_vert_offset

Definition at line 17 of file subpatch.h.

Referenced by QuadDice::dice(), and get_vert_along_grid_edge().

◆ patch

class Patch* Subpatch::patch

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