/// <summary> /// Construct a new Bone /// </summary> public Bone() { children = new List<Node>(); name = ""; position = new Vertex(); translate = new Vertex(); color = Colors.Random(); meshes = new List<Mesh>(); ani = new List<Keyframe>(); sphere = null; }
/// <summary> /// Construct a new Bone from an ASE GeomObject /// </summary> /// <param name="vertex">ASE GeomObject to read from</param> public Bone(ASE.GeomObject obj) { children = new List<Node>(); name = obj.name; color = Colors.Random(); ASE.Vector3D v = obj.mesh.verticies[0]; position = new Vertex(v.x, v.y, v.z); translate = new Vertex(); meshes = new List<Mesh>(); ani = new List<Keyframe>(); //Create visual representation sphere = makeSphere(); }