Cleanup: Move UV parameterizer header to C++

See #103343
This commit is contained in:
Hans Goudey
2023-03-01 22:46:08 -05:00
committed by Gitea
parent 8cae7a0dcc
commit aea53c771d
7 changed files with 9 additions and 17 deletions

View File

@@ -5,7 +5,7 @@
*
* Utilities for manipulating UV islands.
*
* \note This is similar to `GEO_uv_parametrizer.h`,
* \note This is similar to `GEO_uv_parametrizer.hh`,
* however the data structures there don't support arbitrary topology
* such as an edge with 3 or more faces using it.
* This API uses #BMesh data structures and doesn't have limitations for manifold meshes.

View File

@@ -48,7 +48,7 @@
#include "DEG_depsgraph.h"
#include "GEO_uv_pack.hh"
#include "GEO_uv_parametrizer.h"
#include "GEO_uv_parametrizer.hh"
#include "PIL_time.h"

View File

@@ -49,7 +49,7 @@ set(SRC
GEO_subdivide_curves.hh
GEO_trim_curves.hh
GEO_uv_pack.hh
GEO_uv_parametrizer.h
GEO_uv_parametrizer.hh
)
set(LIB

View File

@@ -8,12 +8,8 @@
* \ingroup geo
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ParamHandle ParamHandle; /* Handle to an array of charts. */
typedef uintptr_t ParamKey; /* Key (hash) for identifying verts and faces. */
struct ParamHandle; /* Handle to an array of charts. */
using ParamKey = uintptr_t; /* Key (hash) for identifying verts and faces. */
#define PARAM_KEY_MAX UINTPTR_MAX
/* -------------------------------------------------------------------- */
@@ -31,7 +27,7 @@ typedef uintptr_t ParamKey; /* Key (hash) for identifying verts and
*
* \{ */
ParamHandle *GEO_uv_parametrizer_construct_begin(void);
ParamHandle *GEO_uv_parametrizer_construct_begin();
void GEO_uv_parametrizer_aspect_ratio(ParamHandle *handle, float aspx, float aspy);
@@ -126,7 +122,3 @@ void GEO_uv_parametrizer_flush(ParamHandle *handle);
void GEO_uv_parametrizer_flush_restore(ParamHandle *handle);
/** \} */
#ifdef __cplusplus
}
#endif

View File

@@ -4,7 +4,7 @@
* \ingroup eduv
*/
#include "GEO_uv_parametrizer.h"
#include "GEO_uv_parametrizer.hh"
#include "BLI_array.hh"
#include "BLI_convexhull_2d.h"

View File

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "GEO_uv_parametrizer.h"
#include "GEO_uv_parametrizer.hh"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"

View File

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "GEO_uv_parametrizer.h"
#include "GEO_uv_parametrizer.hh"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"