\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 5.0.1 - 2D Placement of Streamlines
CGAL::Triangular_field_2< StreamLinesTraits_2 > Class Template Reference

#include <CGAL/Triangular_field_2.h>

Definition

This class provides a vector field specified by a set of sample points defined on a triangulated domain.

All sample points are inserted to a Delaunay triangulation, and for each point p in the domain located in a face f, its vector value is interpolated from the vertices of the face f.

Template Parameters
StreamLinesTraits_2has to be instantiated by a model of the concept StreamLinesTraits_2.
Is Model Of:
VectorField_2
See also
Regular_grid_2<StreamLinesTraits_2>
Examples:
Stream_lines_2/stl_triangular_field.cpp.

Types

typedef StreamLinesTraits_2::FT FT
 the scalar type.
 
typedef StreamLinesTraits_2::Point_2 Point_2
 the point type.
 
typedef StreamLinesTraits_2::Vector_2 Vector_2
 the vector type.
 

Creation

mplate< class PointIterator1, class VectorInputIterator > Triangular_field_2 (PointInputIterator first_point, PointInputIterator last_point, VectorInputIterator first_vector)
 Defines the points in the range [first_point, last_point) as the sample points of the triangular field, with the corresponding number of vectors started at first_vector. More...
 

Constructor & Destructor Documentation

◆ Triangular_field_2()

template<typename StreamLinesTraits_2 >
mplate<class PointIterator1, class VectorInputIterator> CGAL::Triangular_field_2< StreamLinesTraits_2 >::Triangular_field_2 ( PointInputIterator  first_point,
PointInputIterator  last_point,
VectorInputIterator  first_vector 
)

Defines the points in the range [first_point, last_point) as the sample points of the triangular field, with the corresponding number of vectors started at first_vector.

Template Parameters
PointInputIteratormust be an input iterator with the value type Point_2.
VectorInputIteratormust be an input iterator with the value type Vector_2.