DGtal 2.0.0
Loading...
Searching...
No Matches
demo-kernel-2.cpp File Reference
#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"
Include dependency graph for demo-kernel-2.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Author
Jacques-Olivier Lachaud (jacqu.nosp@m.es-o.nosp@m.livie.nosp@m.r.la.nosp@m.chaud.nosp@m.@uni.nosp@m.v-sav.nosp@m.oie..nosp@m.fr ) Laboratory of Mathematics (CNRS, UMR 5807), University of Savoie, France
Date
2011/03/05

An example file named demo-kernel-domain.

This file is part of the DGtal library.

Definition in file demo-kernel-2.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 56 of file demo-kernel-2.cpp.

57{
59 typedef MySpace::Point MyPoint;
60 typedef HyperRectDomain<MySpace> MyDomain;
61 MyPoint p1( 0, 0, 0 );
62 MyPoint p2( 5, 5 ,5 );
63 MyPoint p3( 2, 3, 4 );
64 MyDomain domain( p1, p2 );
65 PolyscopeViewer<> viewer; // for 3D visualization
66 viewer << domain;
67 viewer << p1 << p2 << p3;
68 viewer.show();
69 return 0;
70}
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
void show() override
Starts the event loop and display of elements.
Domain domain

References domain, and DGtal::PolyscopeViewer< Space, KSpace >::show().