GLTFMesh.cs 694 B

123456789101112131415161718192021
  1. using System.Runtime.Serialization;
  2. namespace GLTFExport.Entities
  3. {
  4. [DataContract]
  5. public class GLTFMesh : GLTFIndexedChildRootProperty
  6. {
  7. [DataMember (IsRequired = true)]
  8. public GLTFMeshPrimitive[] primitives { get; set; }
  9. [DataMember(EmitDefaultValue = false)]
  10. public float[] weights { get; set; }
  11. // Identifier shared between a babylon mesh and its instances
  12. public int idGroupInstance;
  13. // Babylon stores reference to skeleton inside a mesh
  14. // While glTF stores it inside a node
  15. // Identifier of the skeleton temporary stored here for transition
  16. public int? idBabylonSkeleton;
  17. }
  18. }