Vector3 GetVertexPosition( VertexHandle hVertex )
void GetVertexPosition( VertexHandle hVertex, Transform transform, Vector3& outPosition )

book_4_sparkGenerated
code_blocksInput

Description

Retrieves the position of a vertex in the mesh using the specified vertex handle.

Usage

To use this method, you need to have a valid HalfEdgeMesh.VertexHandle that represents the vertex whose position you want to retrieve. Call this method with the vertex handle as the parameter to get the vertex's position as a Vector3.

Example

// Assuming 'mesh' is an instance of PolygonMesh and 'vertexHandle' is a valid VertexHandle
Vector3 vertexPosition = mesh.GetVertexPosition(vertexHandle);
// Now 'vertexPosition' contains the position of the vertex in the mesh.