@@ -9,17 +9,33 @@ pub mod import {
99 use super :: * ;
1010
1111 /// Options for importing STEP format.
12- #[ derive( Clone , Debug , Default , Eq , Hash , PartialEq , Serialize , Deserialize , JsonSchema , Display , FromStr ) ]
13- #[ display( "split_closed_faces: {split_closed_faces}" ) ]
12+ #[ derive( Clone , Debug , Eq , Hash , PartialEq , Serialize , Deserialize , JsonSchema , Display , FromStr ) ]
13+ #[ display( "coords: {coords}, split_closed_faces: {split_closed_faces}" ) ]
1414 #[ serde( default , rename = "StepImportOptions" ) ]
1515 #[ cfg_attr( feature = "ts-rs" , derive( ts_rs:: TS ) ) ]
1616 #[ cfg_attr( feature = "ts-rs" , ts( export_to = "ModelingCmd.ts" ) ) ]
1717 pub struct Options {
18+ /// Co-ordinate system of input data.
19+ ///
20+ /// Defaults to the [KittyCAD co-ordinate system].
21+ ///
22+ /// [KittyCAD co-ordinate system]: ../coord/constant.KITTYCAD.html
23+ pub coords : coord:: System ,
24+
1825 /// Splits all closed faces into two open faces.
1926 ///
2027 /// Defaults to `false` but is implicitly `true` when importing into the engine.
2128 pub split_closed_faces : bool ,
2229 }
30+
31+ impl Default for Options {
32+ fn default ( ) -> Self {
33+ Self {
34+ coords : * coord:: KITTYCAD ,
35+ split_closed_faces : false ,
36+ }
37+ }
38+ }
2339}
2440
2541/// Export models in STEP format.
0 commit comments