Blender V4.3
obj_import_file_reader.cc File Reference
#include "BKE_report.hh"
#include "BLI_fileops.hh"
#include "BLI_map.hh"
#include "BLI_math_vector.h"
#include "BLI_math_vector_types.hh"
#include "BLI_string.h"
#include "BLI_string_ref.hh"
#include "BLI_vector.hh"
#include "obj_export_mtl.hh"
#include "obj_import_file_reader.hh"
#include "obj_import_string_utils.hh"
#include <algorithm>
#include <charconv>
#include <iostream>

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::io
 
namespace  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 const char * blender::io::obj::parse_vertex_index (const char *p, const char *end, size_t n_elems, int &r_index)
 
static void blender::io::obj::geom_add_polyline (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 void blender::io::obj::geom_new_object (const char *p, const char *end, bool &r_state_shaded_smooth, std::string &r_state_group_name, int &r_state_material_index, Geometry *&r_curr_geom, Vector< std::unique_ptr< Geometry > > &r_all_geometries)
 
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 Span< std::unique_ptr< Geometry > > all_geometries, const GlobalVertices &global_vertices)
 
static MTLTexMapType blender::io::obj::mtl_line_start_to_texture_type (const char *&p, const char *end)
 
static bool blender::io::obj::parse_texture_option (const char *&p, const char *end, MTLMaterial *material, MTLTexMap &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, intblender::io::obj::unsupported_texture_options []