Esempio n. 1
0
        public void CalculateNormals(object[] editors, object[] numMeshes, object[] meshes, double threshold)
        {
            if (editors == null || numMeshes == null || meshes == null)
            {
                return;
            }

            List <rem.Submesh> submeshList = new List <rem.Submesh>(meshes.Length);
            remEditor          editor      = null;
            int editorIdx = -1;
            int i         = 1;

            foreach (object id in meshes)
            {
                if (--i == 0)
                {
                    editorIdx++;
                    i      = (int)(double)numMeshes[editorIdx];
                    editor = (remEditor)editors[editorIdx];
                }
                rem.Mesh mesh = new rem.Mesh(editor.Meshes[(int)(double)id], rem.FindSkin(editor.Meshes[(int)(double)id].name, editor.Parser.SKIC));
                submeshList.AddRange(mesh.ChildList);
            }
            rem.CalculateNormals(submeshList, (float)threshold);
        }
Esempio n. 2
0
        public FormREMDragDrop(remEditor destEditor, bool frame)
        {
            InitializeComponent();
            editor = destEditor;
            if (frame)
            {
                panelFrame.BringToFront();
            }
            else
            {
                panelMesh.BringToFront();
            }

            numericFrameId.Maximum = editor.Parser.BONC.Count - 1;
            numericMeshId.Maximum  = editor.Parser.BONC.Count - 1;
        }
Esempio n. 3
0
        public FormREMDragDrop(remEditor destEditor, bool frame)
        {
            InitializeComponent();
            editor = destEditor;
            if (frame)
            {
                panelFrame.BringToFront();
            }
            else
            {
                panelMesh.BringToFront();
            }

            numericFrameId.Maximum = editor.Parser.BONC.Count - 1;
            numericMeshId.Maximum = editor.Parser.BONC.Count - 1;
        }