DGtal 1.3.0
Loading...
Searching...
No Matches
Functions
display3DToOFF.cpp File Reference
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/io/readers/VolReader.h"
#include "DGtal/io/Display3D.h"
#include "DGtal/io/DrawWithDisplay3DModifier.h"
#include "DGtal/images/ImageSelector.h"
#include "DGtal/images/imagesSetsUtils/SetFromImage.h"
#include "DGtal/helpers/StdDefs.h"
#include "ConfigExamples.h"

Go to the source code of this file.

Functions

int main (int, char **)
 

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
Bertrand Kerautret (kerau.nosp@m.tre@.nosp@m.loria.nosp@m..fr ) LORIA (CNRS, UMR 7503), University of Nancy, France
Date
2011/03/25

An example file named display3DToOFF.

This file is part of the DGtal library.

Definition in file display3DToOFF.cpp.

Function Documentation

◆ main()

int main ( int  ,
char **   
)

[ExampleDisplay3DToOFF]

[ExampleDisplay3DToOFF]

Definition at line 56 of file display3DToOFF.cpp.

57{
58 std::string inputFilename = examplesPath + "samples/Al.100.vol";
62 Image image = VolReader<Image>::importVol(inputFilename);
63 Z3i::DigitalSet set3d (image.domain());
65
66 viewer << set3d ;
67 viewer >> "exportMeshToOFF.off";
69
70 return 0;
71}
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
Aim: This semi abstract class defines the stream mechanism to display 3d primitive (like BallVector,...
Definition: Display3D.h:93
Aim: implements association bewteen points lying in a digital domain and values.
Definition: Image.h:70
ImageContainerBySTLVector< Domain, Value > Type
Definition: ImageSelector.h:78
Aim: Define utilities to convert a digital set into an image.
Definition: SetFromImage.h:64
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())

References DGtal::VolReader< TImageContainer, TFunctor >::importVol().