Generate sandbox 2 rib profile (11 pockets, validated)
This commit is contained in:
@@ -33,7 +33,10 @@ def _merge_params(geometry: Dict[str, Any], params_file: Path | None) -> Dict[st
|
||||
if not isinstance(user_params, dict):
|
||||
raise ValueError("--params must point to a JSON object")
|
||||
params.update(user_params)
|
||||
params["thickness"] = float(geometry.get("thickness", params.get("thickness", 10.0)))
|
||||
raw_thick = geometry.get("thickness")
|
||||
if raw_thick is None:
|
||||
raw_thick = params.get("thickness", 10.0)
|
||||
params["thickness"] = float(raw_thick)
|
||||
return params
|
||||
|
||||
|
||||
|
||||
1093
tools/adaptive-isogrid/tests/output/rib_profile_sandbox_2.json
Normal file
1093
tools/adaptive-isogrid/tests/output/rib_profile_sandbox_2.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,124 +1,125 @@
|
||||
{
|
||||
"schema_version": "1.0",
|
||||
"units": "mm",
|
||||
"sandbox_id": "sandbox_2",
|
||||
"outer_boundary": [
|
||||
[
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
7.5,
|
||||
-7.5
|
||||
],
|
||||
[
|
||||
7.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
22.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
22.5,
|
||||
-13.496098
|
||||
],
|
||||
[
|
||||
74.5,
|
||||
-13.496098
|
||||
],
|
||||
[
|
||||
74.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
102.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
102.5,
|
||||
-7.5
|
||||
],
|
||||
[
|
||||
117.5,
|
||||
-7.5
|
||||
],
|
||||
[
|
||||
117.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
140.748693,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
140.748693,
|
||||
124.4
|
||||
],
|
||||
[
|
||||
117.5,
|
||||
124.4
|
||||
],
|
||||
[
|
||||
117.5,
|
||||
102.5
|
||||
],
|
||||
[
|
||||
102.5,
|
||||
102.5
|
||||
],
|
||||
[
|
||||
102.5,
|
||||
124.4
|
||||
],
|
||||
[
|
||||
7.5,
|
||||
124.4
|
||||
],
|
||||
[
|
||||
7.5,
|
||||
102.5
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
95.0
|
||||
],
|
||||
[
|
||||
-13.5,
|
||||
95.0
|
||||
],
|
||||
[
|
||||
-13.5,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"inner_boundaries": [],
|
||||
"num_inner_boundaries": 0,
|
||||
"thickness": null,
|
||||
"transform": {
|
||||
"origin": [
|
||||
-196.0,
|
||||
175.5,
|
||||
4.35
|
||||
],
|
||||
"x_axis": [
|
||||
0.0,
|
||||
-1.0,
|
||||
0.0
|
||||
],
|
||||
"y_axis": [
|
||||
1.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"normal": [
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
}
|
||||
{
|
||||
"schema_version": "1.0",
|
||||
"units": "mm",
|
||||
"sandbox_id": "sandbox_2",
|
||||
"outer_boundary": [
|
||||
[
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
7.5,
|
||||
-7.5
|
||||
],
|
||||
[
|
||||
7.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
22.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
22.5,
|
||||
-13.496098
|
||||
],
|
||||
[
|
||||
74.5,
|
||||
-13.496098
|
||||
],
|
||||
[
|
||||
74.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
102.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
102.5,
|
||||
-7.5
|
||||
],
|
||||
[
|
||||
117.5,
|
||||
-7.5
|
||||
],
|
||||
[
|
||||
117.5,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
140.748693,
|
||||
-22.6
|
||||
],
|
||||
[
|
||||
140.748693,
|
||||
124.4
|
||||
],
|
||||
[
|
||||
117.5,
|
||||
124.4
|
||||
],
|
||||
[
|
||||
117.5,
|
||||
102.5
|
||||
],
|
||||
[
|
||||
102.5,
|
||||
102.5
|
||||
],
|
||||
[
|
||||
102.5,
|
||||
124.4
|
||||
],
|
||||
[
|
||||
7.5,
|
||||
124.4
|
||||
],
|
||||
[
|
||||
7.5,
|
||||
102.5
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
95.0
|
||||
],
|
||||
[
|
||||
-13.5,
|
||||
95.0
|
||||
],
|
||||
[
|
||||
-13.5,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"inner_boundaries": [],
|
||||
"num_inner_boundaries": 0,
|
||||
"thickness": null,
|
||||
"transform": {
|
||||
"origin": [
|
||||
-196.0,
|
||||
175.5,
|
||||
4.35
|
||||
],
|
||||
"x_axis": [
|
||||
0.0,
|
||||
-1.0,
|
||||
0.0
|
||||
],
|
||||
"y_axis": [
|
||||
1.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"normal": [
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"holes": []
|
||||
}
|
||||
Reference in New Issue
Block a user