pub struct StlConversionOptions {
pub recognition: RecognitionOptions,
pub policy: ConversionPolicy,
pub try_kernel_analytic_rebuild: bool,
pub try_hybrid_rebuild: bool,
pub weld_tolerance: f64,
pub coordinate_precision_tolerance: f64,
pub kernel_deflection_angle_degrees: f64,
pub kernel_fit_tolerance: f64,
pub kernel_normal_tolerance_degrees: f64,
}Expand description
Controls recognition and STEP topology construction.
Fields§
§recognition: RecognitionOptionsProduction RANSAC recognition settings.
policy: ConversionPolicyAnalytic-only versus repairable-faceted behavior.
try_kernel_analytic_rebuild: boolTry the kernel’s independent plane/cylinder/cone region rebuilder after RANSAC proves that the whole mesh is analytic.
try_hybrid_rebuild: boolTry the conservative mixed plane/cylinder/cone/faceted topology builder.
This is enabled by default so recognized safe regions remain analytic even when other regions cannot be represented analytically. Disabling it is primarily useful for diagnosing the fully faceted repair path.
weld_tolerance: f64Vertex weld tolerance for hybrid segmentation and faceted repair; non-positive derives a scale-relative tolerance in the kernel.
coordinate_precision_tolerance: f64Absolute coordinate uncertainty introduced by the source encoding.
The converter will not run recognition below this distance even when
RecognitionOptions::distance_tolerance requests a smaller value.
Leave this at zero for text or double-precision sources. The CLI sets
it automatically for binary STL, whose coordinates are IEEE-754 f32.
kernel_deflection_angle_degrees: f64Deflection angle used by the kernel analytic segmentation paths.
kernel_fit_tolerance: f64Scale-relative carrier tolerance used by the kernel analytic segmentation paths.
kernel_normal_tolerance_degrees: f64Normal gate used by the kernel analytic segmentation paths.
Trait Implementations§
Source§impl Clone for StlConversionOptions
impl Clone for StlConversionOptions
Source§fn clone(&self) -> StlConversionOptions
fn clone(&self) -> StlConversionOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StlConversionOptions
impl Debug for StlConversionOptions
Source§impl Default for StlConversionOptions
impl Default for StlConversionOptions
Source§fn default() -> StlConversionOptions
fn default() -> StlConversionOptions
Source§impl<'de> Deserialize<'de> for StlConversionOptionswhere
StlConversionOptions: Default,
impl<'de> Deserialize<'de> for StlConversionOptionswhere
StlConversionOptions: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StlConversionOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StlConversionOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for StlConversionOptions
impl Serialize for StlConversionOptions
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,
Auto Trait Implementations§
impl Freeze for StlConversionOptions
impl RefUnwindSafe for StlConversionOptions
impl Send for StlConversionOptions
impl Sync for StlConversionOptions
impl Unpin for StlConversionOptions
impl UnsafeUnpin for StlConversionOptions
impl UnwindSafe for StlConversionOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more