Include dependency graph for mesh_compare.cpp:Functions | |
| static std::vector< Triangle > | expandMesh (const std::vector< video::S3DVertex > &vertices, const std::vector< u16 > &indices) |
| static Triangle | sortTriangle (Triangle t) |
| Sorts triangle vertices, keeping winding order. | |
| static std::vector< Triangle > | canonicalizeMesh (const std::vector< video::S3DVertex > &vertices, const std::vector< u16 > &indices) |
| bool | checkMeshEqual (const std::vector< video::S3DVertex > &vertices, const std::vector< u16 > &indices, const std::vector< Triangle > &expected) |
| Compare two meshes for equality. | |
|
static |
References expandMesh(), and sortTriangle().
Referenced by checkMeshEqual().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 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:
|
static |
Sorts triangle vertices, keeping winding order.
Referenced by canonicalizeMesh().
Here is the caller graph for this function: