void GetEdgeVertices( HalfEdgeHandle hEdge, HalfEdgeMesh.VertexHandle& hVertexA, HalfEdgeMesh.VertexHandle& hVertexB )

book_4_sparkGenerated
code_blocksInput

Description

The GetEdgeVertices method retrieves the two vertices associated with a specified half-edge in a polygon mesh. This method is useful for understanding the topology of the mesh by identifying the vertices that form the endpoints of a given edge.

Usage

To use the GetEdgeVertices method, you need to provide a handle to the half-edge for which you want to retrieve the vertices. The method will output the handles of the two vertices that form the endpoints of the specified edge.

Parameters:

  • hEdge: A handle to the half-edge whose vertices you want to retrieve.
  • hVertexA: An output parameter that will hold the handle to the first vertex of the edge.
  • hVertexB: An output parameter that will hold the handle to the second vertex of the edge.

Example

// Assume 'mesh' is an instance of PolygonMesh and 'edgeHandle' is a valid HalfEdgeHandle
HalfEdgeMesh.VertexHandle vertexA, vertexB;
mesh.GetEdgeVertices(edgeHandle, out vertexA, out vertexB);

// Now vertexA and vertexB contain the handles to the vertices of the specified edge.