  | 
  
    DATAKIT API
    V2025.4
    
   
   | 
           
 | 
 
 
 
 
 
 
 
{
     int                           status;
 
     
     outputDirectory = inResultDirectory + L"Obj/";
     outputFileName = outputDirectory + L"sample.obj";
 
     
 
     
 
     
 
     if( status != 0 )
     {
          return status;
     }
 
     
 
     
     texturedMesh->info()->SetName( "TexturedCube" );
 
     
 
     
     cubeMesh->info()->SetName( "Cube" );
     
     cubeMesh->Transform( transfo );
     
 
     
 
     cout << 
"=> " << outputFileName.
c_str() << endl;
 
 
     return err;
}
 
{
     cout << endl << "----------------------------------------------" << endl;
     cout << "Obj Write start" << endl;
     
     cout << "Obj Write end" << endl;
     return err;
}
 
    
 
 
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
 
Dtk_MeshPtr CreateMeshCube()
Mesh Cube sample.
Definition: testcreatemesh.cpp:209
 
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity, Dtk_transfo inMat=Dtk_transfo())
Write the entity provided in parameter in a node.
 
#define DTK_TRUE
Definition: define.h:729
 
This is a high level string class.
Definition: dtk_string.hpp:58
 
bool m_UseRender
Use of Dtk_RGB or Dtk_RenderInfos.
Definition: objw.hpp:29
 
void FillFacesColors(Dtk_MeshPtr &inoutCubeMesh)
Filling mesh faces with colors.
Definition: testcreatemesh.cpp:246
 
This class provides several options to tune Obj Writer. It must be provided to Objw::InitWrite method...
Definition: objw.hpp:18
 
Dtk_MeshPtr CreateTexturedMeshCube(const Dtk_string &inImageDirectory)
Textured Mesh Cube sample.
Definition: testcreatemesh.cpp:274
 
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, WriteOptions &inOptions)
Initialize the Obj Writer
 
static Dtk_SmartPtr< Dtk_Entity > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
 
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
 
Definition: util_ptr_dtk.hpp:37
 
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
 
DtkErrorStatus EndWrite()
Creation of the output file and free the Obj Writer
 
const char * c_str() const
Retrieve the ASCII conversion string.
 
int mkdir() const
File Utility : Create a Directory.
 
void FixPathSeparator()
File Utility : Fixes path separator consistency. It lets you replace the '\' or '/' by the OS needed ...
 
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
 
int ObjWriteSample(const Dtk_string &inResultDirectory)
Definition: testlibobjwrite.cpp:79
 
int StandardObjSample(const Dtk_string &inResultDirectory)
Definition: testlibobjwrite.cpp:17
 
@ dtkNoError
Definition: error_dtk.hpp:144
 
This is a mathematical direction class.
Definition: dtk_dir.hpp:15