DATAKIT SDK  V2026.4
testcreatecube.hpp
Go to the documentation of this file.
1 
2 
3 // TestCreateCube.hpp
4 // Sample BRep and wireframe body creation helpers.
5 // Demonstrates the full BRep hierarchy: Lump > Volume > Shell > Face > Loop > Coedge > Edge > Vertex,
6 // as well as wireframe bodies, axis systems, sketches and mixed bodies.
7 
8 namespace sampleWriter
9 {
10  //! \image html Cube.png
11  //! \brief Creates a 100x100x100 mm closed BRep cube body with 6 faces, named topology entities, and metadata.
13  //! \image html BodyCylinder.png
14  //! \brief Creates a BRep cylinder body with the given radius and height.
15  Dtk_BodyPtr CreateCyl(double radius,double height);
16  //! \image html OpenShell.png
17  //! \brief Creates an open shell body (a trimmed cylindrical surface).
19  //! \image html Curves.png
20  //! \brief Creates a wireframe body containing a circle, ellipse, line, and NURBS curve, each with a distinct color.
22  //! \image html CurvesStyle.png
23  //! \brief Creates a wireframe body demonstrating curve display styles: custom thickness and dashed/dotted line types.
25  //! \brief Creates a wireframe body containing a single named point with color and metadata.
27  //! \brief Creates a reference plane flagged as infinite , with color and metadata.
29  //! \brief Creates a named axis system with a custom orientation, color, layer, and metadata.
31  //! \brief Creates a reference axis containing a named axis, flagged as infinite geometry.
33  //! \brief Creates a 3D wireframe sketch body containing points, lines, circles, arc circles, ellipses, arc ellipses, and NURBS.
35  //! \brief Creates a 2D wireframe sketch body (planar, XY plane) containing lines, arcs, circles, and ellipses.
37  //! \brief Creates a body combining both BRep faces and wireframe curves in a single body.
39 }
sampleWriter::CreateAxis
Dtk_BodyPtr CreateAxis()
Creates a reference body (infinite + reference flags) containing a single named axis line with metada...
Definition: testcreatecube.cpp:1568
sampleWriter::CreateCyl
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
sampleWriter::CreateInfinitePlane
Dtk_BodyPtr CreateInfinitePlane()
Creates a reference body flagged as an infinite plane (InfiniteGeometryFlag + RefEntityFlag),...
Definition: testcreatecube.cpp:1511
sampleWriter::CreateAxisSystem
Dtk_AxisSystemPtr CreateAxisSystem()
Creates a named axis system with a custom orientation matrix, red color, layer 123,...
Definition: testcreatecube.cpp:1541
sampleWriter::CreateMixedBody
Dtk_BodyPtr CreateMixedBody()
Creates a mixed body combining a closed BRep cube (solid) with additional free surfaces and wireframe...
Definition: testcreatecube.cpp:1836
sampleWriter::CreatePoint
Dtk_BodyPtr CreatePoint()
Creates a wireframe body containing a single named red point with metadata.
Definition: testcreatecube.cpp:1483
sampleWriter::CreateEsquisse2D
Dtk_BodyPtr CreateEsquisse2D()
Creates a 2D wireframe sketch body (planar, lying in the XY plane) containing lines,...
Definition: testcreatecube.cpp:1699
sampleWriter
Definition: testcreatecube.cpp:15
sampleWriter::CreateEsquisse3D
Dtk_BodyPtr CreateEsquisse3D()
Creates a 3D wireframe sketch body containing points, lines, NURBS splines, circles,...
Definition: testcreatecube.cpp:1599
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
sampleWriter::CreateCube
Dtk_BodyPtr CreateCube()
Creates a 100x100x100 mm closed BRep cube body. Builds the full BRep hierarchy (Vertex,...
Definition: testcreatecube.cpp:1325
sampleWriter::CreateCurves
Dtk_BodyPtr CreateCurves()
Creates a wireframe body containing a circle, ellipse, line, and NURBS curve, each with a distinct co...
Definition: testcreatecube.cpp:1368
sampleWriter::CreateCurvesStyle
Dtk_BodyPtr CreateCurvesStyle()
Creates a wireframe body demonstrating curve display styles: thick circle (4 mm), dashed blue circle,...
Definition: testcreatecube.cpp:1447
sampleWriter::CreateOpenShell
Dtk_BodyPtr CreateOpenShell()
Creates an open shell body containing a single trimmed cylindrical surface (half cylinder,...
Definition: testcreatecube.cpp:1353