 |
DATAKIT SDK
V2026.4
|
|
◆ IgesAssemblySample()
Writes an IGES assembly: two products each containing BRep bodies, demonstrating multi-product IGES structure.
81 Dtk_ID ProtoIndex, InstanceIndex, Instance1, Instance2;
85 outputDirectory = inResultDirectory + L
"Iges/";
87 outputDirectory.
mkdir();
88 outputFileName = outputDirectory + L
"assemblysample.igs";
100 if( errorStatus != 0 )
140 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
◆ IgesStandardSample()
| int IgesStandardSample |
( |
| ) |
|
Writes a single IGES file containing a cube, open shell, wireframe, and a datum FDT.
34 outputFileName =
"../OutputFiles/sample.igs";
56 std::cout <<
"Igesw Write aborted" << std::endl;
◆ IgesWriteSample()
147 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
148 std::cout <<
"Iges Write start" << std::endl;
151 std::cout <<
"Iges Write end" << std::endl;
static Dtk_SmartPtr< Dtk_Info > Create()
Calls default constructor to allocate a new object.
uint32_t Dtk_ID
Definition: define.h:688
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Dtk_ErrorStatus WritePrototype(const Dtk_tab< Dtk_ID > &inIndices, const Dtk_InfoPtr &inProtoInfos, Dtk_ID &outProtoIndex)
Write a Prototype 308 subfigure entity
Dtk_ErrorStatus SetName(Dtk_string inName)
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity, Dtk_Char8 inDependancyFlag, Dtk_tab< Dtk_ID > &outIndices)
Write an entity
This is a high level string class.
Definition: dtk_string.hpp:53
Dtk_ErrorStatus InstanciatePrototype(Dtk_ID inProtoIndex, const Dtk_transfo &inPlacement, const Dtk_InfoPtr &inInstanceInfos, Dtk_Char8 inDependancyFlag, Dtk_ID &outInstanceIndex)
Write a Instance 408 figure entity
DtkErrorStatus EndWrite()
Creation of the output file and free the Iges Writer
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, IgesMetaData inHeaderInformations)
Initialize the Iges Writer
Dtk_FdtPtr CreateFdtDatum()
Creates simple Datum.
Definition: testcreatefdt.cpp:14
static Dtk_SmartPtr< Dtk_Entity > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
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.
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 ...
Dtk_ErrorStatus IgesAssemblySample(const Dtk_string &inResultDirectory)
Writes an IGES assembly: two products each containing BRep bodies, demonstrating multi-product IGES s...
Definition: testlibigeswrite.cpp:71
This is a high level array class.
Definition: util_stl_dtk.hpp:84
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
Dtk_BodyPtr CreateCube()
Creates a 100x100x100 mm closed BRep cube body. Builds the full BRep hierarchy (Vertex,...
Definition: testcreatecube.cpp:1325
Dtk_BodyPtr CreateCurves()
Creates a wireframe body containing a circle, ellipse, line, and NURBS curve, each with a distinct co...
Definition: testcreatecube.cpp:1368
@ dtkNoError
Definition: error_dtk.hpp:151
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:416
void clear(int no_delete=0)
Resets the Dtk_tab content.
Definition: util_stl_dtk.hpp:352
Definition: dtk_rgb.hpp:8
Dtk_ErrorStatus SetColor(const int &R, const int &G, const int &B)
This is a mathematical direction class.
Definition: dtk_dir.hpp:14
Dtk_BodyPtr CreateOpenShell()
Creates an open shell body containing a single trimmed cylindrical surface (half cylinder,...
Definition: testcreatecube.cpp:1353