PeriDyno 1.0.0
Loading...
Searching...
No Matches
EditableMesh.cu
Go to the documentation of this file.
1#pragma once
2#include "EditableMesh.h"
3#include "cuda_runtime.h"
4#include <thrust/sort.h>
5#include "GLSurfaceVisualModule.h"
6#include "GLWireframeVisualModule.h"
7
8namespace dyno
9{
10 //__global__ void extractPolyIndices(
11 // DArray<uint> input,
12 // DArray<uint> output,
13 // int* arrayIndex
14 //)
15 //{
16 // int tId = threadIdx.x + (blockIdx.x * blockDim.x);
17 // if (tId >= input.size()) return;
18
19 // if (input[tId] == 1) {
20 // int index = atomicAdd(arrayIndex, 1);
21 // printf("output index = %d\n",index);
22 // output[index] = tId;
23 // }
24 //}
25
26 template<typename Triangle>
27 __global__ void updateNormal(
28 DArray<Vec3f> points,
29 DArray<Triangle> triangles,
30 DArrayList<uint> polygonIndex)
31 {
32 int tId = threadIdx.x + (blockIdx.x * blockDim.x);
33 if (tId >= polygonIndex.size()) return;
34
35
36 }
37
38 template<typename TDataType>
39 void EditableMesh<TDataType>::resetStates()
40 {
41
42 };
43
44
45 DEFINE_CLASS(EditableMesh);
46
47
48
49}