pub struct SelfIntersectionOptions {
pub chord_tolerance: f64,
pub straddle_band: f64,
pub min_crossing_length: f64,
pub weld: f64,
pub max_triangles: usize,
}Expand description
Knobs for solid_self_intersections. SelfIntersectionOptions::for_solid
derives every one from the solid’s own size.
Fields§
§chord_tolerance: f64Tessellation density. The detector resolves nothing finer than this.
straddle_band: f64Signed-distance margin a confirmed crossing must straddle the other carrier surface by, on BOTH sides.
min_crossing_length: f64Shortest mesh crossing segment that counts as a candidate.
weld: f64Coincidence radius for welding tessellation vertices.
max_triangles: usizeRefuse to scan a mesh larger than this (the report comes back
truncated), so a pathological solid cannot hang a gate.
Implementations§
Source§impl SelfIntersectionOptions
impl SelfIntersectionOptions
Sourcepub fn for_solid(solid: &BrepSolid) -> SelfIntersectionOptions
pub fn for_solid(solid: &BrepSolid) -> SelfIntersectionOptions
Every band derived from the solid’s own extent: the display chord tolerance the app meshes at, and diagonal-relative bands.
Trait Implementations§
Source§impl Clone for SelfIntersectionOptions
impl Clone for SelfIntersectionOptions
Source§fn clone(&self) -> SelfIntersectionOptions
fn clone(&self) -> SelfIntersectionOptions
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 moreimpl Copy for SelfIntersectionOptions
Source§impl Debug for SelfIntersectionOptions
impl Debug for SelfIntersectionOptions
Source§impl Serialize for SelfIntersectionOptions
impl Serialize for SelfIntersectionOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for SelfIntersectionOptions
impl Freeze for SelfIntersectionOptions
impl Move for SelfIntersectionOptions
impl RefUnwindSafe for SelfIntersectionOptions
impl Send for SelfIntersectionOptions
impl Sync for SelfIntersectionOptions
impl Unpin for SelfIntersectionOptions
impl UnsafeUnpin for SelfIntersectionOptions
impl UnwindSafe for SelfIntersectionOptions
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