A straight edge between the start point and the end point. More...
Public Member Functions | |
TypeName ("line") | |
Runtime type information. More... | |
lineEdge (const pointField &, const label start, const label end) | |
Construct from components. More... | |
lineEdge (const pointField &, Istream &) | |
Construct from Istream with a pointField. More... | |
virtual | ~lineEdge () |
Destructor. More... | |
point | position (const scalar) const |
Return the point position corresponding to the curve parameter. More... | |
scalar | length () const |
Return the length of the curve. More... | |
![]() | |
TypeName ("curvedEdge") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, curvedEdge, Istream,(const pointField &points, Istream &is),(points, is)) | |
curvedEdge (const pointField &points, const label start, const label end) | |
Construct from components. More... | |
curvedEdge (const pointField &, Istream &) | |
Construct from Istream setting pointsList. More... | |
curvedEdge (const curvedEdge &) | |
Copy construct. More... | |
virtual autoPtr< curvedEdge > | clone () const |
Clone function. More... | |
virtual | ~curvedEdge () |
Destructor. More... | |
label | start () const |
Return label of start point. More... | |
label | end () const |
Return label of end point. More... | |
int | compare (const curvedEdge &) const |
Compare the given start and end points with this curve. More... | |
int | compare (const edge &) const |
Compare the given start and end points with this curve. More... | |
int | compare (const label start, const label end) const |
Compare the given start and end points with this curve. More... | |
void | operator= (const curvedEdge &) |
Additional Inherited Members | |
![]() | |
static autoPtr< curvedEdge > | New (const pointField &, Istream &) |
New function which constructs and returns pointer to a curvedEdge. More... | |
![]() | |
static pointField | appendEndPoints (const pointField &, const label start, const label end, const pointField &otherKnots) |
Return a complete point field by appending the start/end points. More... | |
![]() | |
const pointField & | points_ |
const label | start_ |
const label | end_ |
A straight edge between the start point and the end point.
Definition at line 49 of file lineEdge.H.
lineEdge | ( | const pointField & | points, |
const label | start, | ||
const label | end | ||
) |
Construct from components.
Definition at line 42 of file lineEdge.C.
lineEdge | ( | const pointField & | points, |
Istream & | is | ||
) |
Construct from Istream with a pointField.
Definition at line 52 of file lineEdge.C.
|
virtual |
Destructor.
Definition at line 60 of file lineEdge.C.
TypeName | ( | "line" | ) |
Runtime type information.
|
virtual |
Return the point position corresponding to the curve parameter.
0 <= lambda <= 1
Implements curvedEdge.
Definition at line 66 of file lineEdge.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and lambda().
|
virtual |
Return the length of the curve.
Implements curvedEdge.
Definition at line 79 of file lineEdge.C.
References Foam::mag().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.