daavoo / pyntcloud

pyntcloud is a Python library for working with 3D point clouds.
http://pyntcloud.readthedocs.io
MIT License
1.39k stars 221 forks source link

Fix reading OBJ files with vertex normals #307

Closed mauriceqch closed 2 years ago

mauriceqch commented 2 years ago

Hello,

This is just a simple fix for reading OBJ files with vertex normals. The input to the range function is a float instead of an integer.

The problem is resolved by using integer division. A corresponding (minimal) integration test has been added. Without the fix, the test fails (TypeError). With the fix, it passes.

Best,

Maurice