Blender V4.3
Patch Class Referenceabstract

#include <patch.h>

Inherited by BicubicPatch, and LinearQuadPatch.

Public Member Functions

 Patch ()
 
virtual ~Patch ()=default
 
virtual void eval (float3 *P, float3 *dPdu, float3 *dPdv, float3 *N, float u, float v)=0
 

Public Attributes

int patch_index
 
int shader
 
bool from_ngon
 

Detailed Description

Definition at line 13 of file subd/patch.h.

Constructor & Destructor Documentation

◆ Patch()

Patch::Patch ( )
inline

Definition at line 15 of file subd/patch.h.

◆ ~Patch()

virtual Patch::~Patch ( )
virtualdefault

Member Function Documentation

◆ eval()

virtual void Patch::eval ( float3 * P,
float3 * dPdu,
float3 * dPdv,
float3 * N,
float u,
float v )
pure virtual

Member Data Documentation

◆ from_ngon

bool Patch::from_ngon

Definition at line 23 of file subd/patch.h.

Referenced by Mesh::tessellate().

◆ patch_index

int Patch::patch_index

Definition at line 21 of file subd/patch.h.

Referenced by EdgeDice::add_triangle(), and Mesh::tessellate().

◆ shader

int Patch::shader

Definition at line 22 of file subd/patch.h.

Referenced by EdgeDice::add_triangle(), and Mesh::tessellate().


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