Skip to content

omerfaruktekin13/SignedDistanceFunctionPrimitives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Signed Distance Function (SDF) Primitives

Project Media

Dxxxxx
Capsule
Dxxxxx
Cube
Dxxxxx
Sphere
Dxxxxx
Torus
Dxxxxx
Mathematics Operations Combined Shape (Subtraction and Adding)

Description

Data Visualization and Real-Time Rendering with C++ code and Paraview visualization. Reconstruction of the primitive shapes created by using the Signed Distance Function and its mathematical operations for rendering. The summary of the topic is that SDF gives us a distance of point X from the boundary of a surface. If this value is less than 0, the point is inside of the considered shape. Legends in the images show the result of this function (Point distance is decreasing from red to green).

Tools and Languages

python

* ParaView

cplusplus

* C++ IDE

Installation

  1. Download SDF_to_ParaView.cpp file
  2. You will see mathematics operations for the calculation of every primitive shape's distance from its surface to the blank point cloud border.
  3. After the calculation of the chosen shape, you will get arrays full of float numbers.
  4. You can transfer this result as a table to Paraview and implement some filters to visualize your results.
  5. Don't forget to edit your Color Map to effective analyzes.

Open to Development

Please share your comments and ideas about the project with me. Thank you for your time.

About

Signed Distance Function primitives and mathematical operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages