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
 Compute the Lipschitz constant.
 
bool Inside (const Vector &) const
 Compute the Lipschitz constant.
 
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

◆ Value()

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

Compute the intensity.

Parameters
pPoint.