Go to the documentation of this file.
38 os <<
p.x() <<
' ' <<
p.y() <<
' ' <<
p.z() <<
nl;
46 int main(
int argc,
char *argv[])
56 "number of segments for evaluation - default 20"
70 if (!useCatmullRom && !useBSpline)
72 Info<<
"defaulting to Catmull-Rom spline" <<
endl;
78 const string& srcFile =
args[argI];
79 Info<<
nl <<
"reading " << srcFile <<
nl;
85 forAll(pointFields, splineI)
88 forAll(pointFields[splineI], ptI)
95 BSpline spl(pointFields[splineI]);
99 for (
label segI = 0; segI <= nSeg; ++segI)
101 scalar
lambda = scalar(segI)/scalar(nSeg);
112 for (
label segI = 0; segI <= nSeg; ++segI)
114 scalar
lambda = scalar(segI)/scalar(nSeg);
124 for (
label segI = 0; segI <= nSeg; ++segI)
126 scalar
lambda = scalar(segI)/scalar(nSeg);
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A series of straight line segments, which can also be interpreted as a series of control points for s...
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
#define forAll(list, i)
Loop across all elements in list.
label size() const
Return the number of arguments.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
point position(const scalar lambda) const
Return the point position corresponding to the curve parameter.
An implementation of Catmull-Rom splines (sometimes known as Overhauser splines).
An implementation of B-splines.
point position(const scalar lambda) const
Return the point position corresponding to the curve parameter.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void printUsage() const
Print usage.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
point position(const scalar) const
Return the point position corresponding to the curve parameter.
Ostream & printPoint(Ostream &os, const point &p)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool optionFound(const word &opt) const
Return true if the named option is found.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
int main(int argc, char *argv[])
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)
dimensionedScalar lambda(laminarTransport.lookup("lambda"))