fobjimport2.h File Reference

Enumerations

enum  {
  OBJIMPORTOPTIONS_NAME ,
  OBJIMPORTOPTIONS_GROUP ,
  OBJIMPORTOPTIONS_GROUP_ANIMATION ,
  OBJIMPORTOPTIONS_SEQUENCE_ANIMATION ,
  OBJIMPORTOPTIONS_SEQUENCE_FPS ,
  OBJIMPORTOPTIONS_SEQUENCE_FRAME_STEP ,
  OBJIMPORTOPTIONS_SEQUENCE_SHARED_MATERIAL ,
  OBJIMPORTOPTIONS_SEQUENCE_PLA ,
  OBJIMPORTOPTIONS_GROUP_PRESETS ,
  OBJIMPORTOPTIONS_PRESETS ,
  OBJIMPORTOPTIONS_PRESETS_CUSTOM_SAVEBUTTON ,
  OBJIMPORTOPTIONS_PRESETS_CUSTOM_DELETEBUTTON ,
  OBJIMPORTOPTIONS_GROUP_GEOMETRY ,
  OBJIMPORTOPTIONS_SCALE ,
  OBJIMPORTOPTIONS_SPLITBY ,
  OBJIMPORTOPTIONS_SPLITBY_ONEOBJECT ,
  OBJIMPORTOPTIONS_SPLITBY_OBJECT ,
  OBJIMPORTOPTIONS_SPLITBY_GROUP ,
  OBJIMPORTOPTIONS_SPLITBY_MATERIAL ,
  OBJIMPORTOPTIONS_SPLITBY_GROUP_COMBINE_NAME_COLLISIONS ,
  OBJIMPORTOPTIONS_NORMALS ,
  OBJIMPORTOPTIONS_NORMALS_NOIMPORT ,
  OBJIMPORTOPTIONS_NORMALS_PHONGTAG ,
  OBJIMPORTOPTIONS_NORMALS_VERTEX ,
  OBJIMPORTOPTIONS_PHONG_ANGLE_DEFAULT ,
  OBJIMPORTOPTIONS_POINTTRANSFORM_FLIPX ,
  OBJIMPORTOPTIONS_POINTTRANSFORM_FLIPY ,
  OBJIMPORTOPTIONS_POINTTRANSFORM_FLIPZ ,
  OBJIMPORTOPTIONS_POINTTRANSFORM_SWAPXY ,
  OBJIMPORTOPTIONS_POINTTRANSFORM_SWAPXZ ,
  OBJIMPORTOPTIONS_POINTTRANSFORM_SWAPYZ ,
  OBJIMPORTOPTIONS_FLIPFACES ,
  OBJIMPORTOPTIONS_VERTEX_COLOR ,
  OBJIMPORTOPTIONS_IMPORT_UVS ,
  OBJIMPORTOPTIONS_UV_NONE ,
  OBJIMPORTOPTIONS_UV_ORIGINAL ,
  OBJIMPORTOPTIONS_FLIP_U ,
  OBJIMPORTOPTIONS_FLIP_V ,
  OBJIMPORTOPTIONS_FLIP_UV ,
  OBJIMPORTOPTIONS_LINES ,
  OBJIMPORTOPTIONS_LINES_DEFAULT ,
  OBJIMPORTOPTIONS_LINES_CLOSED ,
  OBJIMPORTOPTIONS_LINES_ASPOLYS ,
  OBJIMPORTOPTIONS_REPORT_SCRIPTCONSOLE ,
  OBJIMPORTOPTIONS_GROUP_MATERIAL ,
  OBJIMPORTOPTIONS_GROUP_OPTIONAL ,
  OBJIMPORTOPTIONS_MATERIAL ,
  OBJIMPORTOPTIONS_MATERIAL_NONE ,
  OBJIMPORTOPTIONS_MATERIAL_DEFAULTPEROBJECT ,
  OBJIMPORTOPTIONS_MATERIAL_MTLFILE ,
  OBJIMPORTOPTIONS_MATERIAL_DEFAULTPERMTLFILE ,
  OBJIMPORTOPTIONS_DEFAULTMATERIAL ,
  OBJIMPORTOPTIONS_DEFAULTMATERIAL_WHITE ,
  OBJIMPORTOPTIONS_DEFAULTMATERIAL_RANDOMCOLORS ,
  OBJIMPORTOPTIONS_MATERIAL_MIXMODE ,
  OBJIMPORTOPTIONS_MATERIAL_MIXMODE_BLEND ,
  OBJIMPORTOPTIONS_MATERIAL_MIXMODE_ADD ,
  OBJIMPORTOPTIONS_MATERIAL_MIXMODE_SUB ,
  OBJIMPORTOPTIONS_MATERIAL_MIXMODE_MUL ,
  OBJIMPORTOPTIONS_INVERT_TRANSPARENCY ,
  OBJIMPORTOPTIONS_FILENAME ,
  OBJIMPORTOPTIONS_PER_FACE_MATERIAL ,
  OBJIMPORTOPTIONS_ENCODING_UTF8
}
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OBJIMPORTOPTIONS_NAME 

OBJ import preset name. Used in the OBJIMPORTOPTIONS_PRESETS dropbox. (String)

OBJIMPORTOPTIONS_GROUP 

Static group used by res file.

OBJIMPORTOPTIONS_GROUP_ANIMATION 

Static group used for OBJ animation sequences.

OBJIMPORTOPTIONS_SEQUENCE_ANIMATION 
OBJIMPORTOPTIONS_SEQUENCE_FPS 
OBJIMPORTOPTIONS_SEQUENCE_FRAME_STEP 
OBJIMPORTOPTIONS_SEQUENCE_SHARED_MATERIAL 
OBJIMPORTOPTIONS_SEQUENCE_PLA 
OBJIMPORTOPTIONS_GROUP_PRESETS 

Static group used by res file.

OBJIMPORTOPTIONS_PRESETS 

Preset drop down (Int)

OBJIMPORTOPTIONS_PRESETS_CUSTOM_SAVEBUTTON 

Save and Delete Preset buttons.

OBJIMPORTOPTIONS_PRESETS_CUSTOM_DELETEBUTTON 
OBJIMPORTOPTIONS_GROUP_GEOMETRY 

Static group used by res file.

OBJIMPORTOPTIONS_SCALE 

Scale widget We assign 1 OBJ unit as x unit of type y (x, y specified by user)

OBJIMPORTOPTIONS_SPLITBY 

Value controlling how we separate the OBJ content into objects (Int)

OBJIMPORTOPTIONS_SPLITBY_ONEOBJECT 

All content is imported as part of one object.

OBJIMPORTOPTIONS_SPLITBY_OBJECT 

All content is separated by object (o primitive)

OBJIMPORTOPTIONS_SPLITBY_GROUP 

All content is separated by group (g primitive), while renaming groups with naming collisions to keep the data separate.

OBJIMPORTOPTIONS_SPLITBY_MATERIAL 

All content is separated by material assignment (usemtl statement)

OBJIMPORTOPTIONS_SPLITBY_GROUP_COMBINE_NAME_COLLISIONS 

All content is separated by group (g primitive) while combining data found with naming collisions.

OBJIMPORTOPTIONS_NORMALS 

Value controlling how we import normal information (Int)

OBJIMPORTOPTIONS_NORMALS_NOIMPORT 

No normal information is imported (or set)

OBJIMPORTOPTIONS_NORMALS_PHONGTAG 

A phong tag is applied. No normal information is read.

OBJIMPORTOPTIONS_NORMALS_VERTEX 

Normal vertices are imported if any. A phong tag is applied in case there is no normals.

OBJIMPORTOPTIONS_PHONG_ANGLE_DEFAULT 

Phong tag default angle value (float)

OBJIMPORTOPTIONS_POINTTRANSFORM_FLIPX 

Switch reversing the X axis (bool) All flip and swap are performed in order of occurrence. They are applied to the incoming OBJ data. These spatial transformation allow to reorient the scene for Cinema 4D This includes changing between left handed and right handed coordinate systems.

