Blender V5.3
blender::bke::subdiv::ForeachContext Struct Reference

#include <BKE_subdiv_foreach.hh>

Public Attributes

ForeachTopologyInformationCb topology_info = nullptr
ForeachVertFromCornerCb vert_every_corner = nullptr
ForeachVertFromEdgeCb vert_every_edge = nullptr
ForeachVertFromCornerCb vert_corner = nullptr
ForeachVertFromEdgeCb vert_edge = nullptr
ForeachVertInnerCb vert_inner = nullptr
ForeachLooseCb vert_loose = nullptr
ForeachVertOfLooseEdgeCb vert_of_loose_edge = nullptr
ForeachEdgeCb edge = nullptr
ForeachLoopCb loop = nullptr
FacesCb faces = nullptr
void * user_data = nullptr
void * user_data_tls = nullptr
size_t user_data_tls_size = 0
void(*) user_data_tls_free (void *tls) = nullptr

Detailed Description

Definition at line 100 of file BKE_subdiv_foreach.hh.

Member Data Documentation

◆ edge

◆ faces

FacesCb blender::bke::subdiv::ForeachContext::faces = nullptr

Called once for the whole mesh, passing the OffsetIndices encoding the groups of subdivided faces corresponding to each base mesh face.

Definition at line 148 of file BKE_subdiv_foreach.hh.

Referenced by blender::bke::subdiv::setup_foreach_callbacks().

◆ loop

ForeachLoopCb blender::bke::subdiv::ForeachContext::loop = nullptr
Note
If subdivided loop does not come from coarse loop, ORIGINDEX_NONE will be passed as coarse_loop_index.
All the face corners for a particular face are contiguous, and the face corners have the same order in the mesh as their faces.

Definition at line 142 of file BKE_subdiv_foreach.hh.

Referenced by blender::bke::subdiv::setup_foreach_callbacks(), blender::bke::subdiv::subdiv_foreach_loops_of_face(), and blender::bke::subdiv::subdiv_foreach_task().

◆ topology_info

ForeachTopologyInformationCb blender::bke::subdiv::ForeachContext::topology_info = nullptr

Is called when topology information becomes available. Is only called once.

Note
If this callback returns false, the foreach loop is aborted.

Definition at line 107 of file BKE_subdiv_foreach.hh.

Referenced by blender::multires_reshape_assign_final_coords_from_vertcos(), blender::bke::subdiv::setup_foreach_callbacks(), and blender::bke::subdiv::setup_foreach_callbacks().

◆ user_data

◆ user_data_tls

void* blender::bke::subdiv::ForeachContext::user_data_tls = nullptr

Initial value of TLS data.

Definition at line 157 of file BKE_subdiv_foreach.hh.

Referenced by blender::bke::subdiv::subdiv_foreach_tls_alloc(), and blender::bke::subdiv::subdiv_to_mesh().

◆ user_data_tls_free

void(*) blender::bke::subdiv::ForeachContext::user_data_tls_free(void *tls) = nullptr

◆ user_data_tls_size

size_t blender::bke::subdiv::ForeachContext::user_data_tls_size = 0

◆ vert_corner

ForeachVertFromCornerCb blender::bke::subdiv::ForeachContext::vert_corner = nullptr

Those callbacks are run once per subdivision vertex, ptex is undefined as in it will be whatever first ptex face happened to be traversed in the multi-threaded environment and which shares "emitting" vertex or edge.

Definition at line 119 of file BKE_subdiv_foreach.hh.

Referenced by blender::bke::subdiv::setup_foreach_callbacks(), blender::bke::subdiv::setup_foreach_callbacks(), blender::bke::subdiv::subdiv_foreach_corner_vertices_regular(), blender::bke::subdiv::subdiv_foreach_corner_vertices_special(), and blender::bke::subdiv::subdiv_foreach_single_geometry_vertices().

◆ vert_edge

◆ vert_every_corner

◆ vert_every_edge

◆ vert_inner

◆ vert_loose

ForeachLooseCb blender::bke::subdiv::ForeachContext::vert_loose = nullptr

Called once for each loose vertex. One loose coarse vertex corresponds to a single subdivision vertex.

Definition at line 127 of file BKE_subdiv_foreach.hh.

Referenced by blender::bke::subdiv::setup_foreach_callbacks(), blender::bke::subdiv::subdiv_foreach_loose_vertices_task(), and blender::bke::subdiv::subdiv_foreach_single_thread_tasks().

◆ vert_of_loose_edge

ForeachVertOfLooseEdgeCb blender::bke::subdiv::ForeachContext::vert_of_loose_edge = nullptr

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