DGtal
2.1.0
Loading...
Searching...
No Matches
demo-kernel-2.cpp
Go to the documentation of this file.
1
40
#include <iostream>
41
42
#include "DGtal/base/Common.h"
43
#include "DGtal/kernel/SpaceND.h"
44
#include "DGtal/helpers/StdDefs.h"
45
#include "DGtal/kernel/domains/HyperRectDomain.h"
46
#include "DGtal/io/boards/Board2D.h"
47
#include "DGtal/io/viewers/PolyscopeViewer.h"
48
50
51
using namespace
std
;
52
using namespace
DGtal
;
53
55
56
int
main
()
57
{
58
typedef
DGtal::SpaceND<3, DGtal::int32_t>
MySpace;
59
typedef
MySpace::Point
MyPoint
;
60
typedef
HyperRectDomain<MySpace>
MyDomain;
61
MyPoint
p1( 0, 0, 0 );
62
MyPoint
p2( 5, 5 ,5 );
63
MyPoint
p3( 2, 3, 4 );
64
MyDomain
domain
( p1, p2 );
65
PolyscopeViewer<>
viewer;
// for 3D visualization
66
viewer <<
domain
;
67
viewer << p1 << p2 << p3;
68
viewer.
show
();
69
return
0;
70
}
71
// //
DGtal::HyperRectDomain
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
Definition
HyperRectDomain.h:100
DGtal::PolyscopeViewer
Definition
PolyscopeViewer.h:52
DGtal::PolyscopeViewer::show
void show() override
Starts the event loop and display of elements.
Definition
PolyscopeViewer.h:68
DGtal::SpaceND
Definition
SpaceND.h:96
MyPoint
Definition
testClone2.cpp:314
main
int main()
Definition
demo-kernel-2.cpp:56
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
std
STL namespace.
domain
Domain domain
Definition
testProjection.cpp:88
examples
io
viewers
demo-kernel-2.cpp
Generated on Tue Aug 26 2025 14:27:42 for DGtal by
1.9.8