Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh_mapping.c
| Show First 20 Lines • Show All 533 Lines • ▼ Show 20 Lines | |||||
| * can loop over the destination data (using the destination arrays origindex). | * can loop over the destination data (using the destination arrays origindex). | ||||
| * | * | ||||
| * This has the advantage that it can operate on any data-types. | * This has the advantage that it can operate on any data-types. | ||||
| * | * | ||||
| * \param totsource: The total number of elements that \a final_origindex points to. | * \param totsource: The total number of elements that \a final_origindex points to. | ||||
| * \param totfinal: The size of \a final_origindex | * \param totfinal: The size of \a final_origindex | ||||
| * \param final_origindex: The size of the final array. | * \param final_origindex: The size of the final array. | ||||
| * | * | ||||
| * \note ``totsource`` could be ``totpoly``, | * \note `totsource` could be `totpoly`, | ||||
| * ``totfinal`` could be ``tottessface`` and ``final_origindex`` its ORIGINDEX customdata. | * `totfinal` could be `tottessface` and `final_origindex` its ORIGINDEX custom-data. | ||||
| * This would allow an MPoly to loop over its tessfaces. | * This would allow an MPoly to loop over its tessfaces. | ||||
| */ | */ | ||||
| void BKE_mesh_origindex_map_create(MeshElemMap **r_map, | void BKE_mesh_origindex_map_create(MeshElemMap **r_map, | ||||
| int **r_mem, | int **r_mem, | ||||
| const int totsource, | const int totsource, | ||||
| const int *final_origindex, | const int *final_origindex, | ||||
| const int totfinal) | const int totfinal) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 701 Lines • Show Last 20 Lines | |||||