Ejemplo n.º 1
0
        public Model(String name, FramedStream stream)
        {
            Name = name;

            List <GeometrySectionData> geos = new List <GeometrySectionData>();

            while (stream.CanRead)
            {
                SectionHeader header = new SectionHeader(stream);
                if (header.Type == SectionType.Clump)
                {
                    ClumpSectionData data = SectionData.FromStream <ClumpSectionData>(header, stream);
                    if (data.GeometryList != null)
                    {
                        geos.AddRange(data.GeometryList.Geometry);
                    }
                }
                break;
            }
            myGeometry = geos.ToArray();

            VertexBuffer = null;
        }