pywavefront / PyWavefront

Python library for importing Wavefront .obj files
BSD 3-Clause "New" or "Revised" License
312 stars 80 forks source link

Feature Request: 1-ring of the center vertex, i.e. iterator for neighbors of each vertex #116

Open electrocnic opened 4 years ago

electrocnic commented 4 years ago

To be able to iterate over the neighbors of each vertex in the correct order (1-ring of the center) would be nice.

Currently I have to figure out how to parse the neighbors on my own in the correct order. It is not enough to just store each neighbor per vertex in a list, because the order of the iteration is important for calculations.

For example, OpenMesh in C++ provides VertexVertexIter: https://www.graphics.rwth-aachen.de/media/openflipper_static/Documentation/OpenFlipper-1.1/mesh_iterators.html