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

Method transformComponents

radiantcore/selection/textool/PatchNode.cpp:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void 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
64void PatchNode::commitTransformation()
65{

Callers

nothing calls this directly

Calls 3

getTexcoordMethod · 0.80
updateTesselationMethod · 0.80
isSelectedMethod · 0.45

Tested by

no test coverage detected