#[non_exhaustive]pub struct ReconstructionRequest {
pub resolution: Resolution,
pub require_closed: bool,
pub use_normals: bool,
}Expand description
What the caller wants reconstructed.
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.resolution: ResolutionSurface density to aim for.
require_closed: boolWhether the result must be a closed solid.
A scan of a room’s interior has no back faces, so demanding closure forces the provider to invent surface where it has no data. Set this only when the capture genuinely covers the whole object; a provider that cannot honour it must refuse rather than fabricate.
use_normals: boolWhether per-point normals may be used when present.
Normals dramatically improve most methods, but a capture’s normals can be wrong. Turning this off asks the provider to work from positions alone.
Implementations§
Source§impl ReconstructionRequest
impl ReconstructionRequest
Sourcepub fn at_edge_length(edge_length: Scalar) -> Self
pub fn at_edge_length(edge_length: Scalar) -> Self
A request at a stated resolution.
Sourcepub fn requiring_closed(self) -> Self
pub fn requiring_closed(self) -> Self
Demand a closed result, refusing rather than inventing surface.
Sourcepub fn ignoring_normals(self) -> Self
pub fn ignoring_normals(self) -> Self
Ignore per-point normals even when the cloud carries them.
Trait Implementations§
Source§impl Clone for ReconstructionRequest
impl Clone for ReconstructionRequest
Source§fn clone(&self) -> ReconstructionRequest
fn clone(&self) -> ReconstructionRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReconstructionRequest
impl Debug for ReconstructionRequest
Source§impl Default for ReconstructionRequest
impl Default for ReconstructionRequest
Source§impl PartialEq for ReconstructionRequest
impl PartialEq for ReconstructionRequest
impl StructuralPartialEq for ReconstructionRequest
Auto Trait Implementations§
impl Freeze for ReconstructionRequest
impl RefUnwindSafe for ReconstructionRequest
impl Send for ReconstructionRequest
impl Sync for ReconstructionRequest
impl Unpin for ReconstructionRequest
impl UnwindSafe for ReconstructionRequest
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