CDT  1.4.1
C++ library for constrained Delaunay triangulation
Loading...
Searching...
No Matches
InitializeWithGrid.h File Reference

Helper function to initialize triangulation with regular grid instead of super-triangle. More...

#include <CDT.h>
#include <CDTUtils.h>
#include <cstddef>
#include <iterator>
#include <vector>
Include dependency graph for InitializeWithGrid.h:

Go to the source code of this file.

Namespaces

namespace  CDT
 Namespace containing triangulation functionality.
 

Functions

template<typename OutputVertIt , typename OutputTriIt , typename TXCoordIter , typename TYCoordIter >
void CDT::detail::generateGridVertices (OutputVertIt outVertsFirst, OutputTriIt outTrisFirst, const TXCoordIter xfirst, const TXCoordIter xlast, const TYCoordIter yfirst, const TYCoordIter ylast)
 Generate grid vertices given of X- and Y-ticks.
 
template<typename OutputIt >
void CDT::detail::generateGridTriangles (OutputIt outFirst, const IndexSizeType xres, const IndexSizeType yres)
 Generate grid triangles.
 
template<typename T , typename TNearPointLocator >
void CDT::initializeWithRegularGrid (const T xmin, const T xmax, const T ymin, const T ymax, const std::size_t xres, const std::size_t yres, Triangulation< T, TNearPointLocator > &out)
 Make a triangulation that uses regular grid triangles instead of super-triangle.
 
template<typename T , typename TNearPointLocator , typename TXCoordIter , typename TYCoordIter >
void CDT::initializeWithIrregularGrid (const TXCoordIter xfirst, const TXCoordIter xlast, const TYCoordIter yfirst, const TYCoordIter ylast, Triangulation< T, TNearPointLocator > &out)
 Make a triangulation that uses irregular grid triangles instead of super-triangle.
 

Detailed Description

Helper function to initialize triangulation with regular grid instead of super-triangle.

Definition in file InitializeWithGrid.h.

Function Documentation

◆ generateGridTriangles()

template<typename OutputIt >
void CDT::detail::generateGridTriangles ( OutputIt outFirst,
const IndexSizeType xres,
const IndexSizeType yres )

Generate grid triangles.

Template Parameters
OutputItoutput iterator
Parameters
outFirstthe beginning of the destination range
xresgrid X-resolution
yresgrid Y-resolution

Definition at line 109 of file InitializeWithGrid.h.

◆ generateGridVertices()

template<typename OutputVertIt , typename OutputTriIt , typename TXCoordIter , typename TYCoordIter >
void CDT::detail::generateGridVertices ( OutputVertIt outVertsFirst,
OutputTriIt outTrisFirst,
const TXCoordIter xfirst,
const TXCoordIter xlast,
const TYCoordIter yfirst,
const TYCoordIter ylast )

Generate grid vertices given of X- and Y-ticks.

Template Parameters
OutputVertItoutput vertices iterator
OutputTriItoutput triangles iterator
TXCoordIteriterator dereferencing to X coordinate
TYCoordIteriterator dereferencing to Y coordinate
Parameters
outFirstthe beginning of the destination range
xfirstbeginning of X-ticks range
xlastend of X-ticks range
yfirstbeginning of Y-ticks range
ylastend of Y-ticks range

Definition at line 47 of file InitializeWithGrid.h.