Mesh NGon Boundary Vertices by Index

#1

Hi,

Is it possible to get Mesh Ngon boundary index, without retrieving the full list vertices?

For now I have there is only this method:

        List<uint> v = M.Ngons[F].BoundaryVertexIndexList();

but is it possible to get mesh vertex by index

uint v = M.Ngons[F].BoundaryVertices[0];

Is it inefficient everytime to extract the full collection ,when user only need one vertex id?

(Dale Fugier) #2

Hi @Petras1,

The ngon boundary vertex isn’t a property of ON_Mesh, which is why we cook up a list and return it. So the answer to your question, I guess, is no.

– Dale