Blender  V3.3
Public Member Functions | Public Attributes | List of all members
BicubicPatch Class Reference

#include <patch.h>

Inheritance diagram for BicubicPatch:
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 [16]
 
- Public Attributes inherited from Patch
int patch_index
 
int shader
 
bool from_ngon
 

Detailed Description

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

Member Function Documentation

◆ bound()

BoundBox BicubicPatch::bound ( )

Definition at line 98 of file patch.cpp.

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

◆ eval()

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

Implements Patch.

Definition at line 80 of file patch.cpp.

References blender::math::cross(), decasteljau_bicubic(), hull, N, blender::math::normalize(), P(), and v.

Member Data Documentation

◆ hull

float3 BicubicPatch::hull[16]

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

Referenced by bound(), and eval().


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