27int main(
int argc,
char *argv[])
32 args.
AddOption(&visualization,
"-vis",
"--visualization",
"-no-vis",
34 "Enable or disable GLVis visualization. Dummy option to allow testing.");
55 cout <<
"Printing knotvector:" << endl;
61 cout <<
"\nPrinting shapefunctions:" << endl;
A vector of knots in one dimension, with B-spline basis functions of a prescribed order.
void PrintFunctions(std::ostream &os, int samples=11) const
Prints the non-zero shape functions and their first and second derivatives associated with the KnotVe...
void GetElements()
Count the number of elements.
void Print(std::ostream &os) const
Print the order, number of control points, and knots.
void Parse()
Parse the command-line options. Note that this function expects all the options provided through the ...
void PrintUsage(std::ostream &out) const
Print the usage message.
void AddOption(bool *var, const char *enable_short_name, const char *enable_long_name, const char *disable_short_name, const char *disable_long_name, const char *description, bool required=false)
Add a boolean option and set 'var' to receive the value. Enable/disable tags are used to set the bool...
bool Good() const
Return true if the command line options were parsed successfully.