2525 "GcodeConfig" ,
2626 "PrintConfig" ,
2727 "OutputConfig" ,
28- "GeodesicsMethod" ,
2928 "UnionMethod" ,
3029 "load_defaults" ,
3130]
@@ -50,15 +49,6 @@ def load_defaults() -> dict[str, Any]:
5049_DEFAULTS = load_defaults ()
5150
5251
53- class GeodesicsMethod (str , Enum ):
54- """Method for computing geodesic distances."""
55-
56- EXACT_IGL = "exact_igl"
57- HEAT_IGL = "heat_igl"
58- HEAT_CGAL = "heat_cgal"
59- HEAT = "heat"
60-
61-
6252class UnionMethod (str , Enum ):
6353 """Method for combining target boundaries."""
6454
@@ -162,10 +152,6 @@ class InterpolationConfig(Data):
162152 Maximum layer height.
163153 vertical_layers_max_centroid_dist : float
164154 Maximum distance for grouping paths into vertical layers.
165- target_low_geodesics_method : GeodesicsMethod
166- Method for computing geodesics to low boundary.
167- target_high_geodesics_method : GeodesicsMethod
168- Method for computing geodesics to high boundary.
169155 target_high_union_method : UnionMethod
170156 Method for combining high target boundaries.
171157 target_high_union_params : list[float]
@@ -181,12 +167,6 @@ class InterpolationConfig(Data):
181167 vertical_layers_max_centroid_dist : float = field (
182168 default_factory = lambda : _interpolation_defaults ().get ("vertical_layers_max_centroid_dist" , 25.0 )
183169 )
184- target_low_geodesics_method : GeodesicsMethod = field (
185- default_factory = lambda : GeodesicsMethod (_interpolation_defaults ().get ("target_low_geodesics_method" , "heat_igl" ))
186- )
187- target_high_geodesics_method : GeodesicsMethod = field (
188- default_factory = lambda : GeodesicsMethod (_interpolation_defaults ().get ("target_high_geodesics_method" , "heat_igl" ))
189- )
190170 target_high_union_method : UnionMethod = field (
191171 default_factory = lambda : UnionMethod (_interpolation_defaults ().get ("target_high_union_method" , "min" ))
192172 )
@@ -199,11 +179,6 @@ class InterpolationConfig(Data):
199179
200180 def __post_init__ (self ) -> None :
201181 super ().__init__ ()
202- # Convert string enums if needed
203- if isinstance (self .target_low_geodesics_method , str ):
204- self .target_low_geodesics_method = GeodesicsMethod (self .target_low_geodesics_method )
205- if isinstance (self .target_high_geodesics_method , str ):
206- self .target_high_geodesics_method = GeodesicsMethod (self .target_high_geodesics_method )
207182 if isinstance (self .target_high_union_method , str ):
208183 self .target_high_union_method = UnionMethod (self .target_high_union_method )
209184
@@ -214,8 +189,6 @@ def __data__(self) -> dict[str, Any]:
214189 "min_layer_height" : self .min_layer_height ,
215190 "max_layer_height" : self .max_layer_height ,
216191 "vertical_layers_max_centroid_dist" : self .vertical_layers_max_centroid_dist ,
217- "target_low_geodesics_method" : self .target_low_geodesics_method .value ,
218- "target_high_geodesics_method" : self .target_high_geodesics_method .value ,
219192 "target_high_union_method" : self .target_high_union_method .value ,
220193 "target_high_union_params" : self .target_high_union_params ,
221194 "uneven_upper_targets_offset" : self .uneven_upper_targets_offset ,
@@ -231,12 +204,6 @@ def __from_data__(cls, data: dict[str, Any]) -> InterpolationConfig:
231204 vertical_layers_max_centroid_dist = data .get (
232205 "vertical_layers_max_centroid_dist" , d .get ("vertical_layers_max_centroid_dist" , 25.0 )
233206 ),
234- target_low_geodesics_method = data .get (
235- "target_low_geodesics_method" , d .get ("target_low_geodesics_method" , "heat_igl" )
236- ),
237- target_high_geodesics_method = data .get (
238- "target_high_geodesics_method" , d .get ("target_high_geodesics_method" , "heat_igl" )
239- ),
240207 target_high_union_method = data .get ("target_high_union_method" , d .get ("target_high_union_method" , "min" )),
241208 target_high_union_params = data .get ("target_high_union_params" , d .get ("target_high_union_params" , [])),
242209 uneven_upper_targets_offset = data .get (
0 commit comments