-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHighboostDevice.h
More file actions
44 lines (38 loc) · 871 Bytes
/
HighboostDevice.h
File metadata and controls
44 lines (38 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <helper_cuda.h>
#include <vector>
#include <math.h>
using namespace std;
class HighboostDevice
{
public:
double3* _vertices; //vertex ��ġ
double3* _devVerticies;
int* _faces;
int* _devFaces;
int* _isStop;
int* _Vnbfaces;
int* _VnbStart;
int* _VnbEnd;
int* _dVnbfaces;
int* _dVnbStart;
int* _dVnbEnd;
int* _Fnbfaces;
int* _FnbStart;
int* _FnbEnd;
int* _dFnbfaces;
int* _dFnbStart;
int* _dFnbEnd;
double3* _bNorm;
double3* _devSmooth;
double3* _devBNorm;
double3* _devGradient;
public:
void init(int numV, int numF, int numVnb, int numFnb);
void initGPU(int numThreadV, int numV, int numF, int numVnb, int numFnb);
void free();
void copyHtoD(int numV, int numF, int numVnb, int numFnb);
void copyDtoH(int numV, int numF, int numVnb, int numFnb);
};