Visualize SDF Actor¶
Here is a simple tutorial that shows how to visualize SDF primitives using FURY.
SDFs or Signed-distance functions when passed the coordinates of a point in space, return the shortest distance between that point and some surface. This property of SDFs can be used to model 3D geometry at a faster rate compared to traditional polygons based modeling.
In this example we use the raymarching algorithm to render the SDF primitives shapes using shaders
import numpy as np from fury import window, actor
Lets define variables for the SDF Actor
Create SDF Actor
Create a scene
Since all the elements have been initialised ,we add them to the show manager.
Total running time of the script: ( 0 minutes 0.217 seconds)