DATAKIT SDK  V2026.4
cgr Write Util Functions

Functions

int cgrw_EndWrite ()
 Free the Cgr Writer
More...
 
int cgrw_InitWrite (Dtk_string inFileWritten, Dtk_string inLogFile, Licence_dtk inLicFct, Dtk_string inLicenceFile, const WriteOptions &inOptions=WriteOptions())
 Initialize the Cgr Writer
More...
 
Dtk_ErrorStatus cgrw_WriteMeshAsmNode (Dtk_mesh_asm_node *inRoot)
 Write a mesh assembly. More...
 
 SetAsDeprecated ("2026.4", "Use cgrw_WriteMeshAsmNode instead.") Dtk_status cgrw_WriteMeshAsm(Dtk_mesh_asm_node *inRoot)
 Write a mesh assembly. More...
 
void SetCfgCgrWriteMaterial (const Dtk_bool &inVal)
 write material More...
 

Detailed Description

Function Documentation

◆ cgrw_EndWrite()

int cgrw_EndWrite ( )

Free the Cgr Writer

Returns
DTK_NOERROR if it is ok DTK_ISERROR else.
Remarks
used at the last function used for the writer.

◆ cgrw_InitWrite()

int cgrw_InitWrite ( Dtk_string  inFileWritten,
Dtk_string  inLogFile,
Licence_dtk  inLicFct,
Dtk_string  inLicenceFile,
const WriteOptions &  inOptions = WriteOptions() 
)

Initialize the Cgr Writer

Returns
DTK_NOERROR if it is ok DTK_ISERROR else.
Remarks
This is the first function called for the writer.
Parameters
[in]inFileWritten: File to write
[in]inLogFile: Log file
[in]inLicFct: Licence fuction or Null
[in]inLicFile: Datakit Licence file or Null
[in]inOptions: Options (release,...)

◆ cgrw_WriteMeshAsmNode()

Dtk_ErrorStatus cgrw_WriteMeshAsmNode ( Dtk_mesh_asm_node *  inRoot)

Write a mesh assembly.

Returns
dtkNoError if it is ok, dtkError else.

◆ SetAsDeprecated()

SetAsDeprecated ( "2026.4"  ,
"Use cgrw_WriteMeshAsmNode instead."   
)

Write a mesh assembly.

Returns
DTK_NOERROR if it is ok DTK_ISERROR else.
Deprecated:
use cgrw_WriteMeshAsmNode instead

◆ SetCfgCgrWriteMaterial()

void SetCfgCgrWriteMaterial ( const Dtk_bool &  inVal)

write material

Parameters
[bool]inVal

SetCfgCgrWriteMaterial(const Dtk_bool &inVal);