Example #1
0
        /// <summary>
        /// Load a reference mesh from a given stream
        /// </summary>
        /// <param name="lodLevel">The lod level of this reference mesh</param>
        /// <param name="filename">the name and path of the file containing the mesh data</param>
        /// <returns>the loaded reference mesh</returns>
        public virtual ReferenceMesh LoadReferenceMesh(int lodLevel, string filename)
        {
            if (filename == "avatar_eye_1.llm")
            {
                throw new ArgumentException("Eyballs are not LOD Meshes", "filename");
            }

            ReferenceMesh reference = new ReferenceMesh();

            reference.LoadMesh(filename);
            LodMeshes[lodLevel] = lodLevel;
            return(reference);
        }
Example #2
0
        public virtual object LoadLodMesh(int level, string filename)
        {
            if (filename != "avatar_eye_1.llm")
            {
                ReferenceMesh refMesh = new ReferenceMesh();
                refMesh.LoadMesh(filename);
                LodMeshes[level] = refMesh;
                return(refMesh);
            }

            LindenMesh fullMesh = new LindenMesh("");

            fullMesh.LoadMesh(filename);
            LodMeshes[level] = fullMesh;
            return(fullMesh);
        }
        /// <summary>
        /// Load a reference mesh from a given stream
        /// </summary>
        /// <param name="lodLevel">The lod level of this reference mesh</param>
        /// <param name="filename">the name and path of the file containing the mesh data</param>
        /// <returns>the loaded reference mesh</returns>
        public virtual ReferenceMesh LoadReferenceMesh(int lodLevel, string filename)
        {
            if (filename == "avatar_eye_1.llm")
                throw new ArgumentException("Eyballs are not LOD Meshes", "filename");

            ReferenceMesh reference = new ReferenceMesh();
            reference.LoadMesh(filename);
            LodMeshes[lodLevel] = lodLevel;
            return reference;
        }
        public virtual object LoadLodMesh(int level, string filename)
        {
            if (filename != "avatar_eye_1.llm")
            {
                ReferenceMesh refMesh = new ReferenceMesh();
                refMesh.LoadMesh(filename);
                LodMeshes[level] = refMesh;
                return refMesh;
            }

            LindenMesh fullMesh = new LindenMesh("");
            fullMesh.LoadMesh(filename);
            LodMeshes[level] = fullMesh;
            return fullMesh;
        }