kittycad_modeling_cmds/format/
sldprt.rs

1/// Import functionality.
2pub mod import {
3
4    use parse_display::{Display, FromStr};
5    use schemars::JsonSchema;
6    use serde::{Deserialize, Serialize};
7
8    /// Options for importing SolidWorks parts.
9    #[derive(Clone, Debug, Default, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, Display, FromStr)]
10    #[display("split_closed_faces: {split_closed_faces}")]
11    #[serde(default, rename = "SldprtImportOptions")]
12    #[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
13    #[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
14    pub struct Options {
15        /// Splits all closed faces into two open faces.
16        ///
17        /// Defaults to `false` but is implicitly `true` when importing into the engine.
18        pub split_closed_faces: bool,
19    }
20}