OBJIMPORTOPTIONS_POINTTRANSFORM_FLIPY 

Switch reversing the Y axis (bool)

OBJIMPORTOPTIONS_POINTTRANSFORM_FLIPZ 

Switch reversing the Z axis (bool)

OBJIMPORTOPTIONS_POINTTRANSFORM_SWAPXY 

Switch exchanging the X with the Y axis (bool)

OBJIMPORTOPTIONS_POINTTRANSFORM_SWAPXZ 

Switch exchanging the X with the Z axis (bool)

OBJIMPORTOPTIONS_POINTTRANSFORM_SWAPYZ 

Switch exchanging the Y with the Z axis (bool)

OBJIMPORTOPTIONS_FLIPFACES 

Switch reversing the face definition (polygon winding) (bool)

OBJIMPORTOPTIONS_VERTEX_COLOR 

Vertex colors Importing.

OBJIMPORTOPTIONS_IMPORT_UVS 

UV coordinates.

OBJIMPORTOPTIONS_UV_NONE 
OBJIMPORTOPTIONS_UV_ORIGINAL 
OBJIMPORTOPTIONS_FLIP_U 
OBJIMPORTOPTIONS_FLIP_V 
OBJIMPORTOPTIONS_FLIP_UV 
OBJIMPORTOPTIONS_LINES 

Value controlling how the lines are imported (Int)

OBJIMPORTOPTIONS_LINES_DEFAULT 

Lines are imported as is. Possibly as segment, unless they list their beginning for end.

OBJIMPORTOPTIONS_LINES_CLOSED 

Lines are ensured to be closed. Some exporter have this assumption.

OBJIMPORTOPTIONS_LINES_ASPOLYS 

Lines are closed and are imported as polygon in the object (opaque)

OBJIMPORTOPTIONS_REPORT_SCRIPTCONSOLE 

Switch controlling the printing of the import report to the script console.

OBJIMPORTOPTIONS_GROUP_MATERIAL 

Optimize vertices and potentially polygons.

Static group used by res file

OBJIMPORTOPTIONS_GROUP_OPTIONAL 

Static group used by res file.

OBJIMPORTOPTIONS_MATERIAL 

Value controlling how we import normal information (Int)

OBJIMPORTOPTIONS_MATERIAL_NONE 

Imported scene won't have any material.

OBJIMPORTOPTIONS_MATERIAL_DEFAULTPEROBJECT 

Assign one default material per object.

OBJIMPORTOPTIONS_MATERIAL_MTLFILE 

Import .MAT file and use them in the imported scene.

OBJIMPORTOPTIONS_MATERIAL_DEFAULTPERMTLFILE 

Import material name but use a default material instead.

OBJIMPORTOPTIONS_DEFAULTMATERIAL 

Value controlling the default material to use (Int)

OBJIMPORTOPTIONS_DEFAULTMATERIAL_WHITE 

material with white diffuse channel

OBJIMPORTOPTIONS_DEFAULTMATERIAL_RANDOMCOLORS 

each new default material use a different color

OBJIMPORTOPTIONS_MATERIAL_MIXMODE 

Value controlling the material mix mode to use (Int)

OBJIMPORTOPTIONS_MATERIAL_MIXMODE_BLEND 

The blended mix mode.

OBJIMPORTOPTIONS_MATERIAL_MIXMODE_ADD 

The add mix mode.

OBJIMPORTOPTIONS_MATERIAL_MIXMODE_SUB 

The subtract mix mode.

OBJIMPORTOPTIONS_MATERIAL_MIXMODE_MUL 

The multiply mix mode.

OBJIMPORTOPTIONS_INVERT_TRANSPARENCY 

Switch controlling if transparency value should be inverted (bool)

OBJIMPORTOPTIONS_FILENAME 

Extended configuration information. Not used in the UI.

OBJIMPORTOPTIONS_PER_FACE_MATERIAL 

Extended configuration information. Not used in the UI.

OBJIMPORTOPTIONS_ENCODING_UTF8 

UTF-8 file importing.