![Logo](tetiere_ht.jpg) |
DATAKIT API
V2025.1
|
|
◆ _3dxmlWriteSample()
int _3dxmlWriteSample |
( |
const Dtk_string & |
inResultDirectory | ) |
|
236 cout << endl <<
"----------------------------------------------" << endl;
237 cout <<
"3dxml Write start" << endl;
240 outputDirectory = inResultDirectory + L
"dtk/CatiaV6/";
242 outputDirectory.
mkdir();
243 outputFileName = outputDirectory + L
"sample.3dxml";
279 cout <<
"=> " << outputFileName.
c_str() << endl <<
"3dxml Write end" << endl;
◆ WriteEntity()
69 if( tmpMeshs.
size() > 0 )
120 if( tmpMeshs_2.
size() > 0 )
165 if( tmpMeshs_3.
size() > 0 )
208 if( tmpMeshs_4.
size() > 0 )
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
void setOrigin(const Dtk_pnt &O)
Set a new O center point.
void setZdir(const Dtk_dir &Z)
Set a new Z vector.
This class provides several options to tune 3dxml Writer. It must be provided to _3dxmlw::InitWrite m...
Definition: 3dxmlw.hpp:89
This is a high level string class.
Definition: dtk_string.hpp:58
void addInstance3D(Dtk_ID parentId, Dtk_ID ref3dId, const Dtk_transfo &matrix, const Dtk_string &objectName, Dtk_MetaDataPtr &inMetadata, const WriteParameters &inParameters=WriteParameters())
Create Instance3D node.
void addReference3D(const Dtk_string &inName, Dtk_ID inComponentId, Dtk_tab< Dtk_MetaDataPtr > &inMetadata)
Create Reference3D node.
void setXdir(const Dtk_dir &X)
Set a new X vector.
Dtk_ErrorStatus WriteEntity(const Dtk_MeshPtr &inCubeMesh, const Dtk_MeshPtr &inCylinderMesh)
Definition: testlib3dxmlwrite.cpp:16
DtkErrorStatus EndWrite()
Creation of the output file and free the 3dxmlw Writer
void SetColor(const Dtk_RGB &inColor)
Sets the color for the written instance node.
Definition: 3dxmlw.hpp:45
This class provides several parameters to tunes 3dxml Writter. It must be provided to addInstance3D m...
Definition: 3dxmlw.hpp:15
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_bool isAlreadyAddComponent(Dtk_ID inCurrentChildId)
Don't create a component already viewed. Is instantiate by an instance.
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.
This is a mathematical point class.
Definition: dtk_pnt.hpp:22
void SetBlankedStatus(const Dtk_Int32 inBlanked)
Sets the blanked status for the written instance node.
Definition: 3dxmlw.hpp:34
void FixPathSeparator()
File Utility : Fixes path separator consistency. It lets you replace the '\' or '/' by the OS needed ...
This is a high level array class.
Definition: util_stl_dtk.hpp:85
Dtk_Size_t size() const
Returns the size of the array.
Definition: util_stl_dtk.hpp:502
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, WriteOptions &inOptions)
Initialize the 3dxmlw Writer
@ dtkNoError
Definition: error_dtk.hpp:140
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:415
void addReferenceRep(const Dtk_tab< Dtk_MeshPtr > &inMesh, const Dtk_string &inName, Dtk_Size_t inComponentId)
Create ReferenceRep node.
Definition: dtk_rgb.hpp:7
This is a mathematical direction class.
Definition: dtk_dir.hpp:15