Intelligent Sigend Distance Fields
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
747 B

//
// Created by xiaoxiao on 2021/12/20.
//
#ifndef OPENGL_DEMO_FUNCTIONS_CUH
#define OPENGL_DEMO_FUNCTIONS_CUH
#include <helper_cuda.h> // includes for helper CUDA functions
#include <helper_math.h>
#include <cuda_runtime_api.h>
// Maximum / minimum function
__device__ float Max_function(float x, float y, float z);
__device__ float Min_function(float x, float y, float z);
// R function
__device__ float R_a_function(float x, float y, float z);
__device__ float R_0_m_function(float x, float y, float z);
__device__ float R_p_function(float x, float y, float z);
// KS function
__device__ float K_s_function(float x, float y, float z);
// P-norm
__device__ float P_norm(float x, float y , float z);
#endif //OPENGL_DEMO_FUNCTIONS_CUH