Signed Distance Fields 1.0
Public Member Functions | Protected Attributes | List of all members
SDFPseudoAxialSquadricSwept Class Reference

Quadric contour primitive. More...

#include <sdf.h>

Inheritance diagram for SDFPseudoAxialSquadricSwept:
SDFPrimitive2 SDFNode2

Public Member Functions

 SDFPseudoAxialSquadricSwept (const double &, const double &, const Quadric &)
 Pseudo distance to a quadric contour. More...
 
virtual ~SDFPseudoAxialSquadricSwept ()
 Destructor.
 
double Signed (const Vector &) const
 Compute the signed distance. More...
 
int Memory () const
 Return the size of a sub-tree. More...
 
virtual SDFNode2Copy () const
 Deep copy.
 
- Public Member Functions inherited from SDFPrimitive2
 SDFPrimitive2 ()
 Create a primitive.
 
virtual ~SDFPrimitive2 ()
 Destructor.
 
virtual double Signed (const Vector2 &) const
 Compute the signed distance function. More...
 
- Public Member Functions inherited from SDFNode2
 SDFNode2 ()
 Create a generic node. More...
 
virtual ~SDFNode2 ()
 Destructor.
 
virtual double K () const
 Return the Lipschitz constant of the node. More...
 
Box2 GetBox () const
 Return the bounding box of the node.
 
virtual int Nodes () const
 Compute the number of nodes in the sub-tree.
 

Protected Attributes

Quadric curve
 Profile curve.
 
double yb
 Vertical parameterization.
 
- Protected Attributes inherited from SDFNode2
Box2 box
 Box bounding the surface.
 
double k
 Lipschitz constant.
 

Additional Inherited Members

- Static Protected Attributes inherited from SDFNode2
static constexpr double Epsilon = 0.01
 Small constant used for bounding volumes.
 

Detailed Description

Quadric contour primitive.

Pseudo distance to a quadric contour.

Constructor & Destructor Documentation

◆ SDFPseudoAxialSquadricSwept()

SDFPseudoAxialSquadricSwept::SDFPseudoAxialSquadricSwept ( const double &  ya,
const double &  yb,
const Quadric c 
)
explicit

Pseudo distance to a quadric contour.

Parameters
ya,ybRange.
cQuadric.

Member Function Documentation

◆ Memory()

int SDFPseudoAxialSquadricSwept::Memory ( ) const
virtual

Return the size of a sub-tree.

Reimplemented from SDFNode2.

◆ Signed()

double SDFPseudoAxialSquadricSwept::Signed ( const Vector p) const

Compute the signed distance.

Parameters
pPoint.