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

Method PatchNode

radiantcore/patch/PatchNode.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "math/Hash.h"
9
10PatchNode::PatchNode(patch::PatchDefType type) :
11 scene::SelectableNode(),
12 m_dragPlanes(std::bind(&PatchNode::selectedChangedComponent, this, std::placeholders::_1)),
13 m_patch(*this),
14 _untransformedOriginChanged(true),
15 _renderableSurfaceSolid(m_patch.getTesselation(), true),
16 _renderableSurfaceWireframe(m_patch.getTesselation(), false),
17 _renderableCtrlLattice(m_patch, m_ctrl_instances),
18 _renderableCtrlPoints(m_patch, m_ctrl_instances)
19{
20 m_patch.setFixedSubdivisions(type == patch::PatchDefType::Def3, Subdivisions(m_patch.getSubdivisions()));
21}
22
23PatchNode::PatchNode(const PatchNode& other) :
24 scene::SelectableNode(other),

Callers

nothing calls this directly

Calls 2

getSubdivisionsMethod · 0.80
setFixedSubdivisionsMethod · 0.45

Tested by

no test coverage detected