Blender V5.0
IO_wavefront_obj.hh File Reference
#include <limits.h>
#include "BLI_path_utils.hh"
#include "BKE_geometry_set.hh"
#include "DEG_depsgraph.hh"
#include "IO_orientation.hh"
#include "IO_path_util_types.hh"

Go to the source code of this file.

Classes

struct  OBJExportParams
struct  OBJImportParams

Enumerations

enum  eOBJMtlNameCollisionMode { OBJ_MTL_NAME_COLLISION_MAKE_UNIQUE = 0 , OBJ_MTL_NAME_COLLISION_REFERENCE_EXISTING = 1 }

Functions

void OBJ_import_geometries (const OBJImportParams *import_params, blender::Vector< blender::bke::GeometrySet > &geometries)
void OBJ_import (bContext *C, const OBJImportParams *import_params)
void OBJ_export (bContext *C, const OBJExportParams *export_params)

Enumeration Type Documentation

◆ eOBJMtlNameCollisionMode

Behavior when the name of an imported material conflicts with an existing material.

Enumerator
OBJ_MTL_NAME_COLLISION_MAKE_UNIQUE 
OBJ_MTL_NAME_COLLISION_REFERENCE_EXISTING 

Definition at line 77 of file IO_wavefront_obj.hh.

Function Documentation

◆ OBJ_export()

void OBJ_export ( bContext * C,
const OBJExportParams * export_params )

Perform the full export process.

Definition at line 29 of file IO_wavefront_obj.cc.

References C, blender::io::obj::exporter_main(), OBJExportParams::filepath, and report_duration().

◆ OBJ_import()

void OBJ_import ( bContext * C,
const OBJImportParams * import_params )

Perform the full import process. Import also changes the selection & the active object; callers need to update the UI bits if needed.

Definition at line 36 of file IO_wavefront_obj.cc.

References C, OBJImportParams::filepath, blender::io::obj::importer_main(), and report_duration().

◆ OBJ_import_geometries()

void OBJ_import_geometries ( const OBJImportParams * import_params,
blender::Vector< blender::bke::GeometrySet > & geometries )

Reads and returns just the meshes in the obj file

Definition at line 43 of file IO_wavefront_obj.cc.

References blender::io::obj::importer_geometry().

Referenced by blender::nodes::node_geo_import_obj::node_geo_exec().