void AddCSG(bool additive) { var csg = new CSG { m_function = m_function, m_blend = additive ? DistanceBlend.SmoothAdd : DistanceBlend.SmoothSub, m_center = m_brush.transform.position, m_size = m_size, m_smoothness = m_smoothness, }; var root = OctNode.ms_pool[m_root]; root.Insert(m_root, CSG.Create(csg)); OctNode.ms_pool[m_root] = root; }