DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
viewer3D-2-sets.cpp
Go to the documentation of this file.
1
16
29
30
37
38
40
#include <iostream>
41
42
#include "DGtal/base/Common.h"
43
#include "DGtal/helpers/StdDefs.h"
44
#include "DGtal/shapes/Shapes.h"
45
46
#include "DGtal/io/viewers/PolyscopeViewer.h"
47
49
50
using namespace
std
;
51
using namespace
DGtal
;
52
using namespace
Z3i
;
53
54
56
// Standard services - public :
57
58
int
main
()
59
{
61
PolyscopeViewer
v;
62
Point
p1( 0, 0, 0 );
63
Point
p2( 10, 10 , 10 );
64
Domain
domain
( p1, p2 );
65
66
v << p1 << p2 <<
domain
;
67
68
DigitalSet
shape_set(
domain
);
69
Shapes<Domain>::addNorm1Ball
( shape_set,
Point
( 5, 5, 5 ), 2 );
70
Shapes<Domain>::addNorm2Ball
( shape_set,
Point
( 3, 3, 3 ), 2 );
71
72
shape_set.
erase
(
Point
(3,3,3));
73
shape_set.
erase
(
Point
(6,6,6));
74
75
v << shape_set;
76
77
v.
show
();
79
return
0;
80
}
81
// //
DGtal::DigitalSetByAssociativeContainer::erase
Size erase(const Point &p)
DGtal::PolyscopeViewer
Definition
PolyscopeViewer.h:57
DGtal::PolyscopeViewer::show
void show() override
Starts the event loop and display of elements.
Definition
PolyscopeViewer.h:73
DGtal::Shapes::addNorm1Ball
static void addNorm1Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
DGtal::Shapes::addNorm2Ball
static void addNorm2Ball(TDigitalSet &aSet, const Point &aCenter, UnsignedInteger aRadius)
DGtal::Point
DGtal::Domain
DGtal::Z3i
Z3i this namespace gathers the standard of types for 3D imagery.
DGtal::Z3i::DigitalSet
DigitalSetSelector< Domain, BIG_DS+HIGH_BEL_DS >::Type DigitalSet
Definition
StdDefs.h:173
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
examples
io
viewers
viewer3D-2-sets.cpp
Generated on
for DGtal by
1.18.0