func main() { flag.Parse() if *help { printUsage("") } if *_if == "" { printUsage("The input file is required") } if scene, err := conv.LoadAsset(*_if); err != nil { log("Unable to load scene.\nCause: %v", err) } else { dumpScene(scene, *_of) } }
// Load the mesh information. func loadMeshInfo() { println(*meshFile) if *meshFile == "" { path, err := gas.Abs("github.com/andrebq/assimp/data/cube.dae") if err != nil { panic(err) } *meshFile = path } println(*meshFile) var err error scene, err = conv.LoadAsset(*meshFile) if err != nil { panic(err) } }