Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal 2.0.0
demo-kernel-2.cpp
Go to the documentation of this file.
1
16
28
29
36
37
38
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
51using namespace std;
52using namespace DGtal;
53
55
56int main( int argc, char** argv )
57{
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// //
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
void show() override
Starts the event loop and display of elements.
DGtal is the top-level namespace which contains all DGtal functions and types.
STL namespace.
int main()
Definition testBits.cpp:56
Domain domain