Blender  V2.93
Public Member Functions | Public Attributes | List of all members
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 98 of file mesh.h.

Member Function Documentation

◆ is_quad()

bool Mesh::SubdFace::is_quad ( )
inline

Definition at line 105 of file mesh.h.

References num_corners.

Referenced by Mesh::pack_patches(), DiagSplit::split_patches(), and Mesh::tessellate().

◆ normal()

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

Definition at line 115 of file mesh.cpp.

References cross(), mesh, safe_normalize(), start_corner, v1, and v2.

Referenced by Mesh::add_vertex_normals(), mikk_get_normal(), and Mesh::tessellate().

◆ num_ptex_faces()

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

Member Data Documentation

◆ num_corners

int Mesh::SubdFace::num_corners

◆ ptex_offset

int Mesh::SubdFace::ptex_offset

◆ shader

int Mesh::SubdFace::shader

Definition at line 101 of file mesh.h.

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

◆ smooth

bool Mesh::SubdFace::smooth

Definition at line 102 of file mesh.h.

Referenced by Mesh::get_subd_face(), mikk_get_normal(), and Mesh::tessellate().

◆ start_corner

int Mesh::SubdFace::start_corner

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