SurfaceTriangle represents a triangular face in a TriangleSurfaceMesh.
#include <drake/geometry/proximity/triangle_surface_mesh.h>
◆ SurfaceTriangle() [1/4]
◆ SurfaceTriangle() [2/4]
◆ SurfaceTriangle() [3/4]
Constructs SurfaceTriangle.
- Parameters
-
- Precondition
- index values are non-negative.
◆ SurfaceTriangle() [4/4]
Constructs SurfaceTriangle.
- Parameters
-
- Precondition
- index values are non-negative.
◆ num_vertices()
int num_vertices |
( |
| ) |
const |
Returns the number of vertices in this face.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ ReverseWinding()
Reverses the order of the vertex indices – this essentially flips the triangle normal based on the right-handed normal rule.
◆ vertex()
Returns the vertex index in TriangleSurfaceMesh of the i-th vertex of this triangle.
- Parameters
-
i | The local index of the vertex in this triangle. |
- Precondition
- 0 <= i < 3
The documentation for this class was generated from the following file: