54#include "DGtal/base/Common.h"
55#include "DGtal/helpers/StdDefs.h"
56#include "ConfigExamples.h"
57#include "DGtal/geometry/curves/GridCurve.h"
59#ifdef DGTAL_WITH_POLYSCOPE
60 #include "DGtal/io/viewers/PolyscopeViewer.h"
71int main(
int argc,
char** argv )
75 trace.info() <<
"exampleGridCurve3d: the type of data to be displayed "
76 <<
"may be given as argument as follows: "
77 << argv[0] <<
" scells" << endl;
78 trace.info() <<
"Available types are: gridcurve (default), scells, points, midpoints, arrows" << endl;
80 string type = (argc > 1) ?
string(argv[1]) :
"arrows";
81 trace.info() <<
"Chosen type: " << type << endl;
84 string sinus = examplesPath +
"samples/sinus.dat";
91 K3 ks; ks.
init( lowerBound, upperBound,
true );
97 inputStream.open (sinus.c_str(), ios::in);
104#ifdef DGTAL_WITH_POLYSCOPE
107 if (type ==
"gridcurve")
111 else if (type ==
"scells")
115 else if (type ==
"points")
119 else if (type ==
"midpoints")
123 else if (type ==
"arrows")
129 trace.info() <<
"Display type not known." << std::endl;
71int main(
int argc,
char** argv ) {
…}
Aim: describes, in a cellular space of dimension n, a closed or open sequence of signed d-cells (or d...
SCellsRange getSCellsRange() const
MidPointsRange getMidPointsRange() const
bool initFromVectorStream(std::istream &in)
PointsRange getPointsRange() const
ArrowsRange getArrowsRange() const
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
static Self diagonal(Component val=1)
void show() override
Starts the event loop and display of elements.
Z3i this namespace gathers the standard of types for 3D imagery.
DGtal is the top-level namespace which contains all DGtal functions and types.