|
|
| 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 void | SetShaderId (PrimitiveManager &) |
| | Set up an id for generating GLSL code.
|
| void | ResetShaderId () |
| | Reset the id for generating GLSL code.
|
| virtual QString | GetShader (PrimitiveManager &, std::list< QString > &, bool &) const |
| | Compute the GLSL code to render the node.
|
| virtual QString | GetCostShader (PrimitiveManager &, std::list< QString > &, bool &) const |
| | Compute the GLSL code to compute the cost of a call to sdf.
|
| virtual QString | GetGradientShader (PrimitiveManager &, std::list< QString > &, bool &) const |
| | Compute the GLSL code to compute the gradient the sdf.
|
| virtual QString | GetMaterialShader (PrimitiveManager &, std::list< QString > &, bool &) const |
| | Compute the GLSL code to compute the material the sdf at a given point 'p' with a given normal 'n'.
|
|
virtual QJsonValue | ToJson () const |
| | Conversion to JavaScript Object Notation.
|
| 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().
|
|
| static SDFNode * | FromJson (const QJsonValue &json) |
| | Conversion from JavaScript Object Notation.
|
| static void | ResetReccursiveCalls () |
| | Reset the reccursive call property of the tree.
|
| static int | ReccursiveCalls () |
| | Returns the number of reccursive calls to Value() and BID().
|
| static void | addReccursiveCalls (int) |
| | Add a nulber to the nbreccursiveCalls.
|
| static SDFNode * | Stalactite (const Vector &p, const double &h, const double &r, bool noise=true, Random &random=Random::R239, const double &largeur=0.25, const double &espacement=0.61) |
| | Procedural parameterized stalactite.
|
|
static SDFNode * | SpherePieces () |
| | Sphere carved, placed on a cylinder. Nice scene for testing sharp features reconstruction.
|
Base signed distance node.
| QString SDFNode::GetGradientShader |
( |
PrimitiveManager & | primitives, |
|
|
std::list< QString > & | dependency, |
|
|
bool & | valid_glsl ) const |
|
virtual |
Compute the GLSL code to compute the gradient the sdf.
- Author
- HUEBRT-BRIERRE Pierre
Reimplemented in SDF3DNoiseNoLOD, SDFBEIS, SDFBox, SDFBoxOpt, SDFCloneDirectionOverlapX, SDFCloneDirectionX, SDFCloneRevolution, SDFConvex, SDFCopy, SDFCylinder, SDFDifference, SDFDifferenceShell, SDFDisc, SDFEmpty, SDFEstimateNormal, SDFFrames, SDFHemiSphere, SDFInterpolation, SDFIntersection, SDFLod, SDFNormalMap, SDFPlanarSymmetry, SDFPlane, SDFRevolution, SDFRevolutionSymmetry, SDFRotate, SDFRound, SDFScale, SDFSmoothDifference, SDFSmoothUnion, SDFSphere, SDFTerrainLoDContinuous, SDFTerrainLoDContinuousBEIS, SDFTorus, SDFTranslate, SDFUniformSphere, SDFUnion, and SDFVoronoi.
| QString SDFNode::GetShader |
( |
PrimitiveManager & | primitives, |
|
|
std::list< QString > & | dependency, |
|
|
bool & | valid_glsl ) 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, SDFCloneDirectionXYZ, SDFCloneRevolution, SDFCone, SDFConvex, SDFCopy, SDFCraquelure, SDFCuboctahedron, SDFCylinder, SDFCylinderBox, SDFCylinderCage, SDFCylinderCone, SDFCylinders, SDFDifference, SDFDifferenceShell, SDFDisc, SDFDodecahedron, SDFEgg, SDFEmpty, SDFEstimateNormal, SDFExtrusionAxis, SDFExtrusionQuadric, SDFFrame, SDFFrames, SDFHemiSphere, SDFIcosahedron, SDFIcosidodecahedron, SDFInterpolation, SDFIntersection, SDFIntersectionShell, SDFLink, SDFLod, SDFMorph, SDFNormalMap, SDFOctahedron, SDFPavage, SDFPlanarSymmetry, SDFPlane, SDFPyramid, SDFQuadricCurve, SDFRecProxy, 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, SDFTorusTube, SDFTranslate, SDFTriangle, SDFTubular, SDFTwist, SDFUniformScale, SDFUniformSphere, SDFUnion, and SDFVoronoi.
| double SDFNode::Signed |
( |
const Vector & | p | ) |
const |
|
virtual |
Compute the signed distance.
- Parameters
-
Reimplemented in SDF3DNoise, SDF3DNoiseNoLOD, SDF3DNoisePrimitive, SDFAddSphere, SDFAxialSymmetry, SDFBEIS, SDFBlob, SDFBoundingBox, SDFBoundingSphere, SDFBox, SDFBoxOpt, SDFBubble, SDFCage, SDFCapsule, SDFCircleArc, SDFClone, SDFCloneDirectionOverlapX, SDFCloneDirectionX, SDFCloneDirectionXY, SDFCloneDirectionXYZ, SDFCloneRevolution, SDFCone, SDFConeTube, SDFContact, SDFConvex, SDFConvexSmooth, SDFCopy, SDFCraquelure, SDFCubicCurve, SDFCuboctahedron, SDFCylinder, SDFCylinderBox, SDFCylinderCage, SDFCylinderCone, SDFCylinderNoise, SDFCylinders, SDFDifference, SDFDifferenceShell, SDFDisc, SDFDodecahedron, SDFEgg, SDFEllipseTorus, SDFEmpty, SDFEstimateNormal, 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, SDFMorph, SDFNoise, SDFNormalMap, SDFOctahedron, SDFPavage, SDFPlanarSymmetry, SDFPlane, SDFPolygonExtruded, SDFPrimitive, SDFPyramid, SDFQuadricCurve, SDFQuadricCurveNoise, SDFQuadricCylinder, SDFQuadricSweptSphere, SDFQuadricTube, SDFRecProxy, 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, SDFTorusTube, SDFTranslate, SDFTriangle, SDFTriplanar, SDFTubular, SDFTurbulence, SDFTwist, SDFUnary, SDFUniformScale, SDFUniformSphere, SDFUnion, SDFUnionR, SDFVerticalCylinder, SDFVirtualHeightField, SDFVolume, SDFVoronoi, SDFVoxel, SDFVoxelize, and SDFWarpTurbulence.