Signed Distance Fields 1.0
|
Union operator on Euclidian2. More...
#include <sdf.h>
Public Member Functions | |
SDFUnion2 (SDFNode2 *, SDFNode2 *) | |
Create a union node. More... | |
SDFUnion2 (SDFNode2 *, SDFNode2 *, SDFNode2 *) | |
Create a union hierarchy ((A ∪ B) ∪ C). More... | |
SDFUnion2 (SDFNode2 *, SDFNode2 *, SDFNode2 *, SDFNode2 *) | |
Create a union hierarchy ((A ∪ B) ∪ (C ∪ D)). More... | |
double | Signed (const Vector2 &) const |
Compute the signed distance. More... | |
int | Memory () const |
Return the size of a sub-tree. More... | |
virtual SDFNode2 * | Copy () const |
Deep copy. | |
![]() | |
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... | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
Box2 | box |
Box bounding the surface. | |
double | k |
Lipschitz constant. | |
![]() | |
static constexpr double | Epsilon = 0.01 |
Small constant used for bounding volumes. | |
Union operator on Euclidian2.
The union between two signed Euclidean2 distance functions yields another Euclidean2 signed distance function.
Create a union node.
a,b | Sub-trees. |
Create a union hierarchy ((A ∪ B) ∪ C).
a,b,c | Sub-trees. |
Create a union hierarchy ((A ∪ B) ∪ (C ∪ D)).
a,b,c,d | Sub-trees. |
|
virtual |
Return the size of a sub-tree.
Reimplemented from SDFNode2.