Blender V4.5
LinearQuadPatch Class Referencefinal

#include <patch.h>

Inherits Patch.

Public Member Functions

void eval (float3 *P, float3 *dPdu, float3 *dPdv, float3 *N, const float u, float v) const override
 
BoundBox bound ()
 
- Public Member Functions inherited from Patch
 Patch ()=default
 
virtual ~Patch ()=default
 

Public Attributes

float3 hull [4]
 
- Public Attributes inherited from Patch
int patch_index = 0
 
int shader = 0
 
bool smooth = true
 
bool from_ngon = false
 

Detailed Description

Definition at line 28 of file patch.h.

Member Function Documentation

◆ bound()

BoundBox LinearQuadPatch::bound ( )

Definition at line 75 of file patch.cpp.

References BoundBox::empty, BoundBox::grow(), and hull.

◆ eval()

void LinearQuadPatch::eval ( float3 * P,
float3 * dPdu,
float3 * dPdv,
float3 * N,
const float u,
float v ) const
overridevirtual

Implements Patch.

Definition at line 52 of file patch.cpp.

References cross, hull, interp(), N, normalize, P, and v.

Member Data Documentation

◆ hull

float3 LinearQuadPatch::hull[4]

Definition at line 30 of file patch.h.

Referenced by bound(), eval(), and Mesh::tessellate().


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