fn main() { convert_fbx_to_3dtiles("/mnt/f/BaiduNetdiskDownload/绿科模型/绿科-三维视图-{三维}111.fbx"); } unsafe extern "C" { pub unsafe fn fbx_parse(name_in: *const u8); pub unsafe fn load_fbx_mesh_to_db(path: *const u8); } fn convert_fbx_to_3dtiles(fbx_path: &str) { unsafe { // fbx_parse(fbx_path.as_ptr() as *const u8); // 1. load to disk load_fbx_mesh_to_db(fbx_path.as_ptr() as *const u8); } // unsafe { // let scene = fbx_parse(fbx_path.as_ptr() as *const i8); // // Assume we have a function to extract geometry from FBX scene // let geometries = extract_geometries(scene); // let mut tiles_data = Vec::new(); // for geometry in geometries { // // Transform the geometry data to 3D Tiles format data // let tile_data = transform_to_3dtiles(geometry); // tiles_data.push(tile_data); // } // // Write the 3D Tiles data to files or serve it as required // write_3dtiles(tiles_data); // } }