/// <summary> /// /// </summary> /// <param name="buffer"></param> /// <param name="setVertexAttributes"></param> /// <param name="setHedgeAttributes"></param> /// <returns></returns> public TG CreateFromJson(string path, Action <TV, object[]> setVertexAttributes = null, Action <TE, object[]> setHedgeAttributes = null) { var result = Create(); MeshIO.ReadFromJson(path, result, setVertexAttributes, setHedgeAttributes); return(result); }
/// <summary> /// /// </summary> /// <param name="path"></param> /// <param name="setPosition"></param> /// <returns></returns> public TM CreateFromObj(string path, Action <TV, Vec3d> setPosition) { var result = Create(); MeshIO.ReadFromObj(path, result, setPosition); return(result); }
/// <summary> /// /// </summary> /// <param name="path"></param> /// <returns></returns> public G CreateFromJson(string path) { var result = Create(); MeshIO.ReadFromJson(path, result); return(result); }
/// <summary> /// /// </summary> /// <param name="path"></param> public void WriteToOBJ(string path) { MeshIO.WriteToObj(this, path, V.GetPosition, V.GetNormal, V.GetTexture); }