Beispiel #1
0
        public static List <NUD.Polygon> Popup()
        {
            PolygonSelector selector = new PolygonSelector();

            selector.ShowDialog();
            return(selector.selected);
        }
Beispiel #2
0
        public static List <NUD.Polygon> Popup(List <ModelContainer> ModelContainer)
        {
            PolygonSelector selector = new PolygonSelector()
            {
                ModelContainers = ModelContainer
            };

            selector.ShowDialog();
            return(selector.selected);
        }
Beispiel #3
0
        private void copyMaterialToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <NUD.Polygon> polys = PolygonSelector.Popup();

            foreach (NUD.Polygon poly in polys)
            {
                poly.materials.Clear();
                foreach (NUD.Material m in ((NUD.Polygon)treeView1.SelectedNode).materials)
                {
                    poly.materials.Add(m.Clone());
                }
            }
        }
Beispiel #4
0
        private void copyMaterialToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <NUD.Polygon> polys = PolygonSelector.Popup(GetModelContainers());

            foreach (NUD.Polygon poly in polys)
            {
                // link materials. don't link a material to itself
                if (((NUD.Polygon)treeView1.SelectedNode) != poly)
                {
                    poly.materials.Clear();
                    foreach (NUD.Material m in ((NUD.Polygon)treeView1.SelectedNode).materials)
                    {
                        poly.materials.Add(m.Clone());
                    }
                }
            }
        }