Peano
Loading...
Searching...
No Matches
Edge.h
Go to the documentation of this file.
1
// This file is part of the Peano project. For conditions of distribution and
2
// use, please see the copyright notice at www.peano-framework.org
3
#pragma once
4
5
#include "
toolbox/curvi/Coordinate.h
"
6
#include "
toolbox/curvi/Index.h
"
7
8
namespace
toolbox
{
9
namespace
curvi {
10
class
Edge
{
11
public
:
12
Edge
(
Coordinate
a_direction);
13
Edge
(std::vector<double> a_data,
Coordinate
a_direction);
14
Edge
(
Coordinate
a_direction,
double
start[3],
double
stop[3],
int
n);
15
16
Edge
(
const
Edge
& other);
17
Edge
&
operator=
(
Edge
other);
18
19
Edge
subedge
(
int
start,
int
stop);
20
21
void
split
(
double
intersection_node[3],
Edge
& left_edge,
Edge
& right_edge);
22
23
Edge
remesh
(
int
numNodesNew);
24
Edge
interpolate
(
const
std::vector<double>& range_in,
const
std::vector<double>& range_out,
int
window = 11);
25
26
27
void
resize
(
int
i);
28
void
push_back
(
double
d);
29
30
int
size
()
const
;
31
int
numNodes
()
const
;
32
33
friend
std::ostream&
operator<<
(std::ostream& ss,
const
Edge
& e);
34
std::string
printEdge
()
const
;
35
36
double
&
operator()
(
int
coord,
int
i);
37
const
double
&
operator()
(
int
coord,
int
i)
const
;
38
39
std::vector<double>&
getData
();
40
41
Coordinate
getDirection
() {
return
direction
; };
42
43
private
:
44
Coordinate
direction
;
// monotonically increasing index
45
std::vector<double>
data
;
46
};
47
}
// namespace curvi
48
}
// namespace toolbox
Coordinate.h
Index.h
toolbox::curvi::Edge
Definition
Edge.h:10
toolbox::curvi::Edge::split
void split(double intersection_node[3], Edge &left_edge, Edge &right_edge)
toolbox::curvi::Edge::data
std::vector< double > data
Definition
Edge.h:45
toolbox::curvi::Edge::direction
Coordinate direction
Definition
Edge.h:44
toolbox::curvi::Edge::printEdge
std::string printEdge() const
toolbox::curvi::Edge::size
int size() const
toolbox::curvi::Edge::operator<<
friend std::ostream & operator<<(std::ostream &ss, const Edge &e)
toolbox::curvi::Edge::Edge
Edge(const Edge &other)
toolbox::curvi::Edge::operator=
Edge & operator=(Edge other)
toolbox::curvi::Edge::operator()
const double & operator()(int coord, int i) const
toolbox::curvi::Edge::remesh
Edge remesh(int numNodesNew)
toolbox::curvi::Edge::Edge
Edge(Coordinate a_direction, double start[3], double stop[3], int n)
toolbox::curvi::Edge::getData
std::vector< double > & getData()
toolbox::curvi::Edge::subedge
Edge subedge(int start, int stop)
toolbox::curvi::Edge::operator()
double & operator()(int coord, int i)
toolbox::curvi::Edge::interpolate
Edge interpolate(const std::vector< double > &range_in, const std::vector< double > &range_out, int window=11)
toolbox::curvi::Edge::Edge
Edge(std::vector< double > a_data, Coordinate a_direction)
toolbox::curvi::Edge::push_back
void push_back(double d)
toolbox::curvi::Edge::numNodes
int numNodes() const
toolbox::curvi::Edge::resize
void resize(int i)
toolbox::curvi::Edge::getDirection
Coordinate getDirection()
Definition
Edge.h:41
toolbox::curvi::Edge::Edge
Edge(Coordinate a_direction)
toolbox::curvi::Coordinate
Coordinate
Definition
Coordinate.h:10
toolbox
Definition
InterpolationRestriction.h:10
src
toolbox
curvi
geometry
Edge.h
Generated on Wed Nov 4 2026 08:20:47 for Peano by
1.9.8