2#include "EditableMesh.h"
3#include "cuda_runtime.h"
4#include <thrust/sort.h>
5#include "GLSurfaceVisualModule.h"
6#include "GLWireframeVisualModule.h"
10 //__global__ void extractPolyIndices(
11 // DArray<uint> input,
12 // DArray<uint> output,
16 // int tId = threadIdx.x + (blockIdx.x * blockDim.x);
17 // if (tId >= input.size()) return;
19 // if (input[tId] == 1) {
20 // int index = atomicAdd(arrayIndex, 1);
21 // printf("output index = %d\n",index);
22 // output[index] = tId;
26 template<typename Triangle>
27 __global__ void updateNormal(
29 DArray<Triangle> triangles,
30 DArrayList<uint> polygonIndex)
32 int tId = threadIdx.x + (blockIdx.x * blockDim.x);
33 if (tId >= polygonIndex.size()) return;
38 template<typename TDataType>
39 void EditableMesh<TDataType>::resetStates()
45 DEFINE_CLASS(EditableMesh);