https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
16{
17
18typedef std::pair<libMesh::Real, libMesh::Real> FunctionNode;
19typedef std::vector<FunctionNode> FunctionNodeList;
20
30 const FunctionNode & begin,
31 const FunctionNode & end);
32
40
41} // namespace PointReduction
std::vector< FunctionNode > FunctionNodeList
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::pair< libMesh::Real, libMesh::Real > FunctionNode
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