84 board.
saveSVG(
"voronoimap-inputset.svg");
89 NotPredicate notSetPred(set);
94 Voronoi2D voronoimap(
domain,notSetPred,l2);
100 for(Voronoi2D::Domain::ConstIterator it = voronoimap.domain().begin(),
101 itend = voronoimap.domain().end(); it != itend; ++it)
103 Voronoi2D::Value site = voronoimap( *it );
107 board.
saveSVG(
"voronoimap-voro.svg");
112 for(Voronoi2D::Domain::ConstIterator it = voronoimap.domain().begin(),
113 itend = voronoimap.domain().end(); it != itend; ++it)
115 Voronoi2D::Value site = voronoimap( *it );
116 unsigned char c = (site[1]*13 + site[0] * 7) % 256;
120 board.
saveSVG(
"voronoimap-cells.svg");
128 Voronoi2D_l8 voronoimap_l8(
domain,notSetPred,l8);
131 for(Voronoi2D_l8::Domain::ConstIterator it = voronoimap_l8.domain().begin(),
132 itend = voronoimap_l8.domain().end(); it != itend; ++it)
134 Voronoi2D::Value site = voronoimap_l8( *it );
135 unsigned char c = (site[1]*13 + site[0] * 7) % 256;
139 board.
saveSVG(
"voronoimap-vorol8.svg");
150 for(DT::ConstRange::ConstIterator it =
dt.constRange().begin(), itend =
dt.constRange().end();
152 if ((*it)>maxDT) maxDT = (*it);
158 for(DT::Domain::ConstIterator it =
dt.domain().begin(),
159 itend =
dt.domain().end(); it != itend; ++it)
161 DT::Value dist =
dt( *it );
165 board.
saveSVG(
"voronoimap-dt.svg");
static void draw(DGtal::Board2D &board, const DGtal::DiscreteExteriorCalculus< dimEmbedded, dimAmbient, TLinearAlgebraBackend, TInteger > &calculus)