pub enum PreviewFormat {
Show 30 variants
Stl,
Obj,
Ply,
Off,
ThreeMf,
Amf,
Gltf,
Glb,
ThreeDs,
Step,
NxPart,
Jt,
SwPart,
SwAssembly,
Rhino,
InvPart,
InvAssembly,
CatiaPart,
CatiaProduct,
SketchUp,
CreoPart,
CreoAssembly,
FusionDesign,
Pts,
Xyz,
Las,
VtkLegacy,
Vtu,
Vtp,
Frd,
}Expand description
3D formats the preview understands.
Variants§
Stl
Obj
Ply
Off
ThreeMf
Amf
Gltf
Glb
ThreeDs
Step
NxPart
Siemens NX parts: the lightweight (JT) representation they store.
Jt
Standalone JT visualisation files: JT 10 with its scene graph (parts and assemblies), JT 9 as NX writes it.
SwPart
SOLIDWORKS parts: the display tessellation they store.
SwAssembly
SOLIDWORKS assemblies: put together from the previews of their parts.
Rhino
Rhino models: the meshes they store, SubD control nets refined.
InvPart
Inventor parts: the display tessellation they store.
InvAssembly
Inventor assemblies: put together from the previews of their parts.
CatiaPart
CATIA V5 parts: the visualisation (CGR) data they store.
CatiaProduct
CATIA V5 products: put together from the previews of their parts.
SketchUp
SketchUp models: their faces triangulated, components placed.
CreoPart
PTC Creo parts: tessellated from the B-rep they store.
CreoAssembly
PTC Creo assemblies: put together from the previews of their parts.
FusionDesign
Autodesk Fusion designs: the display scene they store.
Pts
Xyz
Las
VtkLegacy
Simulation results (see simmesh): legacy VTK, VTU, VTP, CalculiX FRD.
Vtu
Vtp
Frd
Implementations§
Source§impl PreviewFormat
impl PreviewFormat
pub const ALL: [PreviewFormat; 30]
Sourcepub fn of(filename: &str) -> Option<PreviewFormat>
pub fn of(filename: &str) -> Option<PreviewFormat>
Detects the format from the file name (see cadformat).
Sourcepub fn of_format(format_id: &str) -> Option<PreviewFormat>
pub fn of_format(format_id: &str) -> Option<PreviewFormat>
The preview of a stored format id (files.format).
Sourcepub fn is_result(self) -> bool
pub fn is_result(self) -> bool
Simulation results: the outer surface coloured by result fields.
Sourcepub fn may_be_assembly(self) -> bool
pub fn may_be_assembly(self) -> bool
Assemblies whose preview is put together from their parts’ previews
(services::assemblies): NX files without a lightweight
representation of their own, SOLIDWORKS and Inventor assemblies,
CATIA products, Creo assemblies.
pub fn is_point_cloud(self) -> bool
Sourcepub fn time_limit(self) -> Duration
pub fn time_limit(self) -> Duration
Time limit of one conversion.
Trait Implementations§
Source§impl Clone for PreviewFormat
impl Clone for PreviewFormat
impl Copy for PreviewFormat
Source§impl Debug for PreviewFormat
impl Debug for PreviewFormat
impl Eq for PreviewFormat
Source§impl PartialEq for PreviewFormat
impl PartialEq for PreviewFormat
impl StructuralPartialEq for PreviewFormat
Auto Trait Implementations§
impl Freeze for PreviewFormat
impl RefUnwindSafe for PreviewFormat
impl Send for PreviewFormat
impl Sync for PreviewFormat
impl Unpin for PreviewFormat
impl UnsafeUnpin for PreviewFormat
impl UnwindSafe for PreviewFormat
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.