Example #1
0
        internal void SetWorkingData(PolyMesh polyMesh, PolyMeshDetail detailMesh)
        {
            if (polyMesh == null ||
                polyMesh.PolyCount == 0)
            {
                SetAsEmpty();
                return;
            }

            this.polyMesh = polyMesh.GetSerializedData(false);

            if (detailMesh == null)
            {
                this.detailMesh = new byte[0];
            }
            else
            {
                this.detailMesh = detailMesh.GetSerializedData(false);
            }
        }