 |
DATAKIT SDK
V2026.4
|
|
◆ SatWriteSample()
Entry point: writes a solid cube and an open shell BRep body into a sample.sat (ACIS) file.
18 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
19 std::cout <<
"Acis Write start" << std::endl;
22 outputDirectory = inResultDirectory + L
"Acis/";
24 outputDirectory.
mkdir();
25 outputFileName = outputDirectory + L
"sample.sat";
52 std::cout <<
"=> " << outputFileName.
c_str() << std::endl;
53 std::cout <<
"Acis Write end" << std::endl;
DtkErrorStatus satw_InitPart()
Initializes the writing of a 3D part.
This is a high level string class.
Definition: dtk_string.hpp:53
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
DtkErrorStatus satw_InitFile(const Dtk_string &inFileOut, const satw_WriteOptions &inOptions=satw_WriteOptions())
Initializes a file to be written.
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 ...
DtkErrorStatus satw_EndPart()
Ends the writing of a part.
Dtk_BodyPtr CreateCube()
Creates a 100x100x100 mm closed BRep cube body. Builds the full BRep hierarchy (Vertex,...
Definition: testcreatecube.cpp:1325
@ dtkNoError
Definition: error_dtk.hpp:151
DtkErrorStatus satw_WriteBody(const Dtk_BodyPtr &inBody)
Writes a Body.
Dtk_BodyPtr CreateOpenShell()
Creates an open shell body containing a single trimmed cylindrical surface (half cylinder,...
Definition: testcreatecube.cpp:1353
DtkErrorStatus satw_EndFile()
Ends the writing of the Sat file.