DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
viewer3D-6-clipping.cpp
Go to the documentation of this file.
1
16
29
36
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
#include "DGtal/io/Color.h"
46
48
49
using namespace
std
;
50
using namespace
DGtal
;
51
using namespace
Z3i
;
52
53
55
// Standard services - public :
56
57
int
main
()
58
{
59
PolyscopeViewer
viewer;
60
61
Point
p1( 0, 0, 0 );
62
Point
p2( 20, 20, 20 );
63
Domain
domain
(p1, p2);
64
DigitalSet
shape_set(
domain
);
65
66
Shapes<Domain>::addNorm2Ball
( shape_set,
Point
( 10, 10, 10 ), 7 );
67
68
viewer << shape_set;
69
70
viewer <<
Color
(250, 200,0, 100);
71
viewer <<
ClippingPlane
(1,0,0,-4.9);
72
viewer <<
ClippingPlane
(0,1,0.3,-10);
73
74
viewer.
show
();
75
return
0;
76
}
77
// //
DGtal::Color::Color
Color()
Definition
Color.h:139
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::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.
DGtal::ClippingPlane::ClippingPlane
ClippingPlane(double _a, double _b, double _c, double _d)
Definition
Display3D.h:300
main
int main(int, char **)
Definition
testIntegerComputer.cpp:331
domain
Domain domain
Definition
testProjection.cpp:88
examples
io
viewers
viewer3D-6-clipping.cpp
Generated on
for DGtal by
1.18.0