 |
DATAKIT SDK
V2026.1
|
|
◆ GltfwInstances()
72 GW.OpenInstance(
"RootNode", -1, useless );
74 for( i = 0; i < 10; i++ )
76 GW.OpenInstance(
"Cube", 1, isNewNode, cubetransfo );
79 GW.WriteMesh( CubeMesh );
81 GW.CloseLastInstance();
84 GW.OpenInstance(
"WireMesh", 2, isNewNode,
Dtk_transfo());
87 GW.WriteMesh(WireMesh);
89 GW.CloseLastInstance();
91 GW.CloseLastInstance();
◆ GltfWriteSample()
| int GltfWriteSample |
( |
const Dtk_string & |
inResultDirectory | ) |
|
99 cout << endl <<
"----------------------------------------------" << endl;
102 outputDirectory = inResultDirectory + L
"Gltf/";
104 outputDirectory.
mkdir();
106 cout <<
"Gltf Write start" << endl;
107 cout <<
"sample 1" << endl;
109 fileName = outputDirectory + L
"twomeshes.gltf";
112 cout <<
"=> " << fileName.
c_str() << endl;
116 cout <<
"sample 2" << endl;
118 fileName = outputDirectory + L
"instances.gltf";
121 cout <<
"=> " << fileName.
c_str() << endl;
125 cout <<
"Gltf Write end" << endl;
◆ GltfwTwoMeshes()
29 GW.OpenInstance(
"RootNode", -1, useless );
32 GW.OpenInstance(
"Cube", -1, useless );
34 GW.WriteMesh( CubeMesh );
37 GW.CloseLastInstance();
40 GW.OpenInstance(
"Cylinder", -1, useless );
42 GW.WriteMesh( CylinderMesh );
44 GW.CloseLastInstance();
47 GW.CloseLastInstance();
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Dtk_MeshPtr CreateMeshCube()
Mesh Cube sample.
Definition: testcreatemesh.cpp:204
GLTF Writer main class.
Definition: gltfw.hpp:22
This is a high level string class.
Definition: dtk_string.hpp:53
char Dtk_bool
Definition: define.h:728
Dtk_MeshPtr CreateMeshWire()
Wire mesh sample.
Definition: testcreatemesh.cpp:385
Dtk_ErrorStatus GltfwTwoMeshes(const Dtk_string &outputFileName)
Definition: testlibgltfwrite.cpp:13
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
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:334
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.
Dtk_ErrorStatus GltfwInstances(const Dtk_string &outputFileName)
Definition: testlibgltfwrite.cpp:53
@ dtkNoError
Definition: error_dtk.hpp:147
This is a mathematical direction class.
Definition: dtk_dir.hpp:14