Blender V5.0
blender::io::obj::GlobalVertices Struct Reference

#include <obj_import_objects.hh>

Public Member Functions

void set_vertex_color (size_t index, float3 color)
void set_vertex_weight (size_t index, float weight)
bool has_vertex_color (size_t index) const
void flush_mrgb_block ()

Public Attributes

Vector< float3vertices
Vector< float2uv_vertices
Vector< float3vert_normals
Vector< float3vertex_colors
Vector< floatvertex_weights
Vector< float3mrgb_block

Detailed Description

All vertex positions, normals, UVs, colors in the OBJ file.

Definition at line 24 of file obj_import_objects.hh.

Member Function Documentation

◆ flush_mrgb_block()

void blender::io::obj::GlobalVertices::flush_mrgb_block ( )
inline

◆ has_vertex_color()

bool blender::io::obj::GlobalVertices::has_vertex_color ( size_t index) const
inline

Definition at line 63 of file obj_import_objects.hh.

References vertex_colors.

◆ set_vertex_color()

void blender::io::obj::GlobalVertices::set_vertex_color ( size_t index,
float3 color )
inline

Definition at line 47 of file obj_import_objects.hh.

References vertex_colors.

Referenced by blender::io::obj::geom_add_vertex().

◆ set_vertex_weight()

void blender::io::obj::GlobalVertices::set_vertex_weight ( size_t index,
float weight )
inline

Definition at line 55 of file obj_import_objects.hh.

References vertex_weights.

Referenced by blender::io::obj::geom_add_vertex().

Member Data Documentation

◆ mrgb_block

Vector<float3> blender::io::obj::GlobalVertices::mrgb_block

Block of colors buffered for #MRGB extension. Flushed to vertex_colors when complete (at next vertex or end-of-file).

Definition at line 45 of file obj_import_objects.hh.

Referenced by flush_mrgb_block(), and blender::io::obj::geom_add_mrgb_colors().

◆ uv_vertices

Vector<float2> blender::io::obj::GlobalVertices::uv_vertices

◆ vert_normals

Vector<float3> blender::io::obj::GlobalVertices::vert_normals

◆ vertex_colors

Vector<float3> blender::io::obj::GlobalVertices::vertex_colors

Vertex color for each vertex. -1 indicates no vertex color was specified. Being shorter than vertices also means the missing vertices had no color.

Definition at line 33 of file obj_import_objects.hh.

Referenced by flush_mrgb_block(), has_vertex_color(), and set_vertex_color().

◆ vertex_weights

Vector<float> blender::io::obj::GlobalVertices::vertex_weights

Vertex weight for each vertex. Being shorter than vertices also means the missing vertices had no weight.

Definition at line 39 of file obj_import_objects.hh.

Referenced by set_vertex_weight().

◆ vertices


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