DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
io/viewers/demo-kernel-2.cpp
Example of
Domain
and
Point
display in
PolyscopeViewer
.
See also
Display3D: a stream mechanism for displaying 3D DGtal objects
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/io/viewers/PolyscopeViewer.h"
using namespace
std
;
using namespace
DGtal
;
int
main
()
{
typedef
DGtal::SpaceND<3, DGtal::int32_t>
MySpace;
typedef
MySpace::Point
MyPoint
;
typedef
HyperRectDomain<MySpace>
MyDomain;
MyPoint
p1( 0, 0, 0 );
MyPoint
p2( 5, 5 ,5 );
MyPoint
p3( 2, 3, 4 );
MyDomain
domain
( p1, p2 );
PolyscopeViewer<> viewer;
// for 3D visualization
viewer <<
domain
;
viewer << p1 << p2 << p3;
viewer.
show
();
return
0;
}
// //
DGtal::HyperRectDomain
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
Definition
HyperRectDomain.h:100
DGtal::PolyscopeViewer::show
void show() override
Starts the event loop and display of elements.
Definition
PolyscopeViewer.h:73
DGtal::SpaceND
Definition
SpaceND.h:96
MyPoint
Definition
testClone2.cpp:314
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
std
STL namespace.
main
int main(int, char **)
Definition
testIntegerComputer.cpp:331
domain
Domain domain
Definition
testProjection.cpp:88
Generated on
for DGtal by
1.18.0