| 252 | } |
| 253 | |
| 254 | void expectVertexWithNormal(const model::IModelSurface& surface, const Vertex3& vertex, const Normal3& normal) |
| 255 | { |
| 256 | EXPECT_TRUE(surfaceHasVertexWith(surface, [&](const MeshVertex& v)->bool |
| 257 | { |
| 258 | return math::isNear(v.vertex, vertex, render::VertexEpsilon) && v.normal.dot(normal) > 1.0 - render::NormalEpsilon; |
| 259 | })) << "Could not find a vertex with xyz = " << vertex << " and normal " << normal; |
| 260 | } |
| 261 | |
| 262 | TEST_F(AseImportTest, VertexNormals) |
| 263 | { |
no test coverage detected