File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def read(fname):
53
53
54
54
setup (
55
55
name = 'DracoPy' ,
56
- version = '0.0.18 ' ,
56
+ version = '0.0.19 ' ,
57
57
description = 'Python wrapper for Google\' s Draco Mesh Compression Library' ,
58
58
author = 'Manuel Castro' ,
59
59
author_email = '[email protected] ' ,
Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ namespace DracoFunctions {
61
61
meshObject.faces .reserve (3 * mesh->num_faces ());
62
62
const auto *const pos_att = mesh->attribute (pos_att_id);
63
63
std::array<float , 3 > pos_val;
64
- for (draco::AttributeValueIndex i (0 ); i < static_cast < uint32_t >(pos_att-> size ()) ; ++i ) {
65
- if (!pos_att->ConvertValue <float , 3 >(i , &pos_val[0 ])) {
64
+ for (draco::PointIndex v (0 ); v < mesh-> num_points () ; ++v ) {
65
+ if (!pos_att->ConvertValue <float , 3 >(pos_att-> mapped_index (v) , &pos_val[0 ])) {
66
66
meshObject.decode_status = no_position_attribute;
67
67
return meshObject;
68
68
}
@@ -115,8 +115,8 @@ namespace DracoFunctions {
115
115
pointCloudObject.points .reserve (3 * point_cloud->num_points ());
116
116
const auto *const pos_att = point_cloud->attribute (pos_att_id);
117
117
std::array<float , 3 > pos_val;
118
- for (draco::AttributeValueIndex i (0 ); i < static_cast < uint32_t >(pos_att-> size ()) ; ++i ) {
119
- if (!pos_att->ConvertValue <float , 3 >(i , &pos_val[0 ])) {
118
+ for (draco::PointIndex v (0 ); v < point_cloud-> num_points () ; ++v ) {
119
+ if (!pos_att->ConvertValue <float , 3 >(pos_att-> mapped_index (v) , &pos_val[0 ])) {
120
120
pointCloudObject.decode_status = no_position_attribute;
121
121
return pointCloudObject;
122
122
}
You can’t perform that action at this time.
0 commit comments