rust-assimp

Crates.iorust-assimp
lib.rsrust-assimp
version0.0.23
sourcesrc
created_at2014-11-22 11:08:58.377827
updated_at2015-12-11 23:56:40.231265
descriptionA rust wrapper for assimp the open asset import library
homepage
repositoryhttps://github.com/jemcroft/rust-assimp
max_upload_size
id334
size2,596,808
xman (jemcroft)

documentation

http://www.rust-ci.org/jemcroft/rust-assimp/doc/assimp/

README

rust-assimp Build Status

Documentation

Notice

This code is currently unstable.

Building

Examles

Simple import example

This example sets up logging, loads a model and prints all its vertices to stdout.

extern crate assimp;

use assimp as ai;

fn main() {
    // Log to stdout and a file `log.txt`
    ai::log::add_log_stream(ai::log::Stdout);
    ai::log::add_log_stream(ai::log::File("log.txt"));
    ai::log::enable_verbose_logging(true);

    let importer = ai::Importer::new();

    // The file to import
    let scene = importer.import("examples/assets/cube.dae").unwrap();

    // Print all the vertices in all the meshes
    for mesh in scene.get_meshes().iter() {
        for vert in mesh.get_vertices().iter() {
            println!("{:?}", vert);
        }
    }
}
Commit count: 0

cargo fmt