 |
DATAKIT SDK
V2026.4
|
|
template <typename T>
inline void Shift(T& inoutMesh,
double inShiftAmount)
{
inoutMesh->Transform(translation);
}
{
}
{
Dtk_string outputDirectory = inResultDirectory + L
"Plmxml/";
Dtk_string axlename = outputDirectory + L
"axle.jt";
Dtk_string wheelname = outputDirectory + L
"wheel.jt";
Dtk_string plmxmlfile = outputDirectory + L
"sample1.plmxml";
CHECK_OK(P.OpenInstance(
"Axles", id_of_axles));
std::cout <<
"=> " << plmxmlfile.
c_str() << std::endl;
}
{
std::cout << std::endl << "----------------------------------------------" << std::endl;
std::cout << "Plmxml Write start" << std::endl;
std::cout << "Plmxml Write end" << std::endl;
return errorStatus;
}
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
DtkErrorStatus PlmxmlWriteSample(const Dtk_string &inResultDirectory)
Definition: testlibplmxmlwrite.cpp:100
Definition: plmxmlw.hpp:12
Dtk_BodyPtr CreateCyl(double radius, double height)
Creates a BRep cylinder body with the given radius and height using analytical cylindrical and planar...
Definition: testcreatecube.cpp:1770
int tess_InitTesselation(Dtk_string inWorkingDirectory, double inTolerance)
Init the tesselation library.
This is a high level string class.
Definition: dtk_string.hpp:53
void Shift(T &inoutMesh, double inShiftAmount)
Definition: testlibplmxmlwrite.cpp:20
void tess_ComputeBoundariesFromMesh(int value)
Set boundaries computation from mesh option. Default value is enabled (1). See tess_getBoundariesFrom...
Dtk_ErrorStatus CreateJtFileForPLMXML(const Dtk_string &inOutputFileName, const Dtk_BodyPtr &inBody)
Definition: testlibplmxmlwrite.cpp:27
Dtk_ErrorStatus PlmxmlwritesampleJT(const Dtk_string &inResultDirectory)
Definition: testlibplmxmlwrite.cpp:36
int64_t Dtk_Int64
Definition: define.h:691
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
#define CHECK_OK(X)
Definition: testwriters.h:8
Definition: util_ptr_dtk.hpp:37
const char * c_str() const
Retrieve the ASCII conversion string.
int mkdir() const
File Utility : Create a Directory.
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
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:84
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
void tess_EndTesselation()
Free the data used by tesselation library.
@ 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
This is Jt Interface class used to write Jt files.
Definition: jtw.h:21
This is a mathematical direction class.
Definition: dtk_dir.hpp:14