STEP is a widely used CAD data exchange format, that represents 3D solids.
It is supported as an output format by most CAD software.
- Add
bevy_step_loaderto yourCargo.toml - Add
bevy_step_loader::StepPluginplugin to the bevyApp - Load STEP assets by passing paths with ".step"/".stp" extension to
asset_server.load(..)
fn main() {
App::new()
.add_plugins(bevy_step_loader::StepPlugin)
.add_systems(Startup, setup)
.run();
}
fn setup(commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn((
Mesh3d(asset_server.load("arm.step")),
));
}