string GetTargetTexturePath(Mindpower.lwGeomObjInfo geom, int mtl_id, string origin_filename) { string texname = new string(geom.mtl_seq[mtl_id].tex_seq[0].file_name); string path = origin_filename.Replace(parentForm.textBox1.Text + "model\\", ""); return(textBox2.Text + path); }
string GetOriginTexturePath(Mindpower.lwGeomObjInfo geom, int mtl_id, string origin_filename) { string path = origin_filename.Replace("\\model\\", "\\texture\\"); int pathid = path.LastIndexOf("\\"); path = path.Substring(0, pathid + 1) + new string(geom.mtl_seq[mtl_id].tex_seq[0].file_name); return(path); }