DGtal
2.1.0
Loading...
Searching...
No Matches
viewer3D-1-points.cpp
Go to the documentation of this file.
1
38
#include <iostream>
39
40
#include "DGtal/base/Common.h"
41
#include "DGtal/helpers/StdDefs.h"
42
#include "DGtal/io/Display3D.h"
43
#include "DGtal/io/viewers/PolyscopeViewer.h"
45
46
using namespace
std
;
47
using namespace
DGtal
;
48
using namespace
Z3i;
49
50
52
// Standard services - public :
53
54
int
main
()
55
{
56
PolyscopeViewer
v;
57
58
Point
p1( 0, 0, 0 );
59
Point
p2( 5, 5 ,5 );
60
Point
p3( 2, 3, 4 );
61
Domain
domain
( p1, p2 );
62
63
// Drawing can happen with draw function
64
v.
draw
(p1);
65
// Or stream operators that can be chained
66
v << p2 << p3;
67
// Draw operator allows to retrieve the name (id) of an object
68
std::string name = v.
draw
(
domain
);
69
trace
.
info
() << name << std::endl;
70
71
v.
show
();
72
return
0;
73
}
74
// //
DGtal::Display3D::draw
std::string draw(const Point &p, const std::string &uname="Point_{i}")
DGtal::HyperRectDomain< Space >
DGtal::PointVector< dim, Integer >
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::Trace::info
std::ostream & info()
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::trace
Trace trace
std
STL namespace.
domain
Domain domain
Definition
testProjection.cpp:88
main
int main()
Definition
viewer3D-1-points.cpp:54
examples
io
viewers
viewer3D-1-points.cpp
Generated on Tue Aug 26 2025 14:27:42 for DGtal by
1.9.8