#[non_exhaustive]pub struct HiddenLineRequest<'a> {
pub meshes: &'a [HiddenLineMesh<'a>],
pub view: View,
pub edges: EdgeSelection,
pub region: Option<Aabb2>,
pub limits: HiddenLineLimits,
}Expand description
One hidden-line request.
All meshes occlude each other and themselves. A region crops the image
(closed box in image coordinates); geometry outside it neither is drawn
nor, being outside the image, occludes anything inside.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.meshes: &'a [HiddenLineMesh<'a>]Input meshes; their order orders the output.
view: ViewThe view.
edges: EdgeSelectionEdge kinds to draw.
region: Option<Aabb2>Optional image crop.
limits: HiddenLineLimitsWork limits.
Implementations§
Source§impl<'a> HiddenLineRequest<'a>
impl<'a> HiddenLineRequest<'a>
Sourcepub const fn new(
meshes: &'a [HiddenLineMesh<'a>],
view: View,
edges: EdgeSelection,
limits: HiddenLineLimits,
) -> Self
pub const fn new( meshes: &'a [HiddenLineMesh<'a>], view: View, edges: EdgeSelection, limits: HiddenLineLimits, ) -> Self
Draw meshes in view without a crop.
Sourcepub const fn with_region(self, region: Aabb2) -> Self
pub const fn with_region(self, region: Aabb2) -> Self
Crop the image to a closed box.
Trait Implementations§
Source§impl<'a> Clone for HiddenLineRequest<'a>
impl<'a> Clone for HiddenLineRequest<'a>
Source§fn clone(&self) -> HiddenLineRequest<'a>
fn clone(&self) -> HiddenLineRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for HiddenLineRequest<'a>
impl<'a> RefUnwindSafe for HiddenLineRequest<'a>
impl<'a> Send for HiddenLineRequest<'a>
impl<'a> Sync for HiddenLineRequest<'a>
impl<'a> Unpin for HiddenLineRequest<'a>
impl<'a> UnsafeUnpin for HiddenLineRequest<'a>
impl<'a> UnwindSafe for HiddenLineRequest<'a>
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