Blender V4.3
Mesh::SubdFace Struct Reference

#include <mesh.h>

Public Member Functions

bool is_quad ()
 
float3 normal (const Mesh *mesh) const
 
int num_ptex_faces () const
 

Public Attributes

int start_corner
 
int num_corners
 
int shader
 
bool smooth
 
int ptex_offset
 

Detailed Description

Definition at line 86 of file scene/mesh.h.

Member Function Documentation

◆ is_quad()

bool Mesh::SubdFace::is_quad ( )
inline

Definition at line 93 of file scene/mesh.h.

References num_corners.

◆ normal()

float3 Mesh::SubdFace::normal ( const Mesh * mesh) const

Definition at line 103 of file scene/mesh.cpp.

References cross(), normal(), safe_normalize(), start_corner, and v2.

Referenced by normal().

◆ num_ptex_faces()

int Mesh::SubdFace::num_ptex_faces ( ) const
inline

Definition at line 98 of file scene/mesh.h.

References num_corners.

Referenced by GeometryManager::device_update_mesh(), and GeometryManager::geom_calc_offset().

Member Data Documentation

◆ num_corners

int Mesh::SubdFace::num_corners

Definition at line 88 of file scene/mesh.h.

Referenced by is_quad(), and num_ptex_faces().

◆ ptex_offset

int Mesh::SubdFace::ptex_offset

◆ shader

int Mesh::SubdFace::shader

Definition at line 89 of file scene/mesh.h.

Referenced by Mesh::get_subd_face().

◆ smooth

bool Mesh::SubdFace::smooth

Definition at line 90 of file scene/mesh.h.

◆ start_corner

int Mesh::SubdFace::start_corner

Definition at line 87 of file scene/mesh.h.

Referenced by MikkMeshWrapper< is_subd >::CornerIndex(), and normal().


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