Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
48 lines
1.6 KiB
C++
48 lines
1.6 KiB
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bke
|
|
*/
|
|
|
|
struct BMEditMesh;
|
|
struct CustomData_MeshMasks;
|
|
struct Mesh;
|
|
|
|
Mesh *BKE_mesh_wrapper_from_editmesh(BMEditMesh *em,
|
|
const CustomData_MeshMasks *cd_mask_extra,
|
|
const Mesh *me_settings);
|
|
void BKE_mesh_wrapper_ensure_mdata(Mesh *me);
|
|
bool BKE_mesh_wrapper_minmax(const Mesh *me, float min[3], float max[3]);
|
|
|
|
int BKE_mesh_wrapper_vert_len(const Mesh *me);
|
|
int BKE_mesh_wrapper_edge_len(const Mesh *me);
|
|
int BKE_mesh_wrapper_loop_len(const Mesh *me);
|
|
int BKE_mesh_wrapper_face_len(const Mesh *me);
|
|
|
|
/**
|
|
* Return a contiguous array of vertex position values, if available.
|
|
* Otherwise, vertex positions are stored in BMesh vertices.
|
|
*/
|
|
const float (*BKE_mesh_wrapper_vert_coords(const Mesh *mesh))[3];
|
|
|
|
/**
|
|
* Return a contiguous array of face normal values, if available.
|
|
* Otherwise, normals are stored in BMesh faces.
|
|
*/
|
|
const float (*BKE_mesh_wrapper_face_normals(Mesh *mesh))[3];
|
|
|
|
void BKE_mesh_wrapper_tag_positions_changed(Mesh *mesh);
|
|
|
|
void BKE_mesh_wrapper_vert_coords_copy(const Mesh *me,
|
|
float (*vert_coords)[3],
|
|
int vert_coords_len);
|
|
void BKE_mesh_wrapper_vert_coords_copy_with_mat4(const Mesh *me,
|
|
float (*vert_coords)[3],
|
|
int vert_coords_len,
|
|
const float mat[4][4]);
|
|
|
|
Mesh *BKE_mesh_wrapper_ensure_subdivision(Mesh *me);
|