Good Morning.

How can I get the list of all vertices that participate in the construction of a triangle of a mesh?

I want something like this “face list”

Good Morning.

How can I get the list of all vertices that participate in the construction of a triangle of a mesh?

I want something like this “face list”

By default they can only be accessed from a c# script.

If you’re looking to do this from a shader, look into geometry shaders.

Thanks for the answer!

Used the mesh triangle but it only returns the triangles themselves. What I want is to get the 3 vertices that make up a triangle.

I want to do the following. Create a list of vertexes. Each sequence of 3 vertices represents a triangle. So I can send this list to a Compute shader. So I can use the [MT97]

@MatheusMarkies did you take a look at the manual like @bgolus suggested?

Triangles array contains references to vertices which are stored in Mesh.vertices. So just get the vertices from the Mesh.vertices array based on the index numbers in the triangles array.