Blender  V2.93
Public Member Functions | Public Attributes | List of all members
LinearQuadPatch Class Reference

#include <subd_patch.h>

Inherits Patch.

Public Member Functions

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

Public Attributes

float3 hull [4]
 
float3 normals [4]
 
- Public Attributes inherited from Patch
int patch_index
 
int shader
 
bool from_ngon
 

Detailed Description

Definition at line 42 of file subd_patch.h.

Member Function Documentation

◆ bound()

BoundBox LinearQuadPatch::bound ( )

Definition at line 81 of file subd_patch.cpp.

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

◆ eval()

void LinearQuadPatch::eval ( float3 P,
float3 dPdu,
float3 dPdv,
float3 N,
float  u,
float  v 
)
virtual

Implements Patch.

Definition at line 63 of file subd_patch.cpp.

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

Member Data Documentation

◆ hull

float3 LinearQuadPatch::hull[4]

Definition at line 44 of file subd_patch.h.

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

◆ normals

float3 LinearQuadPatch::normals[4]

Definition at line 45 of file subd_patch.h.

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


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