Now the bevel tool, modifier, and internal operator have a material slot # parameter that the user can set. If left at default of -1, behavior is as current -- bevel face material is taken from the closest original face (this may be ambiguous). If material slot is >= 0, it gives the material slot index number for the material to use.
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
/*
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
*
|
|
* 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.
|
|
*
|
|
* Contributor(s):
|
|
*
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
*/
|
|
|
|
#ifndef __BMESH_BEVEL_H__
|
|
#define __BMESH_BEVEL_H__
|
|
|
|
/** \file blender/bmesh/tools/bmesh_bevel.h
|
|
* \ingroup bmesh
|
|
*/
|
|
|
|
struct MDeformVert;
|
|
|
|
void BM_mesh_bevel(BMesh *bm, const float offset, const int offset_type, const float segments,
|
|
const float profile, const bool vertex_only, const bool use_weights,
|
|
const bool limit_offset, const struct MDeformVert *dvert, const int vertex_group,
|
|
const int mat);
|
|
|
|
#endif /* __BMESH_BEVEL_H__ */
|