@@ -9,17 +9,33 @@ pub mod import {
9
9
use super :: * ;
10
10
11
11
/// 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}" ) ]
14
14
#[ serde( default , rename = "StepImportOptions" ) ]
15
15
#[ cfg_attr( feature = "ts-rs" , derive( ts_rs:: TS ) ) ]
16
16
#[ cfg_attr( feature = "ts-rs" , ts( export_to = "ModelingCmd.ts" ) ) ]
17
17
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
+
18
25
/// Splits all closed faces into two open faces.
19
26
///
20
27
/// Defaults to `false` but is implicitly `true` when importing into the engine.
21
28
pub split_closed_faces : bool ,
22
29
}
30
+
31
+ impl Default for Options {
32
+ fn default ( ) -> Self {
33
+ Self {
34
+ coords : * coord:: KITTYCAD ,
35
+ split_closed_faces : false ,
36
+ }
37
+ }
38
+ }
23
39
}
24
40
25
41
/// Export models in STEP format.
0 commit comments