DATAKIT SDK  V2026.4
testcreatecube.cpp File Reference

Namespaces

 sampleWriter
 

Enumerations

enum  {
  sampleWriter::Lump = 1, sampleWriter::Volume = 2, sampleWriter::Shell = 3, sampleWriter::Vertex_A = 9,
  sampleWriter::Vertex_B = 11, sampleWriter::Vertex_C = 17, sampleWriter::Vertex_D = 23, sampleWriter::Vertex_E = 37,
  sampleWriter::Vertex_F = 45, sampleWriter::Vertex_G = 63, sampleWriter::Vertex_H = 81, sampleWriter::Edge_AB = 14,
  sampleWriter::Edge_CA = 20, sampleWriter::Edge_DC = 26, sampleWriter::Edge_BD = 30, sampleWriter::Edge_EA = 40,
  sampleWriter::Edge_FB = 48, sampleWriter::Edge_FE = 52, sampleWriter::Edge_GD = 66, sampleWriter::Edge_GF = 70,
  sampleWriter::Edge_HC = 84, sampleWriter::Edge_HG = 88, sampleWriter::Edge_EH = 96, sampleWriter::Coedge0_AB = 8,
  sampleWriter::Coedge1_AB = 42, sampleWriter::Coedge0_CA = 16, sampleWriter::Coedge5_CA = 112, sampleWriter::Coedge0_DC = 22,
  sampleWriter::Coedge3_DC = 78, sampleWriter::Coedge0_BD = 28, sampleWriter::Coedge2_BD = 60, sampleWriter::Coedge1_EA = 36,
  sampleWriter::Coedge5_EA = 114, sampleWriter::Coedge1_FB = 44, sampleWriter::Coedge2_FB = 58, sampleWriter::Coedge1_FE = 50,
  sampleWriter::Coedge2_GD = 62, sampleWriter::Coedge3_GD = 76, sampleWriter::Coedge4_FE = 98, sampleWriter::Coedge2_GF = 68,
  sampleWriter::Coedge4_GF = 100, sampleWriter::Coedge3_HC = 80, sampleWriter::Coedge5_HC = 110, sampleWriter::Coedge3_HG = 86,
  sampleWriter::Coedge4_HG = 102, sampleWriter::Coedge4_EH = 94, sampleWriter::Coedge5_EH = 108, sampleWriter::Loop0_ABCD = 7,
  sampleWriter::Loop1_ABFE = 35, sampleWriter::Loop2_FBDG = 57, sampleWriter::Loop3_GDCH = 75, sampleWriter::Loop4_EFGH = 93,
  sampleWriter::Loop5_EHCA = 107, sampleWriter::FaceABCD = 5, sampleWriter::FaceABFE = 33, sampleWriter::FaceFBDG = 55,
  sampleWriter::FaceGDCH = 73, sampleWriter::FaceEFGH = 91, sampleWriter::FaceEHCA = 105
}
 

Functions

Dtk_BodyPtr sampleWriter::CreateAxis ()
 Creates a reference body (infinite + reference flags) containing a single named axis line with metadata. More...
 
Dtk_AxisSystemPtr sampleWriter::CreateAxisSystem ()
 Creates a named axis system with a custom orientation matrix, red color, layer 123, and metadata. More...
 
Dtk_BodyPtr sampleWriter::CreateCube ()
 Creates a 100x100x100 mm closed BRep cube body. Builds the full BRep hierarchy (Vertex, Edge, Coedge, Loop, Face, Shell, Volume, Lump), assigns named topology entities, per-face colors, IDs, and metadata. More...
 
Dtk_BodyPtr sampleWriter::CreateCurves ()
 Creates a wireframe body containing a circle, ellipse, line, and NURBS curve, each with a distinct color and name. More...
 
Dtk_BodyPtr sampleWriter::CreateCurvesStyle ()
 Creates a wireframe body demonstrating curve display styles: thick circle (4 mm), dashed blue circle, and dotted magenta circle (2 mm). More...
 
Dtk_BodyPtr sampleWriter::CreateCyl (double radius, double height)
 Creates a BRep cylinder body with the given radius and height using analytical cylindrical and planar surfaces. More...
 
Dtk_BodyPtr sampleWriter::CreateEsquisse2D ()
 Creates a 2D wireframe sketch body (planar, lying in the XY plane) containing lines, arc circles, circles, ellipses, and arc ellipses. More...
 
Dtk_BodyPtr sampleWriter::CreateEsquisse3D ()
 Creates a 3D wireframe sketch body containing points, lines, NURBS splines, circles, arc circles, ellipses, and arc ellipses. More...
 
Dtk_BodyPtr sampleWriter::CreateInfinitePlane ()
 Creates a reference body flagged as an infinite plane (InfiniteGeometryFlag + RefEntityFlag), with color and metadata. More...
 
Dtk_BodyPtr sampleWriter::CreateMixedBody ()
 Creates a mixed body combining a closed BRep cube (solid) with additional free surfaces and wireframe curves in the same body. More...
 
Dtk_BodyPtr sampleWriter::CreateOpenShell ()
 Creates an open shell body containing a single trimmed cylindrical surface (half cylinder, not closed). More...
 
Dtk_BodyPtr sampleWriter::CreatePoint ()
 Creates a wireframe body containing a single named red point with metadata. More...