Blender V5.0
blender::bke::pbvh::uv_islands::MeshData Struct Reference

#include <pbvh_uv_islands.hh>

Public Member Functions

MeshData
 MeshData (OffsetIndices< int > faces, Span< int3 > corner_tris, Span< int > corner_verts, Span< float2 > uv_map, Span< float3 > vert_positions)

Public Attributes

OffsetIndices< int > faces
Span< int3corner_tris
Span< int > corner_verts
Span< float2uv_map
Span< float3vert_positions
VertToEdgeMap vert_to_edge_map
Vector< int2edges
EdgeToPrimitiveMap edge_to_primitive_map
TriangleToEdgeMap primitive_to_edge_map
Array< int > uv_island_ids
int64_t uv_island_len

Detailed Description

MeshData contains input geometry data converted in a list of primitives, edges and vertices for quick access for both local space and uv space.

Definition at line 108 of file pbvh_uv_islands.hh.

Constructor & Destructor Documentation

◆ MeshData()

blender::bke::pbvh::uv_islands::MeshData::MeshData ( OffsetIndices< int > faces,
Span< int3 > corner_tris,
Span< int > corner_verts,
Span< float2 > uv_map,
Span< float3 > vert_positions )
explicit

Member Data Documentation

◆ corner_tris

◆ corner_verts

◆ edge_to_primitive_map

◆ edges

◆ faces

OffsetIndices<int> blender::bke::pbvh::uv_islands::MeshData::faces

Definition at line 110 of file pbvh_uv_islands.hh.

Referenced by blender::bke::pbvh::pixels::do_encode_pixels(), and MeshData().

◆ primitive_to_edge_map

◆ uv_island_ids

Array<int> blender::bke::pbvh::uv_islands::MeshData::uv_island_ids

UV island each primitive belongs to. This is used to speed up the initial uv island extraction and should not be used afterwards.

Definition at line 127 of file pbvh_uv_islands.hh.

Referenced by blender::bke::pbvh::uv_islands::mesh_data_init_primitive_uv_island_ids(), and blender::bke::pbvh::uv_islands::UVIslands::UVIslands().

◆ uv_island_len

int64_t blender::bke::pbvh::uv_islands::MeshData::uv_island_len

Total number of found uv islands.

Definition at line 129 of file pbvh_uv_islands.hh.

Referenced by blender::bke::pbvh::uv_islands::mesh_data_init(), and blender::bke::pbvh::uv_islands::UVIslands::UVIslands().

◆ uv_map

◆ vert_positions

Span<float3> blender::bke::pbvh::uv_islands::MeshData::vert_positions

◆ vert_to_edge_map


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