x
This commit is contained in:
@@ -161,6 +161,17 @@ class MultiSchemeMoldPlanner:
|
||||
cavity_data["metadata"]["core_required"] = mold_structure["core_required"]
|
||||
cavity_data["metadata"]["structure_decision_reason"] = mold_structure["decision_reason"]
|
||||
|
||||
# 生成可视化辅助形状:A/B 半模(分型面切分)、产品本体
|
||||
a_plate, b_plate, product_for_export = None, None, scaled_shape
|
||||
try:
|
||||
mold_block_shape = generator._create_mold_block(analysis, margin=30.0)
|
||||
a_plate, b_plate = generator._split_mold_block_by_plane(
|
||||
mold_block_shape,
|
||||
generator._get_parting_plane(parting_surface, shape),
|
||||
)
|
||||
except Exception as exc:
|
||||
logger.debug(f"A/B 半模生成失败(不影响主流程): {exc}")
|
||||
|
||||
return {
|
||||
"scheme_id": candidate["scheme_id"],
|
||||
"method": candidate["method"],
|
||||
@@ -188,6 +199,9 @@ class MultiSchemeMoldPlanner:
|
||||
"cavity": cavity,
|
||||
"core": core,
|
||||
"parting_surface": parting_surface,
|
||||
"product": product_for_export,
|
||||
"a_plate": a_plate,
|
||||
"b_plate": b_plate,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user