MeshKernel
|
A class describing a network 1d. More...
#include <Network1D.hpp>
Public Member Functions | |
Network1D ()=default | |
Default constructor. | |
Network1D (Projection projection) | |
Network1D (std::vector< std::vector< Point >> const &polyLines, Projection projection) | |
Construct a mesh1d by discretizing polyLines. More... | |
void | ComputeFixedChainages (std::vector< std::vector< double >> const &fixedChainagesByPolyline, double minFaceSize, double fixedChainagesOffset) |
Compute the chainages from fixed point locations. More... | |
void | ComputeOffsettedChainages (double offset) |
Compute the chainages at a regular offset for all polylines. More... | |
std::vector< std::vector< Point > > | ComputeDiscretizationsFromChainages () |
Computes the discretization points from the chainages for all polylines. More... | |
Public Attributes | |
Projection | m_projection |
The projection used. | |
A class describing a network 1d.
A network 1d contains a series of polylines and a series of fixed points at predefined chainages.
|
explicit |
[in] | projection | The projection to use |
meshkernel::Network1D::Network1D | ( | std::vector< std::vector< Point >> const & | polyLines, |
Projection | projection | ||
) |
Construct a mesh1d by discretizing polyLines.
[in] | polyLines | The polylines to be discretize |
[in] | projection | The projection to use |
std::vector<std::vector<Point> > meshkernel::Network1D::ComputeDiscretizationsFromChainages | ( | ) |
Computes the discretization points from the chainages for all polylines.
void meshkernel::Network1D::ComputeFixedChainages | ( | std::vector< std::vector< double >> const & | fixedChainagesByPolyline, |
double | minFaceSize, | ||
double | fixedChainagesOffset | ||
) |
Compute the chainages from fixed point locations.
[in] | fixedChainagesByPolyline | The fixed chainages. These are the locations where the discretization points before and after must be at a distance equal to fixedChainagesOffset |
[in] | minFaceSize | The minimum face size. The distance between two points must be no less than this length |
[in] | fixedChainagesOffset | The offset to use for fixed chainages |
void meshkernel::Network1D::ComputeOffsettedChainages | ( | double | offset | ) |
Compute the chainages at a regular offset for all polylines.
[in] | offset | The offset between points |