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.
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.
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 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.