Beispiel #1
0
        /// <summary>
        /// Pack the entity of type <see cref="Quadric" /> to the archive.
        /// </summary>
        /// <param name="entity">The entity to be archived.</param>
        /// <param name="archive">The archive where the entity is packed.</param>
        /// <param name="path">The path of the entity in the archive.</param>
        protected override void PackEntity(Quadric entity, ZipArchive archive, string path)
        {
            base.PackEntity(entity, archive, path);
            var transformation = Transformation.CreateForm(entity.Transformation);

            SerializeToArchive(transformation, archive, GetGeometryTransformationEntityPath(path));
            SerializeToArchive(new TypeInfo(transformation), archive, GetGeometryTransformationEntityTypePath(path));
        }