MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / mergeComponentsWith

Method mergeComponentsWith

radiantcore/selection/textool/PatchNode.cpp:178–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void 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
191void PatchNode::foreachVertex(const std::function<void(PatchControl&)>& functor) const
192{

Callers

nothing calls this directly

Calls 3

getTexcoordMethod · 0.80
updateTesselationMethod · 0.80
isSelectedMethod · 0.45

Tested by

no test coverage detected