diff options
Diffstat (limited to 'source/blender/makesdna/DNA_mesh_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_mesh_types.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index 3f951583741..39253aafa7c 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -13,6 +13,10 @@ #include "DNA_meshdata_types.h" #include "DNA_session_uuid_types.h" +#ifdef __cplusplus +# include "BLI_math_vec_types.hh" +#endif + /** Workaround to forward-declare C++ type in C header. */ #ifdef __cplusplus namespace blender { @@ -40,7 +44,6 @@ struct MCol; struct MEdge; struct MFace; struct MLoopTri; -struct MVert; struct Material; typedef struct Mesh { @@ -61,7 +64,7 @@ typedef struct Mesh { */ struct Material **mat; - /** The number of vertices (#MVert) in the mesh, and the size of #vdata. */ + /** The number of vertices in the mesh, and the size of #vdata. */ int totvert; /** The number of edges (#MEdge) in the mesh, and the size of #edata. */ int totedge; @@ -210,12 +213,11 @@ typedef struct Mesh { MeshRuntimeHandle *runtime; #ifdef __cplusplus /** - * Array of vertex positions (and various other data). Edges and faces are defined by indices - * into this array. + * Array of vertex positions. Edges and faces are defined by indices into this array. */ - blender::Span<MVert> verts() const; + blender::Span<blender::float3> positions() const; /** Write access to vertex data. */ - blender::MutableSpan<MVert> verts_for_write(); + blender::MutableSpan<blender::float3> positions_for_write(); /** * Array of edges, containing vertex indices. For simple triangle or quad meshes, edges could be * calculated from the #MPoly and #MLoop arrays, however, edges need to be stored explicitly to |