Blender  V3.3
Namespaces | Functions | Variables
obj_import_file_reader.cc File Reference
#include "BLI_map.hh"
#include "BLI_math_color.h"
#include "BLI_math_vector.h"
#include "BLI_string_ref.hh"
#include "BLI_vector.hh"
#include "obj_import_file_reader.hh"
#include "obj_import_string_utils.hh"
#include <algorithm>
#include <charconv>

Go to the source code of this file.

Namespaces

 blender
 
 blender::io
 
 blender::io::obj
 

Functions

static Geometryblender::io::obj::create_geometry (Geometry *const prev_geometry, const eGeometryType new_type, StringRef name, Vector< std::unique_ptr< Geometry >> &r_all_geometries)
 
static void blender::io::obj::geom_add_vertex (const char *p, const char *end, GlobalVertices &r_global_vertices)
 
static void blender::io::obj::geom_add_mrgb_colors (const char *p, const char *end, GlobalVertices &r_global_vertices)
 
static void blender::io::obj::geom_add_vertex_normal (const char *p, const char *end, GlobalVertices &r_global_vertices)
 
static void blender::io::obj::geom_add_uv_vertex (const char *p, const char *end, GlobalVertices &r_global_vertices)
 
static void blender::io::obj::geom_add_edge (Geometry *geom, const char *p, const char *end, GlobalVertices &r_global_vertices)
 
static void blender::io::obj::geom_add_polygon (Geometry *geom, const char *p, const char *end, const GlobalVertices &global_vertices, const int material_index, const int group_index, const bool shaded_smooth)
 
static Geometryblender::io::obj::geom_set_curve_type (Geometry *geom, const char *p, const char *end, const StringRef group_name, Vector< std::unique_ptr< Geometry >> &r_all_geometries)
 
static void blender::io::obj::geom_set_curve_degree (Geometry *geom, const char *p, const char *end)
 
static void blender::io::obj::geom_add_curve_vertex_indices (Geometry *geom, const char *p, const char *end, const GlobalVertices &global_vertices)
 
static void blender::io::obj::geom_add_curve_parameters (Geometry *geom, const char *p, const char *end)
 
static void blender::io::obj::geom_update_group (const StringRef rest_line, std::string &r_group_name)
 
static void blender::io::obj::geom_update_smooth_group (const char *p, const char *end, bool &r_state_shaded_smooth)
 
static bool blender::io::obj::parse_keyword (const char *&p, const char *end, StringRef keyword)
 
static void blender::io::obj::use_all_vertices_if_no_faces (Geometry *geom, const Vector< std::unique_ptr< Geometry >> &all_geometries, const GlobalVertices &global_vertices)
 
static eMTLSyntaxElement blender::io::obj::mtl_line_start_to_enum (const char *&p, const char *end)
 
static bool blender::io::obj::parse_texture_option (const char *&p, const char *end, MTLMaterial *material, tex_map_XX &tex_map)
 
static void blender::io::obj::parse_texture_map (const char *p, const char *end, MTLMaterial *material, const char *mtl_dir_path)
 

Variables

static const std::pair< StringRef, int > blender::io::obj::unsupported_texture_options []