Struct parse_blend_file::SceneDescriptionBuilder
source · [−]pub(crate) struct SceneDescriptionBuilder {
pub(crate) mesh_names: Vec<String>,
pub(crate) meshes: Vec<Arc<TriangleMesh>>,
pub(crate) triangle_colors: Vec<Vec<Spectrum>>,
pub(crate) cylinder_names: Vec<String>,
pub(crate) cylinders: Vec<Arc<Shape>>,
pub(crate) disk_names: Vec<String>,
pub(crate) disks: Vec<Arc<Shape>>,
pub(crate) sphere_names: Vec<String>,
pub(crate) spheres: Vec<Arc<Shape>>,
pub(crate) lights: Vec<Arc<Light>>,
}
Fields
mesh_names: Vec<String>
meshes: Vec<Arc<TriangleMesh>>
triangle_colors: Vec<Vec<Spectrum>>
cylinder_names: Vec<String>
cylinders: Vec<Arc<Shape>>
disk_names: Vec<String>
disks: Vec<Arc<Shape>>
sphere_names: Vec<String>
spheres: Vec<Arc<Shape>>
lights: Vec<Arc<Light>>
Implementations
sourceimpl SceneDescriptionBuilder
impl SceneDescriptionBuilder
pub(crate) fn new() -> SceneDescriptionBuilder
pub(crate) fn add_mesh(
&mut self,
base_name: String,
object_to_world: Transform,
world_to_object: Transform,
n_triangles: u32,
vertex_indices: Vec<u32>,
n_vertices: u32,
p_ws: Vec<Point3f>,
s: Vec<Vector3f>,
n_ws: Vec<Normal3f>,
uv: Vec<Point2f>,
triangle_colors: Vec<Spectrum>,
alpha_hide_hm: &HashMap<String, bool>
) -> &mut SceneDescriptionBuilder
pub(crate) fn add_sphere(
&mut self,
base_name: String,
object_to_world: Transform,
world_to_object: Transform,
radius: Float,
z_min: Float,
z_max: Float,
phi_max: Float
) -> &mut SceneDescriptionBuilder
pub(crate) fn add_hdr_light(
&mut self,
light_to_world: Transform,
texmap: String,
light_scale: f32
) -> &mut SceneDescriptionBuilder
pub(crate) fn add_distant_light(
&mut self,
light_to_world: Transform,
l: Spectrum,
light_scale: f32
) -> &mut SceneDescriptionBuilder
pub(crate) fn add_point_light(
&mut self,
light_to_world: Transform,
l: Spectrum,
light_scale: f32
) -> &mut SceneDescriptionBuilder
pub(crate) fn finalize(self) -> SceneDescription
Auto Trait Implementations
impl !RefUnwindSafe for SceneDescriptionBuilder
impl Send for SceneDescriptionBuilder
impl Sync for SceneDescriptionBuilder
impl Unpin for SceneDescriptionBuilder
impl !UnwindSafe for SceneDescriptionBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more