tornavis/source/blender/blenkernel/BKE_subdiv_deform.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
825 B
C++
Raw Normal View History

/* SPDX-FileCopyrightText: 2019 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup bke
*/
#pragma once
#include "BLI_sys_types.h"
struct Mesh;
struct Subdiv;
/* Special version of subdivision surface which calculates final positions for coarse vertices.
2020-04-03 03:38:04 +02:00
* Effectively is pushing the coarse positions to the limit surface.
2020-03-30 12:26:29 +02:00
*
* One of the usage examples is calculation of crazy space of subdivision modifier, allowing to
2020-04-03 03:38:04 +02:00
* paint on a deformed mesh with sub-surf on it.
*
* vertex_cos are supposed to hold coordinates of the coarse mesh. */
void BKE_subdiv_deform_coarse_vertices(Subdiv *subdiv,
const Mesh *coarse_mesh,
float (*vertex_cos)[3],
int num_verts);