DATAKIT API  V2025.1
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_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_WriteMeshAsm()

Dtk_status cgrw_WriteMeshAsm ( Dtk_mesh_asm_node inRoot)

Write a mesh assembly.

Returns
DTK_NOERROR if it is ok DTK_ISERROR else.

◆ SetCfgCgrWriteMaterial()

void SetCfgCgrWriteMaterial ( const Dtk_bool inVal)

write material

Parameters
[bool]inVal

SetCfgCgrWriteMaterial(const Dtk_bool &inVal);