Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/subd/subd_mesh.h')
-rw-r--r--intern/cycles/subd/subd_mesh.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/intern/cycles/subd/subd_mesh.h b/intern/cycles/subd/subd_mesh.h
index 96557692f05..f6aefc20318 100644
--- a/intern/cycles/subd/subd_mesh.h
+++ b/intern/cycles/subd/subd_mesh.h
@@ -35,8 +35,10 @@
CCL_NAMESPACE_BEGIN
+#ifndef WITH_OPENSUBDIV
class SubdVert;
class SubdFace;
+#endif
class DiagSplit;
class Mesh;
@@ -46,9 +48,6 @@ class Mesh;
class SubdMesh
{
public:
- vector<SubdVert*> verts;
- vector<SubdFace*> faces;
-
SubdMesh();
~SubdMesh();
@@ -60,6 +59,17 @@ public:
bool finish();
void tessellate(DiagSplit *split);
+
+protected:
+#ifdef WITH_OPENSUBDIV
+ void *_hbrmesh;
+ vector<float> positions;
+ int num_verts, num_ptex_faces;
+#else
+ vector<SubdVert*> verts;
+ vector<SubdFace*> faces;
+#endif
+
};
CCL_NAMESPACE_END