DGtal 1.4.0
Loading...
Searching...
No Matches
display3DToOFF.cpp
Go to the documentation of this file.
1
39#include <iostream>
40#include "DGtal/base/Common.h"
41#include "DGtal/io/readers/VolReader.h"
42#include "DGtal/io/Display3D.h"
43
44#include "DGtal/io/DrawWithDisplay3DModifier.h"
45#include "DGtal/images/ImageSelector.h"
46#include "DGtal/images/imagesSetsUtils/SetFromImage.h"
47#include "DGtal/helpers/StdDefs.h"
48#include "ConfigExamples.h"
49
50
51using namespace std;
52using namespace DGtal;
53using namespace Z3i;
54
55
56int main( int /*argc*/, char** /*argv*/ )
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
DGtal is the top-level namespace which contains all DGtal functions and types.
STL namespace.
ImageContainerBySTLVector< Domain, Value > Type
static void append(Set &aSet, const ForegroundPredicate &isForeground, typename Image::Domain::ConstIterator itBegin, typename Image::Domain::ConstIterator itEnd)
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())
int main()
Definition testBits.cpp:56
ImageContainerBySTLVector< Domain, Value > Image