77#include "vtkCommonDataModelModule.h"
109 vtkSetMacro(Radius,
double);
110 vtkGetMacro(Radius,
double);
117 vtkSetVector3Macro(Center,
double);
118 vtkGetVector3Macro(Center,
double);
127 void SetAxis(
double ax,
double ay,
double az);
129 vtkGetVector3Macro(Axis,
double);
implicit function for a cylinder
static vtkCylinder * New()
Construct cylinder radius of 0.5; centered at origin with axis along y coordinate axis.
~vtkCylinder() override=default
void SetAxis(double a[3])
Set/Get the axis of the cylinder.
void SetAxis(double ax, double ay, double az)
Set/Get the axis of the cylinder.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double EvaluateFunction(double x[3]) override
Evaluate cylinder equation F(r) = r^2 - Radius^2.
void EvaluateGradient(double x[3], double g[3]) override
Evaluate cylinder function gradient.
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
a simple class to control print indentation