Loading...
Searching...
No Matches
polyline Class Reference

Extrudes by transforming points along a polyline provided as a series of points and edge segments. Supports all blockMesh edge types, e.g. line, arc, spline. The surface points are rotated to follow the path. More...

#include <polyline.H>

Inheritance diagram for polyline:
Collaboration diagram for polyline:

Public Member Functions

 TypeName ("polyline")
 Runtime type information.
 polyline (const dictionary &dict)
 Construct from dictionary.
virtual ~polyline ()=default
 Destructor.
point operator() (const point &surfacePoint, const vector &surfaceNormal, const label layer) const
void positionAndDirection (const scalar lambda, vector &p, vector &n) const
 The point and direction vector corresponding to the polyline parameter [0-1].
Public Member Functions inherited from extrudeModel
 TypeName ("extrudeModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, extrudeModel, dictionary,(const dictionary &dict),(dict))
 Declare runtime constructor selection table.
 extrudeModel (const word &modelType, const dictionary &dict)
 Construct from dictionary for given model type.
virtual ~extrudeModel ()=default
 Destructor.
label nLayers () const
 Return the number of layers.
scalar expansionRatio () const
 Return the expansion ratio.
scalar sumThickness (const label layer) const
 Helper: calculate cumulative relative thickness for layer.

Additional Inherited Members

Static Public Member Functions inherited from extrudeModel
static autoPtr< extrudeModelNew (const dictionary &dict)
 Select null constructed.
Protected Member Functions inherited from extrudeModel
 extrudeModel (const extrudeModel &)=delete
 No copy construct.
void operator= (const extrudeModel &)=delete
 No copy assignment.
Protected Attributes inherited from extrudeModel
label nLayers_
const scalar expansionRatio_
const dictionarycoeffDict_

Detailed Description

Extrudes by transforming points along a polyline provided as a series of points and edge segments. Supports all blockMesh edge types, e.g. line, arc, spline. The surface points are rotated to follow the path.

Property Description Required Default
vertices List of vertices yes
edges List of blockEdge segments yes
toleranceCheck Relative tolerance for polyline checks no SMALL

Definition at line 74 of file polyline.H.

Constructor & Destructor Documentation

◆ polyline()

◆ ~polyline()

virtual ~polyline ( )
virtualdefault

Destructor.

References lambda(), n, and p.

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "polyline" )

Runtime type information.

References dict.

◆ operator()()

point operator() ( const point & surfacePoint,
const vector & surfaceNormal,
const label layer ) const
virtual

Implements extrudeModel.

Definition at line 124 of file polyline.C.

References Foam::endl(), Foam::mag(), n, Foam::normalised(), p, positionAndDirection(), extrudeModel::sumThickness(), quaternion::transform(), and WarningInFunction.

Here is the call graph for this function:

◆ positionAndDirection()

void positionAndDirection ( const scalar lambda,
vector & p,
vector & n ) const

The point and direction vector corresponding to the polyline parameter [0-1].

Definition at line 167 of file polyline.C.

References Foam::interpolateXY(), lambda(), Foam::max(), Foam::min(), n, Foam::normalised(), p, s(), and y.

Referenced by operator()(), and polyline().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: