From 1d9baf1f052558234245ea1ee40f0f5aebeeb8ee Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Fri, 24 Apr 2020 00:31:15 -0400 Subject: [PATCH] Add some documentation for mesh module --- src/lib.rs | 1 + src/mesh.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 4850fd9..80764db 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,7 @@ pub mod colour; pub mod image; pub mod integrators; pub mod materials; +/// Import triangle meshes from model files such as .obj pub mod mesh; /// Core raycasting and geometry primitives pub mod raycasting; diff --git a/src/mesh.rs b/src/mesh.rs index e3d486d..e9484db 100644 --- a/src/mesh.rs +++ b/src/mesh.rs @@ -1,3 +1,4 @@ +/// Load a model from a Wavefront .obj file mod wavefront_obj { use crate::materials::Material; use crate::Real;