|
| SDFNode () |
| Create a generic node.
|
|
virtual | ~SDFNode () |
| Destructor.
|
|
virtual double | Signed (const Vector &) const |
| Compute the signed distance.
|
|
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 int | Memory () const |
| Return the size of a sub-tree.
|
|
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 QString | GetShader (PrimitiveManager *, std::list< QString > *, bool *=nullptr) const |
| Compute the GLSL code to render the node.
|
|
virtual QString | GetCostShader (PrimitiveManager *, std::list< QString > *, bool *=nullptr) const |
| Compute the GLSL code to compute the cost of a call to sdf.
|
|
virtual QString | GetGradientShader (PrimitiveManager *, std::list< QString > *, bool *=nullptr) const |
| Compute the GLSL code to compute the gradient the sdf.
|
|
virtual QString | GetMaterialShader (PrimitiveManager *, std::list< QString > *, bool *=nullptr) const |
| Compute the GLSL code to compute the material the sdf at a given point 'p' with a given normal 'n'.
|
|
virtual void | ComputeCostBID (const Vector &) |
| Compute the number of reccursive calls to BID() and Signed().
|
|
virtual void | ComputeCostSigned (const Vector &) |
| Compute the number of reccursive calls to Signed().
|
|
Base signed distance node.
QString SDFNode::GetShader |
( |
PrimitiveManager * | primitives, |
|
|
std::list< QString > * | dependency, |
|
|
bool * | valid_glsl = nullptr ) const |
|
virtual |
Compute the GLSL code to render the node.
- Author
- Hubert-Brierre Pierre
Reimplemented in SDF3DNoise, SDF3DNoiseNoLOD, SDF3DNoisePrimitive, SDFAddSphere, SDFBEIS, SDFBlob, SDFBox, SDFBoxOpt, SDFBubble, SDFCage, SDFCapsule, SDFCircleArc, SDFClone, SDFCloneDirectionOverlapX, SDFCloneDirectionX, SDFCloneDirectionXY, SDFCloneRevolution, SDFCone, SDFConvex, SDFCuboctahedron, SDFCylinder, SDFCylinderCage, SDFDifference, SDFDifferenceShell, SDFDisc, SDFDodecahedron, SDFEgg, SDFExtrusionAxis, SDFExtrusionQuadric, SDFFrame, SDFFrames, SDFHemiSphere, SDFIcosahedron, SDFIcosidodecahedron, SDFInterpolation, SDFIntersection, SDFIntersectionShell, SDFLink, SDFLod, SDFMorph, SDFOctahedron, SDFPlanarSymmetry, SDFPlane, SDFPyramid, SDFQuadricCurve, SDFRectangle, SDFRevolution, SDFRevolutionSymmetry, SDFRhombicDodecahedron, SDFRotate, SDFRound, SDFScale, SDFSector, SDFSegment, SDFSlab, SDFSmoothDifference, SDFSmoothIntersection, SDFSmoothUnion, SDFSmoothUnionExp, SDFSorQuadricTube, SDFSphere, SDFSphereCage, SDFSpheroid, SDFTerrain, SDFTerrainLoD, SDFTerrainLoDContinuous, SDFTerrainLoDContinuousBEIS, SDFTestHeightfieldBinaire, SDFTetra, SDFTorus, SDFTranslate, SDFTriangle, SDFTubular, SDFTwist, SDFUniformScale, SDFUniformSphere, and SDFUnion.
double SDFNode::Signed |
( |
const Vector & | p | ) |
const |
|
virtual |
Compute the signed distance.
- Parameters
-
Reimplemented in SDF3DNoise, SDF3DNoiseNoLOD, SDF3DNoisePrimitive, SDFAddSphere, SDFBEIS, SDFBlob, SDFBoundingBox, SDFBoundingSphere, SDFBox, SDFBoxOpt, SDFBubble, SDFCage, SDFCapsule, SDFCircleArc, SDFClone, SDFCloneDirectionOverlapX, SDFCloneDirectionX, SDFCloneDirectionXY, SDFCloneRevolution, SDFCone, SDFContact, SDFConvex, SDFConvexSmooth, SDFCubicCurve, SDFCuboctahedron, SDFCylinder, SDFCylinderCage, SDFCylinderNoise, SDFDifference, SDFDifferenceShell, SDFDisc, SDFDodecahedron, SDFEgg, SDFEuclidean, SDFExtrudedEllipse, SDFExtrusionAxis, SDFExtrusionCubic, SDFExtrusionInterpolation, SDFExtrusionNoise, SDFExtrusionQuadric, SDFFrame, SDFFrames, SDFHeightField, SDFHemiSphere, SDFHemiSphereDisc, SDFHexagonal, SDFHyperDisc, SDFHyperEdge, SDFHyperEllipsoid, SDFHyperSphere, SDFHyperTorus, SDFIcosahedron, SDFIcosidodecahedron, SDFInstance, SDFInterpolation, SDFIntersection, SDFIntersectionShell, SDFLens, SDFLink, SDFLod, SDFLodSphere, SDFMesh, SDFMeshClamped, SDFMorph, SDFNoise, SDFOctahedron, SDFPlanarSymmetry, SDFPlane, SDFPolygonExtruded, SDFPrimitive, SDFPyramid, SDFQuadricCurve, SDFQuadricCurveNoise, SDFQuadricCylinder, SDFQuadricSweptSphere, SDFQuadricTube, SDFRectangle, SDFRevolution, SDFRevolutionSymmetry, SDFRhombicDodecahedron, SDFRotate, SDFRotational, SDFRound, SDFScale, SDFScales, SDFSector, SDFSegment, SDFSegmentNoiseRadial, SDFSlab, SDFSmoothDifference, SDFSmoothIntersection, SDFSmoothUnion, SDFSmoothUnionExp, SDFSmoothUnionSphereLOD, SDFSorQuadricTube, SDFSphere, SDFSphereCage, SDFSphereNoiseRadial, SDFSpheroid, SDFTaper, SDFTerrain, SDFTerrainLoD, SDFTerrainLoDContinuous, SDFTerrainLoDContinuousBEIS, SDFTestHeightfieldBinaire, SDFTetra, SDFTorus, SDFTranslate, SDFTriangle, SDFTriplanar, SDFTubular, SDFTurbulence, SDFTwist, SDFUnary, SDFUniformScale, SDFUniformSphere, SDFUnion, SDFUnionR, SDFVerticalCylinder, SDFVirtualHeightField, SDFVolume, SDFVoronoi, SDFVoxel, SDFVoxelize, and SDFWarpTurbulence.