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

Method transform

radiantcore/selection/textool/PatchNode.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void PatchNode::transform(const Matrix3& transform)
39{
40 foreachVertex([&](PatchControl& vertex)
41 {
42 vertex.texcoord = transform * vertex.texcoord;
43 });
44
45 // We have to force the patch to update its tesselation since
46 // modifying the "transformed" control point set won't trigger this
47 _patch.updateTesselation(true);
48}
49
50void PatchNode::transformComponents(const Matrix3& transform)
51{

Callers

nothing calls this directly

Calls 1

updateTesselationMethod · 0.80

Tested by

no test coverage detected