| 8 | #include "math/Hash.h" |
| 9 | |
| 10 | PatchNode::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 | |
| 23 | PatchNode::PatchNode(const PatchNode& other) : |
| 24 | scene::SelectableNode(other), |
nothing calls this directly
no test coverage detected