A series of straight line segments, which can also be interpreted as a series of control points for splines, etc. More...
Public Member Functions | |
polyLine (const pointField &points, const bool notImplementedClosed=false) | |
polyLine (const point &start, const pointField &intermediate, const point &end, const bool notImplementedClosed=false) | |
const pointField & | points () const noexcept |
label | nSegments () const noexcept |
point | position (const scalar) const |
point | position (const label segment, const scalar) const |
scalar | length () const noexcept |
Static Public Member Functions | |
static tmp< pointField > | concat (const point &start, const pointField &intermediate, const point &end) |
Protected Member Functions | |
void | calcParam () |
label | localParameter (scalar &lambda) const |
Protected Attributes | |
pointField | points_ |
scalar | lineLength_ |
scalarList | param_ |
A series of straight line segments, which can also be interpreted as a series of control points for splines, etc.
A future implementation could also handle a closed polyLine.
Definition at line 51 of file polyLine.H.
|
explicit |
points | The poly-line points |
Definition at line 77 of file polyLine.C.
References polyLine::calcParam().
polyLine | ( | const point & | start, |
const pointField & | intermediate, | ||
const point & | end, | ||
const bool | notImplementedClosed = false |
||
) |
start | The start point |
intermediate | The intermediate points |
end | The end point |
Definition at line 88 of file polyLine.C.
|
protected |
Definition at line 50 of file polyLine.C.
References polyLine::lineLength_, Foam::mag(), polyLine::param_, polyLine::points_, and List::resize().
Referenced by polyLine::polyLine().
|
protected |
Definition at line 117 of file polyLine.C.
References lambda().
Referenced by BSpline::position().
|
static |
start | The start point |
intermediate | The intermediate points |
end | The end point |
Definition at line 28 of file polyLine.C.
References Foam::New(), and p0.
Referenced by blockEdge::appendEndPoints().
|
noexcept |
Definition at line 105 of file polyLine.C.
Referenced by BSpline::position().
|
noexcept |
Definition at line 111 of file polyLine.C.
Foam::point position | ( | const scalar | mu | ) | const |
Definition at line 151 of file polyLine.C.
References lambda(), and Foam::constant::physicoChemical::mu.
Referenced by polyLineEdge::position().
Foam::point position | ( | const label | segment, |
const scalar | mu | ||
) | const |
Definition at line 170 of file polyLine.C.
References Foam::constant::physicoChemical::mu, and p0.
|
noexcept |
Definition at line 203 of file polyLine.C.
|
protected |
Definition at line 58 of file polyLine.H.
Referenced by polyLine::calcParam().
|
protected |
Definition at line 61 of file polyLine.H.
Referenced by polyLine::calcParam(), and polyLineEdge::length().
|
protected |
Definition at line 64 of file polyLine.H.
Referenced by polyLine::calcParam().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.