pub struct Importer {
pub shape_modify_config: ShapeModifyConfig,
pub cde_config: CDEConfig,
}Expand description
Converts external representations of items and containers into internal ones.
Fields§
§shape_modify_config: ShapeModifyConfig§cde_config: CDEConfigImplementations§
Source§impl Importer
impl Importer
Sourcepub fn new(
cde_config: CDEConfig,
simplify_tolerance: Option<f32>,
min_item_separation: Option<f32>,
narrow_concavity_cutoff_ratio: Option<f32>,
) -> Importer
pub fn new( cde_config: CDEConfig, simplify_tolerance: Option<f32>, min_item_separation: Option<f32>, narrow_concavity_cutoff_ratio: Option<f32>, ) -> Importer
Creates a new instance with the given configuration.
cde_config- Configuration for the CDE (Collision Detection Engine).simplify_tolerance- SeeShapeModifyConfig.min_item_separation- Optional minimum separation distance between items and any other hazard. If enabled, every hazard is inflated/deflated by half this value. SeeShapeModifyConfig.narrow_concavity_cutoff_ratio- Optional maximum distance for closing narrow concavities. If enabled, the shapes are modified to close narrow concavities that are smaller than this value. SeeShapeModifyConfig.
pub fn import_item(&self, ext_item: &ExtItem) -> Result<Item>
pub fn import_container(&self, ext_cont: &ExtContainer) -> Result<Container>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Importer
impl RefUnwindSafe for Importer
impl Send for Importer
impl Sync for Importer
impl Unpin for Importer
impl UnwindSafe for Importer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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