void GetEdgeVertexPositions( HalfEdgeHandle hEdge, Transform transform, Vector3& outVertexA, Vector3& outVertexB )

book_4_sparkGenerated
code_blocksInput

Description

The GetEdgeVertexPositions method retrieves the positions of the vertices at both ends of a specified half-edge in a polygon mesh. The positions are transformed using the provided Transform object.

Usage

To use this method, you need to provide a handle to the half-edge whose vertex positions you want to retrieve, a Transform object to apply to the vertex positions, and two Vector3 variables to store the output positions of the vertices.

Example

// Example usage of GetEdgeVertexPositions
HalfEdgeMesh.HalfEdgeHandle edgeHandle = ...; // Obtain a valid half-edge handle
Transform transform = new Transform(); // Define the transformation
Vector3 vertexA, vertexB;

PolygonMesh polygonMesh = new PolygonMesh();
polygonMesh.GetEdgeVertexPositions(edgeHandle, transform, out vertexA, out vertexB);

// vertexA and vertexB now contain the transformed positions of the edge's vertices.