diff options
author | Hans Goudey <h.goudey@me.com> | 2021-07-30 22:08:43 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-07-30 22:08:43 +0300 |
commit | 35894dc700e035da914fb8457ef62706c5835391 (patch) | |
tree | 13ac3b85bb2216ee425fd40c5702517942127b1c /intern/openvdb/openvdb_capi.cc | |
parent | 54bd5efa6881dbc59f732a17593f4cf03037f9a0 (diff) |
Cleanup: Simplify logic, follow style guide for integer types
- Use `int` instead of `unsigned int` for mesh indices
- Use C++ types (Array, float3, IndexRange)
- Use range based for loops
Diffstat (limited to 'intern/openvdb/openvdb_capi.cc')
-rw-r--r-- | intern/openvdb/openvdb_capi.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/intern/openvdb/openvdb_capi.cc b/intern/openvdb/openvdb_capi.cc index e7a4bf335fc..674b394fa46 100644 --- a/intern/openvdb/openvdb_capi.cc +++ b/intern/openvdb/openvdb_capi.cc @@ -63,9 +63,9 @@ void OpenVDBLevelSet_free(OpenVDBLevelSet *level_set) void OpenVDBLevelSet_mesh_to_level_set(struct OpenVDBLevelSet *level_set, const float *vertices, - const unsigned int *faces, - const unsigned int totvertices, - const unsigned int totfaces, + const int *faces, + const int totvertices, + const int totfaces, OpenVDBTransform *xform) { level_set->mesh_to_level_set(vertices, faces, totvertices, totfaces, xform->get_transform()); @@ -73,9 +73,9 @@ void OpenVDBLevelSet_mesh_to_level_set(struct OpenVDBLevelSet *level_set, void OpenVDBLevelSet_mesh_to_level_set_transform(struct OpenVDBLevelSet *level_set, const float *vertices, - const unsigned int *faces, - const unsigned int totvertices, - const unsigned int totfaces, + const int *faces, + const int totvertices, + const int totfaces, OpenVDBTransform *transform) { level_set->mesh_to_level_set(vertices, faces, totvertices, totfaces, transform->get_transform()); |