19 #include "vtkCommonDataModelModule.h"
22 VTK_ABI_NAMESPACE_BEGIN
51 vtkSetMacro(Radius,
double);
52 vtkGetMacro(Radius,
double);
59 vtkSetVector3Macro(Center,
double);
60 vtkGetVectorMacro(Center,
double, 3);
68 return (x[0] - center[0]) * (x[0] - center[0]) + (x[1] - center[1]) * (x[1] - center[1]) +
69 (x[2] - center[2]) * (x[2] - center[2]) - R * R;
81 static void ComputeBoundingSphere(
83 static void ComputeBoundingSphere(
96 static void ComputeBoundingSphere(
98 static void ComputeBoundingSphere(
111 void operator=(
const vtkSphere&) =
delete;
114 VTK_ABI_NAMESPACE_END
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
implicit function for a sphere
a simple class to control print indentation
static double Evaluate(double center[3], double R, double x[3])
Quick evaluation of the sphere equation ((x-x0)^2 + (y-y0)^2 + (z-z0)^2) - R^2.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.