Blender V5.3
blender::geometry::MeshRealizeInfo Struct Reference

Public Attributes

const Mesh * mesh = nullptr
Span< float3 > positions
Span< int2 > edges
OffsetIndices< int > faces
Span< int > corner_verts
Span< int > corner_edges
Array< int > material_index_map
Array< std::optional< GVArray > > attributes
VArray< int > stored_vert_ids
VArray< int > material_indices
GVArraySpan custom_normal

Detailed Description

Definition at line 109 of file realize_instances.cc.

Member Data Documentation

◆ attributes

Array<std::optional<GVArray> > blender::geometry::MeshRealizeInfo::attributes

Matches the order in #AllMeshesInfo.attributes.

Definition at line 120 of file realize_instances.cc.

Referenced by blender::geometry::preprocess_meshes().

◆ corner_edges

Span<int> blender::geometry::MeshRealizeInfo::corner_edges

◆ corner_verts

Span<int> blender::geometry::MeshRealizeInfo::corner_verts

◆ custom_normal

GVArraySpan blender::geometry::MeshRealizeInfo::custom_normal

Custom normals are rotated based on each instance's transformation.

Definition at line 125 of file realize_instances.cc.

Referenced by blender::geometry::preprocess_meshes().

◆ edges

Span<int2> blender::geometry::MeshRealizeInfo::edges

◆ faces

OffsetIndices<int> blender::geometry::MeshRealizeInfo::faces

◆ material_index_map

Array<int> blender::geometry::MeshRealizeInfo::material_index_map

Maps old material indices to new material indices.

Definition at line 118 of file realize_instances.cc.

Referenced by blender::geometry::get_mapped_material_index(), and blender::geometry::preprocess_meshes().

◆ material_indices

VArray<int> blender::geometry::MeshRealizeInfo::material_indices

◆ mesh

◆ positions

Span<float3> blender::geometry::MeshRealizeInfo::positions

◆ stored_vert_ids

VArray<int> blender::geometry::MeshRealizeInfo::stored_vert_ids

Vertex ids stored on the mesh. If there are no ids, this Span is empty.

Definition at line 122 of file realize_instances.cc.

Referenced by blender::geometry::preprocess_meshes().


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