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.

References false, from_ngon, patch_index, and shader.

◆ ~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

Implemented in BicubicPatch, and LinearQuadPatch.

References N, P, and v.

Referenced by QuadDice::eval_projected(), and EdgeDice::set_vert().

Member Data Documentation

◆ from_ngon

bool Patch::from_ngon

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

Referenced by Patch(), and Mesh::tessellate().

◆ patch_index

int Patch::patch_index

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

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

◆ shader

int Patch::shader

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

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


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