question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

process=True changes vertices order

See original GitHub issue

Hi,

Thanks for the great library.

I’m having a question about the process parameter in trimesh.Trimesh. When it is set to true, and validate=False, even if there is no duplicate vertices or NaNs, the order of the vertices is changed. Is this intentional?

Thank you in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mikedhcommented, Nov 29, 2020

No worries, are you loading an OBJ by chance? It’s a little bit of a long story as to why it needs another kwarg, but you can pass maintain_order to the OBJ loader. If it’s another format it really shouldn’t be changing the order with just process=False. Snippet in OBJ loader: https://github.com/mikedh/trimesh/blob/ee075ebc9f083f125d6fcfe2ed99cf8b479ad1b1/trimesh/exchange/obj.py#L22-L28

Call with: trimesh.load(file_name, process=False, maintain_order=True)

0reactions
mikedhcommented, Nov 30, 2020

Oh I didn’t read the issue title. Yeah if process=True it will change vertex order 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

trimesh.base — trimesh 3.17.1 documentation
A Trimesh object contains a triangular 3D mesh. Parameters. vertices ((n, 3) float) – Array of vertex locations. faces ((m, 3) ...
Read more >
Vertex order is changed when .obj … | Apple Developer Forums
I load an .obj file with 473 vertices and a corresponding number of normals and texture coordinates. The resulting model loads and is...
Read more >
Modify or transfer vertex orders | Maya 2020
You can change the vertex order using the Reorder Vertices command. To reorder vertices. Delete the history of the polygon object whose vertices...
Read more >
navis.MeshNeuron — navis 1.3.1 documentation
MeshNeuron(x, units=None, process=True, validate=False, **metadata)[source]¶. Neuron represented as mesh with vertices and faces. Parameters.
Read more >
Transfer Vertex Order, Reorder Vertices, Restore Blend Shape
In this tutorial I show you how can you transfer or reorder the vertices.Andor Kollar - Character Artist © 2019 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found