Blender V4.3
blender::io::obj::GlobalVertices Struct Reference

#include <obj_import_objects.hh>

Public Member Functions

void set_vertex_color (size_t index, float3 color)
 
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< 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 48 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 40 of file obj_import_objects.hh.

References vertex_colors.

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 38 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().

◆ vertices


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