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.
19 lines
537 B
19 lines
537 B
#ifndef NURBSPERFORMER_SRF_MESH_CUH
|
|
#define NURBSPERFORMER_SRF_MESH_CUH
|
|
|
|
#include "glm/glm.hpp"
|
|
|
|
class SrfMesh {
|
|
public:
|
|
bool inDev; // 告诉SerMesh各个指针是指向CPU的还是GPU,true:GPU
|
|
int edgeSampleCnt;
|
|
glm::vec3 *evaluations;
|
|
glm::vec3 *tangent_u;
|
|
glm::vec3 *tangent_v;
|
|
glm::vec3 *normal;
|
|
SrfMesh(bool inDev, int edgeSampleCnt, glm::vec3 *eval = nullptr, glm::vec3 *tan_u = nullptr, glm::vec3 *tan_v = nullptr, glm::vec3 *nor= nullptr);
|
|
~SrfMesh();
|
|
};
|
|
|
|
|
|
#endif //NURBSPERFORMER_SRF_MESH_CUH
|
|
|