pub struct WmoVisualizer;Expand description
Helper for visualizing WMO files
Implementations§
Source§impl WmoVisualizer
impl WmoVisualizer
Sourcepub fn create_mesh(&self, root: &WmoRoot, groups: &[WmoGroup]) -> WmoMesh
pub fn create_mesh(&self, root: &WmoRoot, groups: &[WmoGroup]) -> WmoMesh
Convert a WMO model into a mesh suitable for 3D rendering
Sourcepub fn extract_doodads(&self, root: &WmoRoot) -> Vec<WmoDoodadPlacement>
pub fn extract_doodads(&self, root: &WmoRoot) -> Vec<WmoDoodadPlacement>
Extract doodad placement information for visualization
Sourcepub fn generate_triangles(&self, groups: &[WmoGroup]) -> Vec<Vec<WmoTriangle>>
pub fn generate_triangles(&self, groups: &[WmoGroup]) -> Vec<Vec<WmoTriangle>>
Generate a list of triangles for each group
Sourcepub fn export_to_obj(&self, root: &WmoRoot, groups: &[WmoGroup]) -> String
pub fn export_to_obj(&self, root: &WmoRoot, groups: &[WmoGroup]) -> String
Export to OBJ format (simple)
Sourcepub fn export_to_mtl(&self, root: &WmoRoot) -> String
pub fn export_to_mtl(&self, root: &WmoRoot) -> String
Export materials to MTL format
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WmoVisualizer
impl RefUnwindSafe for WmoVisualizer
impl Send for WmoVisualizer
impl Sync for WmoVisualizer
impl Unpin for WmoVisualizer
impl UnwindSafe for WmoVisualizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more