Signed Distance Fields 1.0
Public Member Functions | List of all members
SDFBinary2 Class Reference

Binary nodes2. More...

#include <sdf.h>

Inheritance diagram for SDFBinary2:
SDFNode2 SDFDifference2 SDFIntersection2 SDFSmoothDifference2 SDFSmoothIntersection2 SDFSmoothUnion2 SDFUnion2

Public Member Functions

 SDFBinary2 (SDFNode2 *, SDFNode2 *)
 Sub-trees. More...
 
virtual ~SDFBinary2 ()
 Recursively destroy the sub-trees.
 
int Nodes () const
 Compute the number of nodes in the sub-tree. More...
 
- Public Member Functions inherited from SDFNode2
 SDFNode2 ()
 Create a generic node. More...
 
virtual ~SDFNode2 ()
 Destructor.
 
virtual double Signed (const Vector2 &) const
 Compute the signed distance. More...
 
virtual int Memory () const
 Return the size of a sub-tree.
 
virtual double K () const
 Return the Lipschitz constant of the node. More...
 
Box2 GetBox () const
 Return the bounding box of the node.
 

Additional Inherited Members

- Protected Attributes inherited from SDFNode2
Box2 box
 Box bounding the surface.
 
double k
 Lipschitz constant.
 
- Static Protected Attributes inherited from SDFNode2
static constexpr double Epsilon = 0.01
 Small constant used for bounding volumes.
 

Detailed Description

Binary nodes2.

Author
Lucie Fournier

Constructor & Destructor Documentation

◆ SDFBinary2()

SDFBinary2::SDFBinary2 ( SDFNode2 a,
SDFNode2 b 
)
explicit

Sub-trees.

Create a binary node2.

Parameters
a,bSub-trees.

Member Function Documentation

◆ Nodes()

int SDFBinary2::Nodes ( ) const
virtual

Compute the number of nodes in the sub-tree.

Reimplemented from SDFNode2.