Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal
2.0.0
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
Variables
a
b
d
e
f
h
i
l
m
n
o
p
s
t
v
w
x
Typedefs
a
b
c
d
e
i
k
l
n
o
p
r
s
u
v
z
Enumerations
Enumerator
a
b
c
d
e
g
h
i
j
n
o
p
s
t
u
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
c
d
e
f
h
l
m
n
o
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
l
m
o
p
r
s
t
u
v
x
y
z
Related Symbols
a
b
c
d
e
f
g
i
k
l
m
o
p
s
t
u
Examples
DGtal
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
viewer3D-4-modes.cpp
Go to the documentation of this file.
1
16
29
30
37
39
#include <iostream>
40
41
#include "DGtal/base/Common.h"
42
#include "DGtal/helpers/StdDefs.h"
43
#include "DGtal/shapes/Shapes.h"
44
#include "DGtal/io/viewers/PolyscopeViewer.h"
45
47
48
using namespace
std
;
49
using namespace
DGtal
;
50
using namespace
Z3i
;
51
52
54
// Standard services - public :
55
56
int
main
(
int
argc,
char
** argv )
57
{
58
PolyscopeViewer
viewer;
59
60
Point
p1( -1, -1, -2 );
61
Point
p2( 2, 2, 3 );
62
Point
p3( 1, 1, 1 );
63
Point
p4( 2, -1, 3 );
64
Point
p5( -1, 2, 3 );
65
Point
p6( 0, 0, 0 );
66
Point
p0( 0, 2, 1 );
67
68
Domain
domain
( p1, p2 );
69
70
viewer << p1 << p2 << p3<< p4<< p5 << p6 << p0;
71
viewer <<
domain
;
72
73
// Draws point as balls instead of cubes
74
viewer.
drawAsBalls
();
75
viewer << p1 << p2 << p3<< p4<< p5 << p6 << p0;
76
viewer <<
domain
;
77
78
// Draws a grid instead of cubes
79
viewer.
drawAsGrid
();
80
viewer <<
domain
;
81
82
viewer.
show
();
83
return
0;
84
}
56
int
main
(
int
argc,
char
** argv ) {
…
}
85
// //
DGtal::Display3D::drawAsGrid
void drawAsGrid(bool toggle=true)
DGtal::Display3D::drawAsBalls
void drawAsBalls()
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::Point
DGtal::Domain
DGtal::Z3i
Z3i this namespace gathers the standard of types for 3D imagery.
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
std
STL namespace.
main
int main()
Definition
testBits.cpp:56
domain
Domain domain
Definition
testProjection.cpp:88
examples
io
viewers
viewer3D-4-modes.cpp
Generated on
for DGtal by
1.14.0