Enum kittycad::types::InputFormat
source · pub enum InputFormat {
Fbx {},
Gltf {},
Obj {
coords: System,
units: UnitLength,
},
Ply {
coords: System,
units: UnitLength,
},
Sldprt {},
Step {},
Stl {
coords: System,
units: UnitLength,
},
}Expand description
Input format specifier.
Variants§
Fbx
Autodesk Filmbox (FBX) format.
Gltf
Binary glTF 2.0. We refer to this as glTF since that is how our customers refer to it, but this can also import binary glTF (glb).
Obj
Wavefront OBJ format.
Fields
coords: SystemCo-ordinate system of input data.
Defaults to the KittyCAD co-ordinate system.
units: UnitLengthThe units of the input data. This is very important for correct scaling and when calculating physics properties like mass, etc.
Defaults to meters.
Ply
The PLY Polygon File Format.
Fields
coords: SystemCo-ordinate system of input data.
Defaults to the KittyCAD co-ordinate system.
units: UnitLengthThe units of the input data. This is very important for correct scaling and when calculating physics properties like mass, etc.
Sldprt
SolidWorks part (SLDPRT) format.
Step
ISO 10303-21 (STEP) format.
Stl
*STereoL**ithography format.
Fields
coords: SystemCo-ordinate system of input data.
Defaults to the KittyCAD co-ordinate system.
units: UnitLengthThe units of the input data. This is very important for correct scaling and when calculating physics properties like mass, etc.
Trait Implementations§
source§impl Clone for InputFormat
impl Clone for InputFormat
source§fn clone(&self) -> InputFormat
fn clone(&self) -> InputFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InputFormat
impl Debug for InputFormat
source§impl<'de> Deserialize<'de> for InputFormat
impl<'de> Deserialize<'de> for InputFormat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for InputFormat
impl JsonSchema for InputFormat
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl PartialEq for InputFormat
impl PartialEq for InputFormat
source§fn eq(&self, other: &InputFormat) -> bool
fn eq(&self, other: &InputFormat) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for InputFormat
impl Serialize for InputFormat
source§impl Tabled for InputFormat
impl Tabled for InputFormat
impl StructuralPartialEq for InputFormat
Auto Trait Implementations§
impl Freeze for InputFormat
impl RefUnwindSafe for InputFormat
impl Send for InputFormat
impl Sync for InputFormat
impl Unpin for InputFormat
impl UnwindSafe for InputFormat
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 more