FBX.Scene.Nodes.Mesh.LoadSpecific C# (CSharp) Method

LoadSpecific() protected method

protected LoadSpecific ( System _Reader ) : void
_Reader System
return void
        protected override void LoadSpecific( System.IO.BinaryReader _Reader )
        {
            // Read bounding-box
            m_BoundingBox.m_Min.X = _Reader.ReadSingle();
            m_BoundingBox.m_Min.Y = _Reader.ReadSingle();
            m_BoundingBox.m_Min.Z = _Reader.ReadSingle();
            m_BoundingBox.m_Max.X = _Reader.ReadSingle();
            m_BoundingBox.m_Max.Y = _Reader.ReadSingle();
            m_BoundingBox.m_Max.Z = _Reader.ReadSingle();

            // Read bounding-sphere
            m_BoundingSphere.Center.X = _Reader.ReadSingle();
            m_BoundingSphere.Center.Y = _Reader.ReadSingle();
            m_BoundingSphere.Center.Z = _Reader.ReadSingle();
            m_BoundingSphere.Radius = _Reader.ReadSingle();

            // Write shadow states
            m_bCastShadow = _Reader.ReadBoolean();
            m_bReceiveShadow = _Reader.ReadBoolean();

            // Read primitives
            m_Primitives.Clear();
            int	PrimitivesCount = _Reader.ReadInt32();
            for ( int PrimitiveIndex=0; PrimitiveIndex < PrimitivesCount; PrimitiveIndex++ )
            {
                Primitive	P = new Primitive( this, _Reader );
                m_Primitives.Add( P );
            }
        }