 |
DATAKIT SDK
V2026.4
|
|
|
| enum | {
Lump = 1,
Volume = 2,
Shell = 3,
Vertex_A = 9,
Vertex_B = 11,
Vertex_C = 17,
Vertex_D = 23,
Vertex_E = 37,
Vertex_F = 45,
Vertex_G = 63,
Vertex_H = 81,
Edge_AB = 14,
Edge_CA = 20,
Edge_DC = 26,
Edge_BD = 30,
Edge_EA = 40,
Edge_FB = 48,
Edge_FE = 52,
Edge_GD = 66,
Edge_GF = 70,
Edge_HC = 84,
Edge_HG = 88,
Edge_EH = 96,
Coedge0_AB = 8,
Coedge1_AB = 42,
Coedge0_CA = 16,
Coedge5_CA = 112,
Coedge0_DC = 22,
Coedge3_DC = 78,
Coedge0_BD = 28,
Coedge2_BD = 60,
Coedge1_EA = 36,
Coedge5_EA = 114,
Coedge1_FB = 44,
Coedge2_FB = 58,
Coedge1_FE = 50,
Coedge2_GD = 62,
Coedge3_GD = 76,
Coedge4_FE = 98,
Coedge2_GF = 68,
Coedge4_GF = 100,
Coedge3_HC = 80,
Coedge5_HC = 110,
Coedge3_HG = 86,
Coedge4_HG = 102,
Coedge4_EH = 94,
Coedge5_EH = 108,
Loop0_ABCD = 7,
Loop1_ABFE = 35,
Loop2_FBDG = 57,
Loop3_GDCH = 75,
Loop4_EFGH = 93,
Loop5_EHCA = 107,
FaceABCD = 5,
FaceABFE = 33,
FaceFBDG = 55,
FaceGDCH = 73,
FaceEFGH = 91,
FaceEHCA = 105
} |
| |
|
| Dtk_BodyPtr | CreateAxis () |
| | Creates a reference body (infinite + reference flags) containing a single named axis line with metadata. More...
|
| |
| Dtk_AxisSystemPtr | CreateAxisSystem () |
| | Creates a named axis system with a custom orientation matrix, red color, layer 123, and metadata. More...
|
| |
| Dtk_BodyPtr | CreateConstructionPlane () |
| | Creates a construction plane body: an infinite plane at Y=50, returned as an open shell. More...
|
| |
| Dtk_BodyPtr | 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 | CreateCube_2 () |
| | Creates a 100x100x100 mm BRep cube body augmented with face IDs (required for FDT linking), solid validation properties (area, volume, centre of gravity) and a face-level user attribute. More...
|
| |
| Dtk_RenderInfosPtr | CreateCubeRenderInfos () |
| | Creates a Dtk_RenderInfos object with ambient, diffuse, and specular lighting and a texture for use on a cube mesh. More...
|
| |
| Dtk_BodyPtr | CreateCurves () |
| | Creates a wireframe body containing a circle, ellipse, line, and NURBS curve, each with a distinct color and name. More...
|
| |
| Dtk_BodyPtr | CreateCurves_2 () |
| | Creates a wireframe body with colored curves, augmented with additional curve-level attributes. More...
|
| |
| Dtk_BodyPtr | 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 | 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 | CreateCylinder () |
| | Creates a closed BRep cylinder body (radius 50, height 100) with two circular faces, a lateral cylindrical face, named face IDs, validation properties, and mesh tessellation. More...
|
| |
| Dtk_FdtPtr | CreateDimension () |
| | Creates a linear dimension FDT with a leader, dual-value text, and a frame. More...
|
| |
| Dtk_BodyPtr | 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 | CreateEsquisse3D () |
| | Creates a 3D wireframe sketch body containing points, lines, NURBS splines, circles, arc circles, ellipses, and arc ellipses. More...
|
| |
| Dtk_FdtPtr | CreateFdtDatum () |
| | Creates simple Datum. More...
|
| |
| Dtk_FdtPtr | CreateGeometricalTolerance () |
| | Creates a geometric tolerance FDT: cylindricity position tolerance | 0.02(M) | A |. More...
|
| |
| Dtk_BodyPtr | CreateInfinitePlane () |
| | Creates a reference body flagged as an infinite plane (InfiniteGeometryFlag + RefEntityFlag), with color and metadata. More...
|
| |
| Dtk_MeshPtr | CreateMeshCube () |
| | Mesh Cube sample. More...
|
| |
| Dtk_MeshPtr | CreateMeshCubeVertexColor () |
| | Creates a unit cube mesh with per-vertex color data (red, green, blue, white cycling per face). More...
|
| |
| Dtk_MeshPtr | CreateMeshCuboid (const Dtk_pnt &inFirstPoint, const Dtk_pnt &inSecondPoint) |
| | Creates an axis-aligned cuboid mesh from two opposite corner points. More...
|
| |
| Dtk_MeshPtr | CreateMeshCylinder (int nbpoints) |
| | Mesh Cylinder sample. More...
|
| |
| Dtk_MeshPtr | CreateMeshPoints () |
| | Points mesh sample. More...
|
| |
| Dtk_MeshPtr | CreateMeshWire () |
| | Wire mesh sample. More...
|
| |
| Dtk_BodyPtr | CreateMixedBody () |
| | Creates a mixed body combining a closed BRep cube (solid) with additional free surfaces and wireframe curves in the same body. More...
|
| |
| Dtk_ModelDisplayPtr | CreateModelDisplayActivated () |
| | Creates an activated (visible) model display "MyView1" with a perspective camera. More...
|
| |
| Dtk_ModelDisplayPtr | CreateModelDisplayDesactivated () |
| | Creates a deactivated (hidden) model display "MyView2" with an orthographic camera. More...
|
| |
| Dtk_ModelDisplayPtr | CreateModelDisplayWithSection () |
| | Creates a deactivated model display "MySectionView" with a section cut plane applied. More...
|
| |
| Dtk_BodyPtr | CreateOpenShell () |
| | Creates an open shell body containing a single trimmed cylindrical surface (half cylinder, not closed). More...
|
| |
| Dtk_BodyPtr | CreateOpenShell_2 () |
| | Creates an open shell body (trimmed cylindrical surface) augmented with open-shell attributes. More...
|
| |
| Dtk_BodyPtr | CreatePoint () |
| | Creates a wireframe body containing a single named red point with metadata. More...
|
| |
| Dtk_MeshPtr | CreateTexturedMeshCube (const Dtk_string &inImageDirectory) |
| | Textured Mesh Cube sample. More...
|
| |
| void | FillFacesColors (Dtk_MeshPtr &inoutCubeMesh) |
| | Filling mesh faces with colors. More...
|
| |
◆ anonymous enum
| Enumerator |
|---|
| Lump | |
| Volume | |
| Shell | |
| Vertex_A | |
| Vertex_B | |
| Vertex_C | |
| Vertex_D | |
| Vertex_E | |
| Vertex_F | |
| Vertex_G | |
| Vertex_H | |
| Edge_AB | |
| Edge_CA | |
| Edge_DC | |
| Edge_BD | |
| Edge_EA | |
| Edge_FB | |
| Edge_FE | |
| Edge_GD | |
| Edge_GF | |
| Edge_HC | |
| Edge_HG | |
| Edge_EH | |
| Coedge0_AB | |
| Coedge1_AB | |
| Coedge0_CA | |
| Coedge5_CA | |
| Coedge0_DC | |
| Coedge3_DC | |
| Coedge0_BD | |
| Coedge2_BD | |
| Coedge1_EA | |
| Coedge5_EA | |
| Coedge1_FB | |
| Coedge2_FB | |
| Coedge1_FE | |
| Coedge2_GD | |
| Coedge3_GD | |
| Coedge4_FE | |
| Coedge2_GF | |
| Coedge4_GF | |
| Coedge3_HC | |
| Coedge5_HC | |
| Coedge3_HG | |
| Coedge4_HG | |
| Coedge4_EH | |
| Coedge5_EH | |
| Loop0_ABCD | |
| Loop1_ABFE | |
| Loop2_FBDG | |
| Loop3_GDCH | |
| Loop4_EFGH | |
| Loop5_EHCA | |
| FaceABCD | |
| FaceABFE | |
| FaceFBDG | |
| FaceGDCH | |
| FaceEFGH | |
| FaceEHCA | |
◆ CreateAxis()
Creates a reference body (infinite + reference flags) containing a single named axis line with metadata.
Creates a reference axis containing a named axis, flagged as infinite geometry.
1575 mybody->get_info()->SetInfiniteGeometryFlag(
DTK_TRUE );
1576 mybody->get_info()->SetRefEntityFlag(
DTK_TRUE );
1581 lineptr->info()->SetColor(
Dtk_RGB( 0, 255, 25, 255 ) );
1582 lineptr->info()->SetName( L
"myaxe" );
1587 ArrayMetadataEntity.
push_back( metadata );
1588 lineptr->info()->SetMetaData( ArrayMetadataEntity );
1592 shell->AddWire( CurveArray );
1593 mybody->AddWireShell( shell );
◆ CreateAxisSystem()
Creates a named axis system with a custom orientation matrix, red color, layer 123, and metadata.
Creates a named axis system with a custom orientation, color, layer, and metadata.
1545 dtk_transfo.
setXdir( 0.0, 0.0, 1.0 );
1546 dtk_transfo.
setYdir( -1.0, 0.0, 0.0 );
1547 dtk_transfo.
setZdir( 0.0, -1.0, 0.0 );
1549 mycsystem->SetMatrix( dtk_transfo );
1551 mycsystem->info()->SetName( L
"mycsystem" );
1552 mycsystem->info()->SetColor(
Dtk_RGB( 255, 0, 0, 255 ) );
1553 mycsystem->info()->SetLayer( 123 );
1558 ArrayMetadataEntity.
push_back( metadata );
1559 mycsystem->info()->SetMetaData( ArrayMetadataEntity );
◆ CreateConstructionPlane()
Creates a construction plane body: an infinite plane at Y=50, returned as an open shell.
Creates a body containing a construction (reference) plane at the origin.
1162 body->AddOpenShell( shell );
1164 body->info()->SetName(
"Plane Y=50" );
◆ 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.
Creates a 100x100x100 mm closed BRep cube body with 6 faces, named topology entities, and metadata.
1327 std::map<Dtk_ID, Dtk_EntityPtr> array_topo;
1331 body->info()->SetName( L
"Body" );
1335 ArrayMetadataEntity.
push_back( metadata );
1336 body->info()->SetMetaData( ArrayMetadataEntity );
1338 CreateTopoVertex( array_topo, body );
1339 CreateTopoEdge( array_topo, body );
1340 CreateTopoCoEdge( array_topo, body );
1341 CreateTopoLoop( array_topo, body );
1342 CreateTopoFace( array_topo, body );
1343 CreateTopoShell( array_topo, body );
1344 CreateTopoVolume( array_topo, body );
1345 CreateTopoLump( array_topo, body );
◆ CreateCube_2()
Creates a 100x100x100 mm BRep cube body augmented with face IDs (required for FDT linking), solid validation properties (area, volume, centre of gravity) and a face-level user attribute.
Creates a 100x100x100 mm BRep cube body augmented with face IDs required for FDT attachment, validation properties, and face-level user attributes.
1066 std::map<Dtk_ID, Dtk_EntityPtr> array_topo;
1070 CreateTopoVertex_2( array_topo, body );
1071 CreateTopoEdge_2( array_topo, body );
1072 CreateTopoCoEdge_2( array_topo, body );
1073 CreateTopoLoop_2( array_topo, body );
1074 CreateTopoFace_2( array_topo, body );
1075 CreateTopoShell_2( array_topo, body );
1076 CreateTopoVolume_2( array_topo, body );
1077 CreateTopoLump_2( array_topo, body );
1084 Dtk_Val valprop_area(
"1234 mm2" );
1085 body_info->
AddAttribute(
"geometric validation property : : surface area measure", valprop_area );
1086 Dtk_Val valprop_volume(
"5678 mm3" );
1087 body_info->
AddAttribute(
"geometric validation property : : volume measure", valprop_volume );
1089 body_info->
AddAttribute(
"geometric validation property : : centre point", valprop_CG );
◆ CreateCubeRenderInfos()
Creates a Dtk_RenderInfos object with ambient, diffuse, and specular lighting and a texture for use on a cube mesh.
Creates a Dtk_RenderInfos object with material and color information for a cube.
512 ambiant.
SetRGBA( 255, 255, 255 );
513 diffuse.
SetRGBA( 255, 255, 255 );
514 specular.
SetRGBA( 255, 255, 255 );
517 lightMap->SetTransparentRatio( 0.0 );
520 reflective.
SetRGBA( 255, 255, 255 );
521 lightMap->AddReflectiveColor( reflective );
523 lightMap->SetShininessRatio( 0.003375 );
528 fileName =
"..\\InputFiles\\Images\\sample.bmp";
529 texture->SetImagePath( fileName );
531 texture->SetScale( 2, 2 );
◆ CreateCurves()
Creates a wireframe body containing a circle, ellipse, line, and NURBS curve, each with a distinct color and name.
Creates a wireframe body containing a circle, ellipse, line, and NURBS curve, each with a distinct color.
1383 mycurve->info()->SetColor(
Dtk_RGB( 255, 0, 255 ) );
1384 mycurve->info()->SetName(
"mycircle" );
1389 myellipse =
Dtk_Ellipse::Create(
Dtk_pnt( 0.0, 0.0, 0.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 10.0, 5.0 );
1392 mycurve->info()->SetColor(
Dtk_RGB( 255, 255, 0 ) );
1393 mycurve->info()->SetName(
"myellipse" );
1402 mycurve->info()->SetColor(
Dtk_RGB( 0, 0, 255 ) );
1403 mycurve->info()->SetName(
"myline" );
1413 ControlPoints.
resize( 4 );
1414 ControlPoints[ 0 ] =
Dtk_pnt( -5.0, 0.0, 0.0 );
1415 ControlPoints[ 1 ] =
Dtk_pnt( -2.0, 5.0, 0. );
1416 ControlPoints[ 2 ] =
Dtk_pnt( 2.0, -5.0, 0. );
1417 ControlPoints[ 3 ] =
Dtk_pnt( 5.0, 0.0, 0. );
1419 Knots[ 0 ] = Knots[ 1 ] = Knots[ 2 ] = Knots[ 3 ] = 0.0;
1420 Knots[ 4 ] = Knots[ 5 ] = Knots[ 6 ] = Knots[ 7 ] = 1.0;
1425 mycurve->info()->SetColor(
Dtk_RGB( 0, 255, 0 ) );
1426 mycurve->info()->SetName(
"mynurbs" );
1431 myshell->AddWire( mycurves );
1432 mybody->AddWireShell( myshell );
1437 ArrayMetadataEntity.
push_back( metadata );
1440 mybody->info()->SetMetaData( ArrayMetadataEntity );
◆ CreateCurves_2()
Creates a wireframe body with colored curves, augmented with additional curve-level attributes.
Creates a wireframe body with colored curves, augmented with additional attributes.
1126 mycurve->info()->SetColor(
Dtk_RGB( 255, 0, 255 ) );
1127 mycurve->info()->SetName(
"mycircle" );
1136 mycurve->info()->SetColor(
Dtk_RGB( 0, 0, 255 ) );
1137 mycurve->info()->SetName(
"myline" );
1141 myshell->AddWire( mycurves );
1142 mysbody->AddWireShell( myshell );
1147 Dtk_Val valprop_curve_length(
"1234 mm" );
1148 body_info->
AddAttribute(
"geometric validation property : : curve length measure", valprop_curve_length );
◆ CreateCurvesStyle()
Creates a wireframe body demonstrating curve display styles: thick circle (4 mm), dashed blue circle, and dotted magenta circle (2 mm).
Creates a wireframe body demonstrating curve display styles: custom thickness and dashed/dotted line types.
1457 ellipsethick->info()->SetColor(
Dtk_RGB( 255, 0, 0 ) );
1458 ellipsethick->info()->SetCurveThickNessInMM( 4 );
1464 ellipsedash->info()->SetColor(
Dtk_RGB( 0, 0, 255 ) );
1465 ellipsedash->info()->SetCurveLineType(
DTK_DASHED );
1470 ellipsedotted->info()->SetColor(
Dtk_RGB( 255, 0, 255 ) );
1471 ellipsedotted->info()->SetCurveLineType(
DTK_DOTTED );
1472 ellipsedotted->info()->SetCurveThickNessInMM( 2 );
1475 myshell->AddWire( mycurves );
1476 mybody->AddWireShell( myshell );
◆ CreateCyl()
| 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.
Creates a BRep cylinder body with the given radius and height.
1776 body->AddLump( lump );
1777 lump->AddVolume( volume );
1778 volume->AddOuterShell( shell );
1781 P[ 0 ] =
Dtk_pnt( radius, 0, 0 );
1782 P[ 1 ] =
Dtk_pnt( radius, 0, height );
1783 P[ 2 ] =
Dtk_pnt( -radius, 0, height );
1784 P[ 3 ] =
Dtk_pnt( -radius, 0, 0 );
1787 for( i = 0; i < 4; i++ )
1788 v[ i ] = MakeVertex( body, P[ i ] );
1790 e[ 0 ] = MakeEdge( body, v[ 0 ], v[ 1 ], MakeSegment( P[ 0 ], P[ 1 ] ), 1 );
1791 e[ 1 ] = MakeEdge( body, v[ 2 ], v[ 3 ], MakeSegment( P[ 2 ], P[ 3 ] ), 2 );
1792 e[ 2 ] = MakeEdge( body, v[ 3 ], v[ 0 ], MakeArc2D(
Dtk_pnt(), radius, -
DTK_PI, 0 ), 3 );
1793 e[ 3 ] = MakeEdge( body, v[ 0 ], v[ 3 ], MakeArc2D(
Dtk_pnt(), radius, 0,
DTK_PI ), 4 );
1794 e[ 4 ] = MakeEdge( body, v[ 2 ], v[ 1 ], MakeArc2D(
Dtk_pnt( 0, 0, height ), radius, -
DTK_PI, 0 ), 5 );
1795 e[ 5 ] = MakeEdge( body, v[ 1 ], v[ 2 ], MakeArc2D(
Dtk_pnt( 0, 0, height ), radius, 0,
DTK_PI ), 6 );
1798 MakeCoedge( body, e[ 0 ],
DTK_TRUE, MakeSegment2D( 0, 0, 0, height ) ),
1799 MakeCoedge( body, e[ 4 ],
DTK_FALSE, MakeSegment2D( 0, height, -
DTK_PI, height ) ),
1801 MakeCoedge( body, e[ 2 ],
DTK_TRUE, MakeSegment2D( -
DTK_PI, 0, 0, 0 ) )
1807 MakeCoedge( body, e[ 3 ],
DTK_TRUE, MakeSegment2D( 0, 0,
DTK_PI, 0 ) ),
1809 MakeCoedge( body, e[ 5 ],
DTK_FALSE, MakeSegment2D(
DTK_PI, height, 0, height ) ),
1810 MakeCoedge( body, e[ 0 ],
DTK_FALSE, MakeSegment2D( 0, height, 0, 0 ) )
1820 shell->AddFace( plandown,
DTK_TRUE );
1828 shell->AddFace( planup,
DTK_TRUE );
1829 FillInfos( planup->
info(), 4,
Dtk_RGB( 0, 255, 0 ) );
◆ CreateCylinder()
Creates a closed BRep cylinder body (radius 50, height 100) with two circular faces, a lateral cylindrical face, named face IDs, validation properties, and mesh tessellation.
Creates a closed BRep cylinder body with its triangulated tessellation, ready for writing.
1188 Dtk_pnt cent1( 0., 0., 100. );
1197 trim[ 0 ] = -100.; trim[ 1 ] = 100.; trim[ 2 ] = -100.; trim[ 3 ] = 100.;
1198 plan1->SetTrimUVBox( trim );
1200 plan2->SetTrimUVBox( trim );
1202 trim[ 0 ] = 0.; trim[ 1 ] = 2. *
DTK_PI;
1203 cylsurf->SetTrimUVBox( trim );
1214 E0->SetStartVertex( V1 );
1215 E0->SetEndVertex( V2 );
1218 E1->SetStartVertex( V1 );
1219 E1->SetEndVertex( V1 );
1222 E2->SetStartVertex( V2 );
1223 E2->SetEndVertex( V2 );
1228 SetTopoFaceID( F0, 10 );
1231 SetTopoFaceID( F1, 20 );
1236 SetTopoFaceID( F2, 30 );
1271 VOL->AddOuterShell( SH );
1273 Lump->AddVolume( VOL );
1274 mysbody->AddLump(
Lump );
1276 mysbody->info()->SetColor(
Dtk_RGB( 0, 255, 0 ) );
◆ CreateDimension()
Creates a linear dimension FDT with a leader, dual-value text, and a frame.
Creates a linear dimension FDT between two points.
123 Dtk_bool horiz_vert = 0, mirror = 0, font_index = 0;
131 text_style.
Slant() = slant;
137 double x_len = 15., y_len = 5.;
138 Dtk_dir x_dir( 1., 0., 0. ), y_dir( 0., 0., 1. );
155 Dtk_Text dtk_text( str, inbox, inbox, dtk_align, text_type, horiz_vert, text_info, text_style, slant, font_index, mirror );
169 double arrow_width = 5., arrow_length = 5.;
186 dimension->AddLeader( leader1 );
202 dimension->AddLeader( leader2 );
207 fdt_transf.
setXdir( 0., 1., 0. );
208 fdt_transf.
setYdir( -1., 0., 0. );
209 fdt->Transform( fdt_transf );
213 fdt_info->
SetName(
"Dimension:1" );
214 fdt->info() = fdt_info;
218 ArrayMetadataEntity.
push_back( metadata );
219 fdt->info()->SetMetaData( ArrayMetadataEntity );
◆ CreateEsquisse2D()
Creates a 2D wireframe sketch body (planar, lying in the XY plane) containing lines, arc circles, circles, ellipses, and arc ellipses.
Creates a 2D wireframe sketch body (planar, XY plane) containing lines, arcs, circles, and ellipses.
1714 myarccircle =
Dtk_Ellipse::Create(
Dtk_pnt( 1.0, 0.5, 0.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 0.5, 0.5 );
1715 myarccircle->SetTrimmingParameters( -1.0 *
DTK_PI / 2.0,
DTK_PI / 2.0 );
1718 myarccircle =
Dtk_Ellipse::Create(
Dtk_pnt( 0.0, 0.5, 0.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 0.5, 0.5 );
1719 myarccircle->SetTrimmingParameters(
DTK_PI / 2.0, 3.0 *
DTK_PI / 2.0 );
1728 myellipse =
Dtk_Ellipse::Create(
Dtk_pnt( 0.5, 0.25, 0.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 0.25, 0.1 );
1732 myarcellipse =
Dtk_Ellipse::Create(
Dtk_pnt( 0.5, 0.75, 0.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 0.25, 0.1 );
1733 myarcellipse->SetTrimmingParameters( -1.0 *
DTK_PI / 2.0,
DTK_PI / 2.0 );
1736 myarcellipse =
Dtk_Ellipse::Create(
Dtk_pnt( 0.5, 0.75, 0.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 0.25, 0.1 );
1737 myarcellipse->SetTrimmingParameters(
DTK_PI / 2.0, 3.0 *
DTK_PI / 2.0 );
1747 myshell->AddWire( ArrayPoint );
1748 myshell->AddWire( ArrayCurve );
1750 mybody->AddWireShell( myshell );
1753 mybody->info()->SetColor(
Dtk_RGB( 255, 0, 0 ) );
1754 mybody->info()->SetName( L
"CreateEsquisse2D" );
1759 mybody->Transform( transfo );
1763 ArrayMetadataEntity.
push_back( metadata );
1764 mybody->info()->SetMetaData( ArrayMetadataEntity );
◆ CreateEsquisse3D()
Creates a 3D wireframe sketch body containing points, lines, NURBS splines, circles, arc circles, ellipses, and arc ellipses.
Creates a 3D wireframe sketch body containing points, lines, circles, arc circles, ellipses, arc ellipses, and NURBS.
1619 mypoint->info()->SetColor(
Dtk_RGB( 255, 0, 0 ) );
1621 name.add_int( (
int )i );
1622 mypoint->info()->SetName( name );
1638 myellipse =
Dtk_Ellipse::Create(
Dtk_pnt( -10.0 + 10 * i, 15, 0.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 4.0, 2.5 );
1651 for(
Dtk_Size_t i = 0; i < NbArcCircle; i++ )
1656 myellipse->SetTrimmingParameters( 0.0,
DTK_PI );
1663 myellipse =
Dtk_Ellipse::Create(
Dtk_pnt( -10.0 + 10 * i, 35, 3.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 3.0, 1.0 );
1667 for(
Dtk_Size_t i = 0; i < NbArcEllipse; i++ )
1670 myellipse =
Dtk_Ellipse::Create(
Dtk_pnt( -10.0 + 10 * i, 40, 2.0 ),
Dtk_dir( 0.0, 0.0, 1.0 ),
Dtk_dir( 1.0, 0.0, 0.0 ), 3.0, 1.0 );
1671 myellipse->SetTrimmingParameters( 0.0,
DTK_PI );
1681 myshell->AddWire( ArrayPoint );
1682 myshell->AddWire( ArrayCurve );
1684 mybody->AddWireShell( myshell );
1687 mybody->info()->SetColor(
Dtk_RGB( 255, 0, 0 ) );
1688 mybody->info()->SetName( L
"CreateEsquisse3D" );
1692 ArrayMetadataEntity.
push_back( metadata );
1693 mybody->info()->SetMetaData( ArrayMetadataEntity );
◆ CreateFdtDatum()
Creates simple Datum.
Creates a simple datum FDT symbol ("A") with a leader, frame, and white text.
19 Dtk_pnt arrow_location( 0., 0. );
32 Dtk_bool horiz_vert = 0, mirror = 0, font_index = 0;
40 text_style.
Slant() = slant;
46 double XLen = 5., YLen = 5.;
47 Dtk_dir XDir( 1., 0., 0. ), YDir( 0., 0., 1. );
64 Dtk_Text dtk_text( str, inbox, inbox, dtk_align, text_type, horiz_vert, text_info, text_style, slant, font_index, mirror );
74 framePolyline->AddPoint(
Dtk_pnt( 5., 28. ) );
75 framePolyline->AddPoint(
Dtk_pnt( -5., 28. ) );
76 framePolyline->AddPoint(
Dtk_pnt( -5., 18. ) );
83 leader_info->
SetColor( 255, 255, 255 );
84 leader->GetInfo() = leader_info;
86 symbol->AddLeader( leader );
95 fdt->Transform( fdt_transf );
100 fdt_info->
SetName(
"Datum:1" );
101 fdt->info() = fdt_info;
105 ArrayMetadataEntity.
push_back( metadata );
106 fdt->info()->SetMetaData( ArrayMetadataEntity );
◆ CreateGeometricalTolerance()
| Dtk_FdtPtr sampleWriter::CreateGeometricalTolerance |
( |
| ) |
|
Creates a geometric tolerance FDT: cylindricity position tolerance | 0.02(M) | A |.
Creates a geometric tolerance FDT (cylindricity tolerance) with a leader and frame.
232 Dtk_bool horiz_vert = 0, mirror = 0, font_index = 0;
235 Dtk_dir x_dir( 1, 0, 0 ), normal_dir( 0, 0, 1 );
241 text_style.
Slant() = slant;
248 Dtk_pnt location_c( 0.0, 0.0 );
251 container_boxin.
Extend( -2., -2. );
262 MyGeometricalTolerance->AddToleranceSpecificationContainer( MyContainer );
270 Dtk_pnt location_v( 15.0, 0.0 );
273 container_boxvin.
Extend( -2., -2. );
276 val =
Dtk_Text( L
"0.02", container_boxvin, container_boxv, dtk_align,
DTK_Text_type::dtk_text_type_value, horiz_vert, text_info, text_style, slant, font_index, mirror );
280 Dtk_pnt locationm( 35.0, 0.0 );
283 container_boxmin.
Extend( -2., -2. );
285 Dtk_Text modifier =
Dtk_Text( L
"\u24C2", container_boxmin, container_boxm, dtk_align,
DTK_Text_type::dtk_text_type_modifier, horiz_vert, text_info, text_style, slant, font_index, mirror );
292 Dtk_pnt locationA( 50.0, 0.0 );
295 container_boxAin.
Extend( -2., -2. );
299 A_Block->AddReference( L
"A" );
300 RefFrame->AddReferenceBlock( A_Block );
304 MyToleranceSpecification->SetMainValue( fulltext );
307 MyContainer->AddToleranceSpecification( MyToleranceSpecification );
313 fdt_info->
SetColor( 255, 255, 255 );
314 fdt_info->
SetName(
"GeometricalTolerance" );
315 fdt->info() = fdt_info;
◆ CreateInfinitePlane()
Creates a reference body flagged as an infinite plane (InfiniteGeometryFlag + RefEntityFlag), with color and metadata.
Creates a reference plane flagged as infinite , with color and metadata.
1515 mybody->info()->SetInfiniteGeometryFlag(
DTK_TRUE );
1516 mybody->get_info()->SetRefEntityFlag(
DTK_TRUE );
1518 mybody->info()->SetColor(
Dtk_RGB( 255, 0, 0, 255 ) );
1519 mybody->info()->SetName( L
"myplan" );
1523 ArrayMetadataEntity.
push_back( metadata );
1524 mybody->info()->SetMetaData( ArrayMetadataEntity );
1533 plane->SetTrimUVBox( dom );
◆ CreateMeshCube()
Mesh Cube sample.
Creates a unit cube triangulated mesh (12 triangles, 24 vertices with normals).
220 CreateMeshCubeGeometry( vertices, normals, uCoords, vCoords );
227 outCubeMesh->
add_vertex( &( vertices.
at( i ) ), &( normals.
at( i ) ), NULL, uCoords[ i ], vCoords[ i ] );
233 CreateMeshCubeFaces( outCubeMesh );
◆ CreateMeshCubeVertexColor()
| Dtk_MeshPtr sampleWriter::CreateMeshCubeVertexColor |
( |
| ) |
|
Creates a unit cube mesh with per-vertex color data (red, green, blue, white cycling per face).
Creates a unit cube mesh with per-vertex color data.
316 CreateMeshCubeGeometry( vertices, normals, uCoords, vCoords );
323 outCubeMesh->
add_vertex( &( vertices.
at( i ) ), &( normals.
at( i ) ), &red );
324 outCubeMesh->
add_vertex( &( vertices.
at( i + 1 ) ), &( normals.
at( i + 1 ) ), &green );
325 outCubeMesh->
add_vertex( &( vertices.
at( i + 2 ) ), &( normals.
at( i + 2 ) ), &blue );
326 outCubeMesh->
add_vertex( &( vertices.
at( i + 3 ) ), &( normals.
at( i + 3 ) ), &all );
332 CreateMeshCubeFaces( outCubeMesh );
◆ CreateMeshCuboid()
Creates an axis-aligned cuboid mesh from two opposite corner points.
Creates a cuboid (axis-aligned box) mesh from two opposite corner points.
473 inPoints.
first = inFirstPoint;
474 inPoints.
second = inSecondPoint;
477 CreateMeshCubeidGeometry( vertices, normals, uCoords, vCoords, inPoints );
483 outCuboidMesh->
add_vertex( &( vertices.
at( i ) ), &( normals.
at( i ) ), NULL, uCoords[ i ], vCoords[ i ] );
489 CreateMeshCubeFaces( outCuboidMesh );
496 return outCuboidMesh;
◆ CreateMeshCylinder()
| Dtk_MeshPtr sampleWriter::CreateMeshCylinder |
( |
int |
nbpoints | ) |
|
Mesh Cylinder sample.
Creates a cylinder mesh with circular caps and lateral surface, tessellated with the given number of circle points.
359 double angle = i * 2 *
DTK_PI / nbpoints;
374 Dtk_RGB rgb( 255, 255, 0, 128 );
382 ArrayMetadataEntity.
push_back( metadata );
385 return outCylinderMesh;
◆ CreateMeshPoints()
Points mesh sample.
Creates a point cloud mesh.
446 double coords[ 8 ][ 3 ] = { {-1,-1,-1},{-1,-1,1},{-1,1,-1},{-1,1,1},
447 {1,-1,-1},{1,-1,1},{1,1,-1},{1,1,1} };
449 for( i = 0; i < 8; i++ )
451 Dtk_pnt P( coords[ i ][ 0 ], coords[ i ][ 1 ], coords[ i ][ 2 ] );
◆ CreateMeshWire()
Wire mesh sample.
Creates a wireframe (polyline) mesh.
410 numVertices = vertices.
size();
411 for( i = 0; i < numVertices; i++ )
◆ CreateMixedBody()
Creates a mixed body combining a closed BRep cube (solid) with additional free surfaces and wireframe curves in the same body.
Creates a body combining both BRep faces and wireframe curves in a single body.
1842 cyl->SetTrimUVBox( domain );
1844 cyl->info()->SetColor(
Dtk_RGB( 255, 0, 0 ) );
1850 cyl->SetTrimUVBox( domain2 );
1852 cyl->info()->SetColor(
Dtk_RGB( 0, 255, 0 ) );
◆ CreateModelDisplayActivated()
Creates an activated (visible) model display "MyView1" with a perspective camera.
Creates an activated model display (visible view state).
330 resMD->info()->SetName(
"MyView1" );
◆ CreateModelDisplayDesactivated()
Creates a deactivated (hidden) model display "MyView2" with an orthographic camera.
Creates a deactivated model display (hidden view state with section).
344 resMD->info()->SetName(
"MyView2" );
◆ CreateModelDisplayWithSection()
Creates a deactivated model display "MySectionView" with a section cut plane applied.
Creates a model display with an active section cut plane.
356 resMD->info()->SetName(
"MySectionView" );
◆ CreateOpenShell()
Creates an open shell body containing a single trimmed cylindrical surface (half cylinder, not closed).
Creates an open shell body (a trimmed cylindrical surface).
1358 cyl->SetTrimUVBox( domain );
◆ CreateOpenShell_2()
Creates an open shell body (trimmed cylindrical surface) augmented with open-shell attributes.
Creates an open shell body (5 faces) augmented with open-shell validation properties.
1100 cyl->SetTrimUVBox( domain );
◆ CreatePoint()
Creates a wireframe body containing a single named red point with metadata.
Creates a wireframe body containing a single named point with color and metadata.
1495 mypoint->info()->SetColor(
Dtk_RGB( 255, 0, 0 ) );
1496 mypoint->info()->SetName(
"mypoint" );
1500 ArrayMetadataEntity.
push_back( metadata );
1501 mypoint->info()->SetMetaData( ArrayMetadataEntity );
1505 myshell->AddWire( mypoints );
1506 mybody->AddWireShell( myshell );
◆ CreateTexturedMeshCube()
Textured Mesh Cube sample.
Creates a unit cube mesh with UV texture coordinates, referencing an image from the given directory.
280 meshTexture->SetImagePath( inImageDirectory +
"sample.bmp" );
281 meshTexture->SetScale( 2., 2. );
283 outCubeMesh->info()->AddRenderInfos( meshRender );
284 outCubeMesh->info()->SetName(
"TexturedMesh" );
289 faceTexture->SetImagePath( inImageDirectory +
"logodtk.bmp" );
290 faceTexture->SetScale( 2., 2. );
292 if( outCubeMesh->get_mesh_face( 2 )->info().
IsNULL() )
294 outCubeMesh->get_mesh_face( 2 )->info()->AddRenderInfos( faceRender );
◆ FillFacesColors()
| void sampleWriter::FillFacesColors |
( |
Dtk_MeshPtr & |
inoutCubeMesh | ) |
|
Filling mesh faces with colors.
Applies distinct per-face colors to an existing cube mesh (modifies the mesh in place).
248 inoutCubeMesh->get_mesh_face( 0 )->info() = infoFace0;
252 inoutCubeMesh->get_mesh_face( 1 )->info() = infoFace1;
256 inoutCubeMesh->get_mesh_face( 2 )->info() = infoFace2;
260 inoutCubeMesh->get_mesh_face( 3 )->info() = infoFace3;
264 inoutCubeMesh->get_mesh_face( 4 )->info() = infoFace4;
268 inoutCubeMesh->get_mesh_face( 5 )->info() = infoFace5;
@ Coedge0_DC
Definition: testcreatecube.cpp:45
static Dtk_SmartPtr< Dtk_Info > Create()
Calls default constructor to allocate a new object.
@ Coedge3_HC
Definition: testcreatecube.cpp:59
static Dtk_ModelDisplayPtr Create(const Dtk_CameraPtr &inCamera, const Dtk_EntityPtr &inClippingEntity, const Dtk_bool inIsActivated)
Calls full featured constructor to allocate a new object.
static Dtk_ToleranceSpecificationPtr Create()
Calls default constructor to allocate a new object.
@ Loop5_EHCA
Definition: testcreatecube.cpp:70
Definition: util_stl_dtk.hpp:921
#define DTK_MESH_NORMAL
Definition: util_mesh_dtk.hpp:31
@ Edge_GD
Definition: testcreatecube.cpp:36
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
This is a high level face class.
Definition: util_mesh_dtk.hpp:1076
void SetRGBA(const int &inRed, const int &inGreen, const int &inBlue, const int &inAlpha=-1)
Definition: dtk_rgb.hpp:51
static Dtk_TextureInfosPtr Create(const TextureMappingTypeEnum &inType)
Create a Dtk_TextureInfosPtr.
@ Coedge3_GD
Definition: testcreatecube.cpp:55
Dtk_ErrorStatus AddAttribute(Dtk_string name, Dtk_Val val)
static Dtk_PlaneSurfacePtr Create(const Dtk_pnt &inOrigin, const Dtk_dir &inNormal, const Dtk_dir &inUDirection, const Dtk_dir &inVDirection=Dtk_dir())
Create an infinite plane surface.
@ Vertex_A
Definition: testcreatecube.cpp:21
Dtk_ErrorStatus SetName(Dtk_string inName)
@ Edge_FB
Definition: testcreatecube.cpp:34
Dtk_MeshPtr CreateMeshCube()
Mesh Cube sample.
Definition: testcreatemesh.cpp:207
This is the text_style. This class gathers information about text style.
Definition: util_draw_dtk.hpp:242
@ Coedge5_CA
Definition: testcreatecube.cpp:44
void setOrigin(const Dtk_pnt &O)
Set a new O center point.
void setZdir(const Dtk_dir &Z)
Set a new Z vector.
@ Shell
Definition: testcreatecube.cpp:20
@ Edge_FE
Definition: testcreatecube.cpp:35
static Dtk_LoopPtr Create(const Dtk_BodyPtr &inParentBody)
Create a loop in a body.
@ Coedge4_HG
Definition: testcreatecube.cpp:62
@ Coedge5_EH
Definition: testcreatecube.cpp:64
#define DTK_TRUE
Definition: define.h:726
static Dtk_ToleranceSpecificationContainerPtr Create(const Dtk_ToleranceSpecificationContainer &in)
Calls copy constructor to allocate a new object.
@ dtk_text_type_value
Definition: str_def.h:14
uint32_t Dtk_UInt32
Definition: define.h:687
This is a high level string class.
Definition: dtk_string.hpp:53
@ DTK_ANCHOR_BOTTOM_LEFT
Definition: util_draw_dtk.hpp:99
size_t Dtk_Size_t
Definition: define.h:711
@ Volume
Definition: testcreatecube.cpp:19
@ Coedge4_GF
Definition: testcreatecube.cpp:58
int add_triangle_strip(const Dtk_tab< Dtk_UInt32 > *inIndices)
Add one triangle strip.
@ Edge_BD
Definition: testcreatecube.cpp:32
This is the base text class. It's part of Dtk_CompositeText. This class represents the texts and valu...
Definition: util_draw_dtk.hpp:1041
@ Edge_HC
Definition: testcreatecube.cpp:38
static Dtk_RenderInfosPtr Create(const Dtk_string &inName)
Creates a Dtk_RenderInfosPtr.
Dtk_ErrorStatus SetMetaData(Dtk_tab< Dtk_MetaDataPtr > &inArray)
@ Coedge5_EA
Definition: testcreatecube.cpp:50
@ Coedge3_HG
Definition: testcreatecube.cpp:61
static Dtk_BodyPtr Create()
Create a body.
#define DTK_MESH_XYZ
Definition: util_mesh_dtk.hpp:30
static Dtk_LightMapPtr Create(Dtk_RGB inAmbiant, Dtk_RGB inDiffuse, Dtk_RGB inSpecular)
Create a Dtk_LightMapPtr.
#define DTK_FALSE
Definition: define.h:727
Dtk_ErrorStatus AddOuterLoop(const Dtk_LoopPtr &inLoop)
Add outer loop on a face.
@ Edge_CA
Definition: testcreatecube.cpp:30
@ Coedge0_BD
Definition: testcreatecube.cpp:47
char Dtk_bool
Definition: define.h:724
Dtk_Double64 & Slant()
Retrieves the text slant - get/set -.
int add_vertex(const Dtk_pnt *inVertex, const Dtk_dir *inNormal=NULL, const Dtk_RGB *inColor=NULL, Dtk_Float32 inU=0., Dtk_Float32 inV=0., Dtk_Float32 inUBrep=0., Dtk_Float32 inVBrep=0.)
Add a vertex to the mesh vertices list.
void SetTexture(const Dtk_TextureInfosPtr &inTexture)
Sets the render texture information.
static Dtk_SymbolPtr Create()
Calls default constructor to allocate a new object.
#define DTK_MESH_UV_TEXTURES
Definition: util_mesh_dtk.hpp:33
@ DTK_ANCHOR_MIDDLE_CENTER
Definition: util_draw_dtk.hpp:97
@ Coedge2_GF
Definition: testcreatecube.cpp:57
@ Edge_EH
Definition: testcreatecube.cpp:40
double Dtk_Double64
Definition: define.h:698
@ Vertex_H
Definition: testcreatecube.cpp:28
void setXdir(const Dtk_dir &X)
Set a new X vector.
@ Coedge2_FB
Definition: testcreatecube.cpp:52
This is a high level mesh class.
Definition: util_mesh_dtk.hpp:694
@ DistanceDimension
Definition: util_draw_dtk.hpp:4553
T1 first
Definition: util_stl_dtk.hpp:923
Dtk_Double64 & CharWidth()
Retrieves the char width - get/set -.
@ FaceABCD
Definition: testcreatecube.cpp:71
Definition: dtk_val.hpp:67
int add_subinfo(Dtk_InfoPtr &ininf)
static Dtk_FacePtr Create(const Dtk_BodyPtr &inParentBody)
Create a face in a body.
@ Vertex_G
Definition: testcreatecube.cpp:27
@ Coedge4_FE
Definition: testcreatecube.cpp:56
#define DTK_MESH_RGB
Definition: util_mesh_dtk.hpp:32
@ DTK_DASHED
Definition: util_ent_dtk.hpp:51
@ Loop0_ABCD
Definition: testcreatecube.cpp:65
@ FaceABFE
Definition: testcreatecube.cpp:72
static Dtk_ReferenceBlockPtr Create(const Dtk_Oriented2dBBox &inInnerBBox, const Dtk_Oriented2dBBox &inOuterBBox)
Calls full featured constructor to allocate a new object.
@ FaceGDCH
Definition: testcreatecube.cpp:74
@ Coedge3_DC
Definition: testcreatecube.cpp:46
@ Vertex_B
Definition: testcreatecube.cpp:22
@ FaceEFGH
Definition: testcreatecube.cpp:75
static Dtk_ReferenceFramePtr Create()
Calls default constructor to allocate a new object.
static Dtk_SmartPtr< Dtk_AxisSystem > Create()
Calls default constructor to allocate a new object.
@ Edge_EA
Definition: testcreatecube.cpp:33
@ Edge_AB
Definition: testcreatecube.cpp:29
Dtk_anchor_type
Definition: util_draw_dtk.hpp:92
@ Edge_GF
Definition: testcreatecube.cpp:37
DTK_Text_type
Definition: str_def.h:11
int32_t Dtk_Int32
Definition: define.h:686
void resize(Dtk_Size_t n, const T &t)
Resizes the array.
Definition: util_stl_dtk.hpp:604
@ DTK_DOTTED
Definition: util_ent_dtk.hpp:57
@ TypeDatum
Definition: util_draw_dtk.hpp:5987
@ Coedge2_GD
Definition: testcreatecube.cpp:54
@ Loop1_ABFE
Definition: testcreatecube.cpp:66
static Dtk_DimensionPtr Create()
Calls default constructor to allocate a new object.
DimensionTypeEnum
Definition: util_draw_dtk.hpp:4533
static Dtk_LumpPtr Create(const Dtk_BodyPtr &inParentBody)
Create a lump in a body.
@ Vertex_D
Definition: testcreatecube.cpp:24
int add_point(Dtk_UInt32 inpnt)
T2 second
Definition: util_stl_dtk.hpp:924
static Dtk_SmartPtr< T > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
void set_mesh_color(const Dtk_RGB &inColor)
set color in Dtk_mesh
@ Coedge1_FB
Definition: testcreatecube.cpp:51
@ Vertex_C
Definition: testcreatecube.cpp:23
Dtk_bool IsNULL() const
Definition: util_ptr_dtk.hpp:118
static Dtk_FdtPtr Create()
Calls default constructor to allocate a new object.
void SetGeom(const Dtk_SurfacePtr &inSurface)
Set Geometry.
static Dtk_NurbsCurvePtr Create(const Dtk_NurbsCurve &in)
Calls copy constructor to allocate a new object.
void setScale(Dtk_Double64 scale)
Set a new scale.
Definition: util_ptr_dtk.hpp:37
static Dtk_EdgePtr Create(const Dtk_BodyPtr &inParentBody)
Create an edge in a body.
@ FaceFBDG
Definition: testcreatecube.cpp:73
@ Lump
Definition: testcreatecube.cpp:18
static Dtk_PointPtr Create(const Dtk_Point &in)
Calls copy constructor to allocate a new object.
@ Coedge1_EA
Definition: testcreatecube.cpp:49
void setYdir(const Dtk_dir &Y)
Set a new Y vector.
@ dtk_text_type_modifier
Definition: str_def.h:21
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
@ Coedge4_EH
Definition: testcreatecube.cpp:63
This is the composite text class. It's basically a Dtk_Text Container. This class represents a group ...
Definition: util_draw_dtk.hpp:1445
@ Coedge2_BD
Definition: testcreatecube.cpp:48
static Dtk_LeaderPtr Create()
Calls default constructor to allocate a new object.
static Dtk_CameraPtr Create()
Calls default constructor to allocate a new object.
Dtk_ModelDisplayPtr CreateModelDisplayActivated()
Creates an activated (visible) model display "MyView1" with a perspective camera.
Definition: testcreatefdt.cpp:321
@ TerminatorTypeClosedArrow
Definition: util_draw_dtk.hpp:1858
static Dtk_LinePtr Create(const Dtk_Line &in)
Calls copy constructor to allocate a new object.
Dtk_Double64 & CharHeight()
Retrieves the char height - get/set -.
This is a high level array class.
Definition: util_stl_dtk.hpp:84
static Dtk_VertexPtr Create(const Dtk_BodyPtr &inParentBody)
Create a vertex in a body.
static Dtk_CoedgePtr Create(const Dtk_BodyPtr &inParentBody)
Create a coedge in a body.
Dtk_BodyPtr CreateCube()
Creates a 100x100x100 mm closed BRep cube body. Builds the full BRep hierarchy (Vertex,...
Definition: testcreatecube.cpp:1325
Dtk_Size_t size() const
Returns the size of the array.
Definition: util_stl_dtk.hpp:503
@ FaceEHCA
Definition: testcreatecube.cpp:76
@ Vertex_F
Definition: testcreatecube.cpp:26
@ Coedge5_HC
Definition: testcreatecube.cpp:60
@ Coedge1_AB
Definition: testcreatecube.cpp:42
@ Coedge0_AB
Definition: testcreatecube.cpp:41
LeaderTerminatorTypeEnum
Internal leader terminator type.
Definition: util_draw_dtk.hpp:1852
T & at(Dtk_Size_t k)
Definition: util_stl_dtk.hpp:397
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:416
static Dtk_ShellPtr Create(const Dtk_BodyPtr &inParentBody)
Create a shell in a body.
@ DTK_FRAME_TYPE_RECTANGLE
Definition: util_draw_dtk.hpp:129
@ Coedge0_CA
Definition: testcreatecube.cpp:43
static Dtk_GeometricalTolerancePtr Create()
Calls default constructor to allocate a new object.
void clear(int no_delete=0)
Resets the Dtk_tab content.
Definition: util_stl_dtk.hpp:352
void AddText(Dtk_Text inText)
Adds a Dtk_Text to the Dtk_CompositeText.
@ Edge_DC
Definition: testcreatecube.cpp:31
@ CubicalMapping
Definition: dtk_render.hpp:39
static Dtk_EllipsePtr Create(const Dtk_Ellipse &in)
Calls copy constructor to allocate a new object.
Definition: dtk_rgb.hpp:8
Dtk_ErrorStatus SetColor(const int &R, const int &G, const int &B)
This is the base bounding box class. It's used into a lot of 2D Entities This class represents the ba...
Definition: util_draw_dtk.hpp:450
@ Coedge1_FE
Definition: testcreatecube.cpp:53
static Dtk_PolylinePtr Create(const Dtk_Polyline &in)
Calls copy constructor to allocate a new object.
int add_mesh_face(Dtk_mesh_face *inMesh_face)
Add a face (Dtk_mesh_face) to the mesh.
This is a mathematical direction class.
Definition: dtk_dir.hpp:14
void Extend(const Dtk_Double64 &inXExtend, const Dtk_Double64 &inYExtend)
Extend the bounding box.
int add_polyline(const Dtk_tab< Dtk_UInt32 > *inIndices)
Add one polyline.
int add_points(const Dtk_tab< Dtk_UInt32 > *pnts)
@ Vertex_E
Definition: testcreatecube.cpp:25
static Dtk_VolumePtr Create(const Dtk_BodyPtr &inParentBody)
Create a volume in a body.
@ TypePosition
Definition: util_draw_dtk.hpp:5719
#define DTK_PI
Definition: str_def.h:8
@ Loop3_GDCH
Definition: testcreatecube.cpp:68
@ Loop4_EFGH
Definition: testcreatecube.cpp:69
@ Loop2_FBDG
Definition: testcreatecube.cpp:67
@ Edge_HG
Definition: testcreatecube.cpp:39
static Dtk_CylindricalSurfacePtr Create(const Dtk_pnt &inOrigin, const Dtk_dir &inNormal, const Dtk_dir &inUDirection, const Dtk_Double64 &inRadius, const Dtk_dir &inYDirection=Dtk_dir())
Create an infinite cylinder.