| 48 | } |
| 49 | |
| 50 | void PatchNode::transformComponents(const Matrix3& transform) |
| 51 | { |
| 52 | for (auto& vertex : _vertices) |
| 53 | { |
| 54 | if (!vertex.isSelected()) continue; |
| 55 | |
| 56 | vertex.getTexcoord() = transform * vertex.getTexcoord(); |
| 57 | } |
| 58 | |
| 59 | // We have to force the patch to update its tesselation since |
| 60 | // modifying the "transformed" control point set won't trigger this |
| 61 | _patch.updateTesselation(true); |
| 62 | } |
| 63 | |
| 64 | void PatchNode::commitTransformation() |
| 65 | { |
nothing calls this directly
no test coverage detected