![Logo](tetiere_ht.jpg) |
DATAKIT API
V2025.1
|
|
{
int status;
cout << endl << "----------------------------------------------" << endl;
cout << "Collada Write start" << endl;
outputDirectory = inResultDirectory + L"dtk/Collada/";
outputFileName = outputDirectory + L"sample.dae";
if( status != 0 )
{
return status;
}
{
nodeName = "RootNode";
}
{
nodeName = "Facetted data";
}
{
nodeName = "Cube";
}
cubeMesh->info()->AddRenderInfos( renderInfos );
{
nodeName = "Cylinder";
}
if( reinstanciate )
{
{
nodeName = "Facetted data (Reinstanciated)";
}
}
cout <<
"=> " << outputFileName.
c_str() << endl <<
"Collada Write end" << endl;
return err;
}
uint32_t Dtk_ID
Definition: define.h:689
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Dtk_MeshPtr CreateMeshCube()
Mesh Cube sample.
Definition: testcreatemesh.cpp:207
DtkErrorStatus EndNode()
End the node.
void setZdir(const Dtk_dir &Z)
Set a new Z vector.
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, WriteOptions &inOptions)
Initialize the Collada Writer
#define DTK_TRUE
Definition: define.h:727
This is a high level string class.
Definition: dtk_string.hpp:58
char Dtk_bool
Definition: define.h:725
DtkErrorStatus EndWrite()
Creation of the output file and free the Collada Writer
void setXdir(const Dtk_dir &X)
Set a new X vector.
void FillFacesColors(Dtk_MeshPtr &inoutCubeMesh)
Filling mesh faces with colors.
Definition: testcreatemesh.cpp:244
This class provides several options to tune Collada Writer. It must be provided to Colladaw::InitWrit...
Definition: colladaw.hpp:17
Dtk_bool ConvertRenderInfos
Definition: colladaw.hpp:27
static Dtk_SmartPtr< Dtk_Entity > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_RenderInfosPtr CreateCubeRenderInfos()
Definition: testcreatemesh.cpp:498
Definition: util_ptr_dtk.hpp:37
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
const char * c_str() const
Retrieve the ASCII conversion string.
Dtk_MeshPtr CreateMeshCylinder(int nbpoints)
Mesh Cylinder sample.
Definition: testcreatemesh.cpp:337
void setYdir(const Dtk_dir &Y)
Set a new Y vector.
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 ...
int ColladaWriteSample(const Dtk_string &inResultDirectory)
Definition: testlibcolladawrite.cpp:16
DtkErrorStatus ReinstanciatePrototype(Dtk_ID inID)
Reinstanciate a node.
This is a high level array class.
Definition: util_stl_dtk.hpp:85
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
DtkErrorStatus InitNode(Dtk_string &inNodeName, const Dtk_transfo &inTransfo, Dtk_InfoPtr &inInfo, Dtk_ID &outID)
Initialize a node.
@ dtkNoError
Definition: error_dtk.hpp:140
static Dtk_SmartPtr< Dtk_Info > create()
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.
This is a mathematical direction class.
Definition: dtk_dir.hpp:15