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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-09-11 12:09:39 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-09-19 12:51:25 +0300
commit65d8c771c7b7c0b0e3416222cf81c8aee97e0ed3 (patch)
treefc822500e6e24fab6680938797a743b14e505c27 /source/blender/blenkernel/BKE_subdiv_deform.h
parentb2333a3534961a04e13b19696c1007f3dbe7f037 (diff)
Subdiv: Add deformation-only subdivision
Is intended to be used to generate an array of coordinates of coarse vertices placed to the final subdivided position.
Diffstat (limited to 'source/blender/blenkernel/BKE_subdiv_deform.h')
-rw-r--r--source/blender/blenkernel/BKE_subdiv_deform.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_subdiv_deform.h b/source/blender/blenkernel/BKE_subdiv_deform.h
new file mode 100644
index 00000000000..9a97c23afa7
--- /dev/null
+++ b/source/blender/blenkernel/BKE_subdiv_deform.h
@@ -0,0 +1,38 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2019 by Blender Foundation.
+ * All rights reserved.
+ */
+
+/** \file
+ * \ingroup bke
+ */
+
+#ifndef __BKE_SUBDIV_DEFORM_H__
+#define __BKE_SUBDIV_DEFORM_H__
+
+#include "BLI_sys_types.h"
+
+struct Mesh;
+struct Subdiv;
+
+/* Special version of subdivision surface which calculates final positions for coarse vertices. */
+void BKE_subdiv_deform_coarse_vertices(struct Subdiv *subdiv,
+ const struct Mesh *coarse_mesh,
+ float (*vertex_cos)[3],
+ int num_verts);
+
+#endif /* __BKE_SUBDIV_DEFORM_H__ */