Blender V4.3
mesh_tessellate.cc File Reference
#include "BLI_array_utils.hh"
#include "BLI_enumerable_thread_specific.hh"
#include "BLI_math_geom.h"
#include "BLI_math_matrix.h"
#include "BLI_math_vector.h"
#include "BLI_memarena.h"
#include "BLI_polyfill_2d.h"
#include "BLI_task.hh"
#include "BKE_mesh.hh"
#include "BLI_strict_flags.h"

Go to the source code of this file.

Classes

struct  blender::bke::mesh::LocalData
 

Namespaces

namespace  blender
 
namespace  blender::bke
 
namespace  blender::bke::mesh
 

Functions

Face Tessellation

Fill in Corner Triangle Array

BLI_INLINE void blender::bke::mesh::mesh_calc_tessellation_for_face_impl (const Span< int > corner_verts, const Span< float3 > positions, const int face_start, const int face_size, int3 *tri, MemArena **pf_arena_p, const bool face_normal, const float normal_precalc[3])
 
static void blender::bke::mesh::mesh_calc_tessellation_for_face (const Span< int > corner_verts, const Span< float3 > positions, const int face_start, const int face_size, int3 *tri, MemArena **pf_arena_p)
 
static void blender::bke::mesh::mesh_calc_tessellation_for_face_with_normal (const Span< int > corner_verts, const Span< float3 > positions, const int face_start, const int face_size, int3 *tri, MemArena **pf_arena_p, const float normal_precalc[3])
 
static void blender::bke::mesh::corner_tris_calc_impl (const Span< float3 > positions, const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< float3 > face_normals, MutableSpan< int3 > corner_tris)
 
Polygon Data Evaluation
void blender::bke::mesh::corner_tris_calc (Span< float3 > vert_positions, OffsetIndices< int > faces, Span< int > corner_verts, MutableSpan< int3 > corner_tris)
 
void blender::bke::mesh::corner_tris_calc_face_indices (OffsetIndices< int > faces, MutableSpan< int > tri_faces)
 
void blender::bke::mesh::corner_tris_calc_with_normals (Span< float3 > vert_positions, OffsetIndices< int > faces, Span< int > corner_verts, Span< float3 > face_normals, MutableSpan< int3 > corner_tris)
 
void blender::bke::mesh::vert_tris_from_corner_tris (Span< int > corner_verts, Span< int3 > corner_tris, MutableSpan< int3 > vert_tris)
 
int3 blender::bke::mesh::corner_tri_get_real_edges (Span< int2 > edges, Span< int > corner_verts, Span< int > corner_edges, const int3 &corner_tri)
 

Detailed Description

This file contains code for face tessellation (creating triangles from polygons).

See also
bmesh_mesh_tessellate.cc for the BMesh equivalent of this file.

Definition in file mesh_tessellate.cc.