Blender V5.0
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 83 of file scene/mesh.h.

Member Function Documentation

◆ is_quad()

◆ normal()

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

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

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

Referenced by Mesh::add_vertex_normals(), and normal().

◆ num_ptex_faces()

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

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

References num_corners.

Referenced by Mesh::add_subd_face().

Member Data Documentation

◆ num_corners

◆ ptex_offset

int Mesh::SubdFace::ptex_offset

◆ shader

int Mesh::SubdFace::shader

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

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

◆ smooth

bool Mesh::SubdFace::smooth

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

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

◆ start_corner


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