|
| SDFConvexSmooth (const Box &, double=0.25) |
| Create a convex primitive from a box.
|
|
| SDFConvexSmooth (const Dodecahedron &, double=0.25) |
| Create a convex primitive from a dodecahedron.
|
|
| SDFConvexSmooth (const Tetrahedra &, double=0.25) |
| Create a convex primitive from a tetrahedra.
|
|
| SDFConvexSmooth (const Octahedron &, double=0.25) |
| Create a convex primitive from an octahedron.
|
|
| SDFConvexSmooth (const QVector< Plane > &, double=0.25) |
| Create a convex primitive from a set of planes.
|
|
| SDFConvexSmooth (const QVector< Plane > &, const Box &, double=0.25) |
| Create a smooth convex primitive from a set of planes, and a bounding box already computed.
|
|
virtual | ~SDFConvexSmooth () |
| Destructor.
|
|
virtual double | Signed (const Vector &) const |
| Compute the signed distance function.
|
|
virtual int | Memory () const |
| Return the size of a sub-tree.
|
|
virtual SDFNode * | Copy () const |
| Deep copy.
|
|
| SDFConvex (const Box &) |
| Create a convex primitive from a box.
|
|
| SDFConvex (const Dodecahedron &) |
| Create a convex from a dodecahedron.
|
|
| SDFConvex (const Tetrahedra &) |
| Create a convex from a tetrahedron.
|
|
| SDFConvex (const Octahedron &) |
| Create a convex from an octahedron.
|
|
| SDFConvex (const Icosahedron &) |
| Create a convex from an icosahedron.
|
|
| SDFConvex (const Icosidodecahedron &) |
| Create a convex primitive from an icosidodecahedron.
|
|
| SDFConvex (const QVector< Plane > &) |
| Create a convex primitive from a set of planes.
|
|
| SDFConvex (const QVector< Plane > &, const Box &) |
| Create a convex primitive from a set of planes, and an already computed bounding box.
|
|
virtual | ~SDFConvex () |
| Destructor.
|
|
QString | GetShader (PrimitiveManager *, std::list< QString > *, bool *) const |
| Compute the GLSL code to render the node.
|
|
QString | GetGradientShader (PrimitiveManager *, std::list< QString > *, bool *) const |
| Compute the GLSL code to compute the gradient the sdf.
|
|
QString | GetCostShader (PrimitiveManager *, std::list< QString > *, bool *) const |
| Compute the GLSL code to compute the cost of a call to sdf.
|
|
| SDFPrimitive () |
| Create a primitive.
|
|
virtual | ~SDFPrimitive () |
| Destructor.
|
|
virtual void | ComputeCostSigned (const Vector &) |
| Compute the number of reccursive calls to Signed().
|
|
virtual QString | GetMaterialShader (PrimitiveManager *, std::list< QString > *, bool *) const |
| Compute the GLSL code to compute the material of the object.
|
|
void | setShaderMaterial (ShaderMaterial *) |
| Set the material of the primitive for the glsl code.
|
|
| SDFNode () |
| Create a generic node.
|
|
virtual | ~SDFNode () |
| Destructor.
|
|
virtual double | BID (const Vector &) const |
| Compute a lower bound of the signed distance.
|
|
virtual Vector | Gradient (const Vector &) const |
| Compute the gradient of the field.
|
|
virtual bool | Inside (const Vector &) const |
| Check if a point is inside or outside.
|
|
virtual Color | GetColor (const Vector &) const |
| Computes the color.
|
|
virtual double | K () const |
| Return the Lipschitz constant of the node.
|
|
virtual double | K (const Box &) const |
| Return the local Lipschitz constant.
|
|
Box | GetBox () const |
| Return the bounding box of the node.
|
|
virtual int | Nodes () const |
| Compute the number of nodes in the sub-tree.
|
|
virtual void | ComputeCostBID (const Vector &) |
| Compute the number of reccursive calls to BID() and Signed().
|
|
Smooth convex primitives.
The signed distance function is defined as the smooth maximum signed distance to planes.