Blender V5.0
Patch Class Referenceabstract

#include <patch.h>

Inherited by BicubicPatch, and LinearQuadPatch.

Public Member Functions

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

Public Attributes

int patch_index = 0
int shader = 0
bool smooth = true
bool from_ngon = false

Detailed Description

Definition at line 12 of file patch.h.

Constructor & Destructor Documentation

◆ Patch()

Patch::Patch ( )
default

◆ ~Patch()

virtual Patch::~Patch ( )
virtualdefault

Member Function Documentation

◆ eval()

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

Implemented in BicubicPatch, and LinearQuadPatch.

References N, P, and v.

Referenced by EdgeDice::eval_projected(), and EdgeDice::set_vertex().

Member Data Documentation

◆ from_ngon

bool Patch::from_ngon = false

Definition at line 23 of file patch.h.

Referenced by Mesh::tessellate().

◆ patch_index

int Patch::patch_index = 0

Definition at line 20 of file patch.h.

Referenced by EdgeDice::set_triangle(), EdgeDice::set_vertex(), and Mesh::tessellate().

◆ shader

int Patch::shader = 0

Definition at line 21 of file patch.h.

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

◆ smooth

bool Patch::smooth = true

Definition at line 22 of file patch.h.

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


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