BKE_mesh: add a utility to get edge indices from looptri.
Not all three sides of a tesselated mesh triangle are guaranteed to be original mesh edges, so a somewhat complicated check is required to detect which ones are real. It seems that until now there was no utility function for that, only some example code.
This commit is contained in:
@@ -105,6 +105,7 @@ int poly_get_adj_loops_from_vert(
|
||||
unsigned int r_adj[2]);
|
||||
|
||||
int BKE_mesh_edge_other_vert(const struct MEdge *e, int v);
|
||||
void BKE_mesh_looptri_get_real_edges(const struct Mesh *mesh, const struct MLoopTri *looptri, int r_edges[3]);
|
||||
|
||||
void BKE_mesh_free(struct Mesh *me);
|
||||
void BKE_mesh_init(struct Mesh *me);
|
||||
|
Reference in New Issue
Block a user