/// <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(); }
private bool readVector3D(out Vector3D v) { v = new Vector3D(); bool ret = true; if (!readFloat(out v.x)) ret = false; if (!readFloat(out v.y)) ret = false; if (!readFloat(out v.z)) ret = false; return ret; }