47#include "DGtal/base/Common.h"
48#include "DGtal/io/viewers/PolyscopeViewer.h"
49#include "DGtal/io/Color.h"
50#include "DGtal/shapes/Shapes.h"
51#include "DGtal/helpers/StdDefs.h"
72 Point p1( -50, -50, -50 );
73 Point p2( 50, 50, 50 );
76 trace.
warning() <<
"Constructing a ring DigitalSet ... ";
80 if ( ((*it - c ).norm() <= 25) && ((*it - c ).norm() >= 18)
81 && ( (((*it)[0] <= 3)&& ((*it)[0] >= -3))|| (((*it)[1] <= 3)&& ((*it)[1] >= -3)))){
94 std::queue<DigitalSet::Iterator> Q;
97#ifdef DGTAL_WITH_OPENMP
98 std::vector<DigitalSet::Iterator> v( S.
size() );
99 std::vector<uint8_t> b( v.size() );
100 for (
size_t i = 0; it != itE; ++it, ++i )
102#pragma omp parallel for schedule(dynamic)
103 for (
size_t i = 0; i < v.size(); ++i )
104 b[ i ] = shape.
isSimple( *(v[ i ]) );
106 for (
size_t i = 0; i < v.size(); ++i )
107 if ( b[ i ] ) Q.push( v[ i ] );
109 for ( ; it != itE; ++it )
114 while ( ! Q.empty() )
125 while ( nb_simple != 0 );
131 viewer <<
Color(25,25,255, 255);
134 viewer <<
Color(250, 0,0, 25);
Structure representing an RGB triple with alpha component.
Aim: A wrapper class around a STL associative container for storing sets of digital points within som...
void insertNew(const Point &p)
ConstIterator end() const
Container::iterator Iterator
Iterator type of the container.
ConstIterator begin() const
Size erase(const Point &p)
Iterator for HyperRectDomain.
const ConstIterator & begin() const
const ConstIterator & end() const
Aim: An object (or digital object) represents a set in some digital space associated with a digital t...
const DigitalSet & pointSet() const
bool isSimple(const Point &v) const
void show() override
Starts the event loop and display of elements.
void beginBlock(const std::string &keyword="")
static const DT18_6 dt18_6
DGtal is the top-level namespace which contains all DGtal functions and types.