Smooth union 2 operator.
More...
#include <sdf.h>
|
| SDFSmoothUnion2 (SDFNode2 *, SDFNode2 *, const double &) |
| Create a smooth union. More...
|
|
| SDFSmoothUnion2 (SDFNode2 *, SDFNode2 *, SDFNode2 *, const double &) |
| Create a smooth union. More...
|
|
| SDFSmoothUnion2 (SDFNode2 *, SDFNode2 *, SDFNode2 *, SDFNode2 *, const double &) |
| Create a smooth union. 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.
|
|
|
double | smooth |
| Smoothing distance.
|
|
Box2 | box |
| Box bounding the surface.
|
|
double | k |
| Lipschitz constant.
|
|
|
static constexpr double | Epsilon = 0.01 |
| Small constant used for bounding volumes.
|
|
Smooth union 2 operator.
- Author
- Lucie Fournier
◆ SDFSmoothUnion2() [1/3]
SDFSmoothUnion2::SDFSmoothUnion2 |
( |
SDFNode2 * |
a, |
|
|
SDFNode2 * |
b, |
|
|
const double & |
s |
|
) |
| |
|
explicit |
Create a smooth union.
Resembles the blending operator of the BlobTree.
- Parameters
-
a,b | Sub-trees. |
s | Smoothing distance. |
◆ SDFSmoothUnion2() [2/3]
Create a smooth union.
- Parameters
-
a,b,c | Sub-trees. |
s | Smoothing distance. |
◆ SDFSmoothUnion2() [3/3]
Create a smooth union.
- Parameters
-
a,b,c,d | Sub-trees. |
s | Smoothing distance. |
◆ Memory()
int SDFSmoothUnion2::Memory |
( |
| ) |
const |
|
virtual |
Return the size of a sub-tree.
Reimplemented from SDFNode2.
◆ Signed()
double SDFSmoothUnion2::Signed |
( |
const Vector2 & |
p | ) |
const |
|
virtual |
Compute the signed distance.
- Parameters
-
Reimplemented from SDFNode2.