Include dependency graph for mesh_compare.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| using | Triangle = std::array<video::S3DVertex, 3> |
| Represents a triangle as three vertices. | |
| using | Quad = std::array<video::S3DVertex, 4> |
| Represents a quad as four vertices. | |
Functions | |
| bool | checkMeshEqual (const std::vector< video::S3DVertex > &vertices, const std::vector< u16 > &indices, const std::vector< Triangle > &expected) |
| Compare two meshes for equality. | |
| using Quad = std::array<video::S3DVertex, 4> |
Represents a quad as four vertices.
Vertices should be in the counter-clockwise order.
| using Triangle = std::array<video::S3DVertex, 3> |
Represents a triangle as three vertices.
“Smallest” (according to <) vertex is expected to be first, others should follow in the counter-clockwise order.
|
nodiscard |
Compare two meshes for equality.
| vertices | Vertices of the first mesh. Order doesn’t matter. |
| indices | Indices of the first mesh. Triangle order doesn’t matter. Vertex order in a triangle only matters for winding. |
| expected | The second mesh, in an expanded form. Must be sorted. |
| vertices | Vertices of the first mesh. Order doesn’t matter. |
| indices | Indices of the first mesh. Triangle order doesn’t matter. Vertex order in a triangle only matters for winding. |
| expected | The second mesh, in a quad form. |
References canonicalizeMesh().
Referenced by TestMeshCompare::testQuad(), and TestMeshCompare::testTriangle().
Here is the call graph for this function:
Here is the caller graph for this function: