https://mooseframework.inl.gov
PointReduction.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Moose.h"
13 #include <vector>
14 
15 namespace PointReduction
16 {
17 
18 typedef std::pair<libMesh::Real, libMesh::Real> FunctionNode;
19 typedef std::vector<FunctionNode> FunctionNodeList;
20 
30  const FunctionNode & begin,
31  const FunctionNode & end);
32 
40 
41 } // namespace PointReduction
std::pair< libMesh::Real, libMesh::Real > FunctionNode
libMesh::Real perpendicularDistance(const FunctionNode &point, const FunctionNode &begin, const FunctionNode &end)
compute the perpendicular distance of a point P from a line defined by begin and end points...
std::vector< FunctionNode > FunctionNodeList
FunctionNodeList douglasPeucker(const FunctionNodeList &, libMesh::Real epsilon)
Generate a pruned function node list using the Ramer-Douglas-Peucker algorithm.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real