| 396 | } |
| 397 | |
| 398 | inline textool::IFaceNode::Ptr findTexToolFaceWithNormal(const Vector3& normal) |
| 399 | { |
| 400 | textool::IFaceNode::Ptr result; |
| 401 | |
| 402 | GlobalTextureToolSceneGraph().foreachNode([&](const textool::INode::Ptr& node) |
| 403 | { |
| 404 | auto faceNode = std::dynamic_pointer_cast<textool::IFaceNode>(node); |
| 405 | |
| 406 | if (faceNode && math::isNear(faceNode->getFace().getPlane3().normal(), normal, 0.01)) |
| 407 | { |
| 408 | result = faceNode; |
| 409 | } |
| 410 | |
| 411 | return result == nullptr; |
| 412 | }); |
| 413 | |
| 414 | return result; |
| 415 | } |
| 416 | |
| 417 | // Default manipulator mode should be "Drag" |
| 418 | TEST_F(TextureToolTest, DefaultManipulatorMode) |
no test coverage detected