static void Main(string[] args) { Console.WriteLine("Sample conversion from glb to b3dm."); var inputfile = @"testfixtures/building.glb"; var buildingGlb = File.ReadAllBytes(inputfile); var b3dm = new B3dm.Tile.B3dm(buildingGlb); var bytes = b3dm.ToBytes(); File.WriteAllBytes("test.b3dm", bytes); Console.WriteLine($"File building.b3dm is written..."); Console.WriteLine($"Press any key to continue..."); Console.ReadKey(); }
public void WriteB3dm() { var buildingGlb = File.ReadAllBytes(@"1.glb"); var b3dm = new B3dm.Tile.B3dm(buildingGlb); var res = b3dm.ToBytes(); }