{"repo":"nilaysavant/bevy_pmetra","free":true,"listed":false,"github":"https://github.com/nilaysavant/bevy_pmetra","clone":"git clone https://github.com/nilaysavant/bevy_pmetra.git","description":"Parametric Modelling for Bevy using Truck CAD kernel.","language":"Rust","stars":137,"topics":["3d","3d-graphics","3dmodelling","bevy","bevy-engine","bevy-plugin","cad","game-development","gamedev","parametric-modelling"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"Bevy Pmetra Parametric Modelling for [Bevy Engine][bevy-website] using [Truck][truck-github] CAD kernel. https://github.com/nilaysavant/bevy pmetra/assets/47603308/4203fb15-539d-4ec6-b062-8519a9ec6c34 [Web Demo][pmetra-demo-web] [!WARNING] Work in Progress! Feel free to try it out, fork and mod it for your use case. You are welcome to contribute your changes upstream. I will be glad to review and merge them if they fit the vision/scope of the project. Would love any feedback and help! Add Crate Add the dependency in your project's Cargo.toml . Make sure you're using the right version tag . Refer to the Bevy Compatibility table. Create Simple Parametric Cube Refer to examples/simple cube.rs for full example. Create struct Create struct for the SimpleCube with fields being the parameters : - Make sure to derive Component . As it will be added to the root / parent SpatialBundle entity of the parametric model. Also derive Clone . - Optionally derive Reflect and Debug . Implement Default for default values of parameters: Implement Traits Implement a few traits on our SimpleCube struct for parametric behavior: - PmetraCad : For generating multiple CadShell (s) using this struct via Truck's modelling APIs. CadShell is a wrapper around Truck's Shell . - PmetraModelling : For parametrically generating Mesh (s) from CadShell (s). - PmetraInteractions : (Optional) Setup interactions for live manipulations on models using CadSlider (s). PmetraCad - CadShellsBuilders lets us add multiple ","default_branch":null,"files":null,"tree":[],"storefront":"/r/nilaysavant","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nilaysavant/bevy_pmetra/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}