| 176 | } |
| 177 | |
| 178 | void PatchNode::mergeComponentsWith(const Vector2& center) |
| 179 | { |
| 180 | for (auto& vertex : _vertices) |
| 181 | { |
| 182 | if (vertex.isSelected()) |
| 183 | { |
| 184 | vertex.getTexcoord() = center; |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | _patch.updateTesselation(true); |
| 189 | } |
| 190 | |
| 191 | void PatchNode::foreachVertex(const std::function<void(PatchControl&)>& functor) const |
| 192 | { |
nothing calls this directly
no test coverage detected