Core 1.0
SmoothVertex Class Reference

A vertex skeleton with a quadric or cubic falloff. More...

#include <smooth.h>

Public Member Functions

 SmoothVertex (const Vector &, const double &, const double &=1.0, bool=true)
 Create a smooth disc.
double Value (const Vector &) const
 Compute the intensity.
Vector Center () const
 Return the center.
double Radius () const
 Return the radius.
double Strength () const
 Return the intensity.
Box GetBox () const
 Compute the bounding box.
bool CubicFalloff () const
 Check if the falloff is cubic.
bool Inside (const Vector &) const
 Check if a point is inside the support sphere.
double K () const
 Compute the Lipschitz constant.

Protected Attributes

Vector c
 Center.
double r
 Falloff radius.
double s
 Intensity.
bool cubic
 Cubic or quadric falloff.

Detailed Description

A vertex skeleton with a quadric or cubic falloff.

It uses either the cubic Cubic::SmoothCompact or Quadric::SmoothCompact falloff function.

See also
SmoothDisc, SmoothSegment

Constructor & Destructor Documentation

◆ SmoothVertex()

SmoothVertex::SmoothVertex ( const Vector & c,
const double & r,
const double & s = 1.0,
bool cubic = true )
explicit

Create a smooth disc.

Parameters
cCenter.
rFalloff radius.
sIntensity.
cubicCubic flag, set to true to use cubic falloff, quadric otherwise.

Member Function Documentation

◆ Inside()

bool SmoothVertex::Inside ( const Vector & p) const
inline

Check if a point is inside the support sphere.

Parameters
pPoint.

◆ Value()

double SmoothVertex::Value ( const Vector & p) const

Compute the intensity.

Parameters
pPoint.