Files
cdsl-cad/json_to_cdsl/output/010952.cdsl.json
T
2026-08-21 11:13:18 +08:00

691 lines
15 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "010952",
"geometry": {
"sketches": [
{
"id": "sk_001",
"name": "原点",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": []
}
},
{
"id": "sk_002",
"name": "草图1",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
1.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
0.0,
4.0
],
"end": [
0.0,
0.0
]
},
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
27.0,
0.0
]
},
{
"type": "line",
"start": [
27.0,
0.0
],
"end": [
27.0,
5.0
]
},
{
"type": "line",
"start": [
27.0,
5.0
],
"end": [
19.0,
5.0
]
},
{
"type": "line",
"start": [
19.0,
5.0
],
"end": [
19.0,
7.0
]
},
{
"type": "line",
"start": [
19.0,
7.0
],
"end": [
14.0,
7.0
]
},
{
"type": "line",
"start": [
14.0,
7.0
],
"end": [
14.0,
4.0
]
},
{
"type": "line",
"start": [
14.0,
4.0
],
"end": [
0.0,
4.0
]
}
]
}
]
}
},
{
"id": "sk_003",
"name": "草图2",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
0.0,
0.0,
-1.0
],
"y_dir": [
0.707106781,
0.0,
0.707106781
],
"normal": [
0.0,
-1.0,
0.0
]
},
"profile": {
"type": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 2.0
}
},
{
"id": "sk_004",
"name": "草图3",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
-0.0,
-0.0
],
"x_dir": [
0.0,
0.0,
-1.0
],
"y_dir": [
0.707106781,
0.0,
0.707106781
],
"normal": [
0.0,
-1.0,
0.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
7.0,
-6.0
],
"end": [
-7.0,
-6.0
]
},
{
"type": "line",
"start": [
-7.0,
-6.0
],
"end": [
-7.0,
6.0
]
},
{
"type": "line",
"start": [
-7.0,
6.0
],
"end": [
7.0,
6.0
]
},
{
"type": "line",
"start": [
7.0,
6.0
],
"end": [
7.0,
-6.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
6.0
],
"end": [
0.0,
-6.0
]
},
{
"type": "line",
"start": [
7.0,
0.0
],
"end": [
-7.0,
-0.0
]
}
]
}
}
]
},
"features": [
{
"id": "f_001",
"name": "前视基准面",
"atomic_id": "reference_plane",
"depends_on": [],
"params": {
"plane": {
"origin_mm": [
0.0,
0.0,
0.0
],
"normal": [
0.0,
1.0,
0.0
],
"x_dir": [
1.0,
0.0,
0.0
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10
},
"execution_status": "deferred"
},
{
"id": "f_002",
"name": "上视基准面",
"atomic_id": "reference_plane",
"depends_on": [
"f_001"
],
"params": {
"plane": {
"origin_mm": [
0.0,
0.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
],
"x_dir": [
1.0,
0.0,
0.0
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10
},
"execution_status": "deferred"
},
{
"id": "f_004",
"name": "旋转1",
"atomic_id": "revolve_add",
"depends_on": [
"f_001"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
0.0,
0.0,
0.0
],
"direction": [
1.0,
0.0,
0.0
]
},
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002",
"selectors": [
{
"kind": "axis",
"stable_id": "fee7aa786ba0c9423a1164b44e7a58147dee2c48438f4bc0cd6d4d22ac2d0cd1",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
0.0,
0.0,
0.0
],
"end": [
0.027,
0.0,
0.0
]
}
}
]
},
{
"id": "f_003",
"name": "右视基准面",
"atomic_id": "reference_plane",
"depends_on": [
"f_002"
],
"params": {
"plane": {
"origin_mm": [
0.0,
0.0,
0.0
],
"normal": [
1.0,
0.0,
0.0
],
"x_dir": [
0.0,
1.0,
0.0
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 10
},
"execution_status": "deferred"
},
{
"id": "f_005",
"name": "切除-拉伸1",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 14.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_003"
},
{
"id": "f_006",
"name": "切除-拉伸2",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_004"
},
{
"id": "f_007",
"name": "M3 螺纹孔1",
"atomic_id": "hole_wizard",
"depends_on": [
"f_002",
"f_004"
],
"params": {
"hole_type": "底部螺纹孔",
"diameter_mm": 3.0,
"depth_mm": 4.0,
"end_condition": {
"solidworks_code": 1,
"type": "through_all"
},
"positions": [
{
"mm": [
10.0,
0.0,
0.0
]
}
],
"thread": {
"diameter_mm": 3.0,
"depth_mm": 4.0,
"class": "1B"
}
},
"execution_status": "deferred",
"sketch_id": "sk_001",
"unresolved": [
"hole has no captured semantic selections"
]
}
],
"meta": {
"unit": "mm",
"source": "010952.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "complete_with_blockers",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.014655246051425663,
"volume": 1.8669103250223775e-06,
"surface_area": 0.001290174539307744,
"center_of_mass": [
0.016036994427695184,
-1.577311620867396e-05,
1.055671488677784e-09
],
"principal_moments": [
2.3362777837322426e-07,
7.906769584087183e-07,
8.060737605201332e-07
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
0.0,
-0.006000000000000004,
-0.007,
0.027,
0.006,
0.007
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "M3 螺纹孔1",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAQAAACVAAAAlAAAAJMAAACSAAAA",
"persist_reference_sha256": "69eefceacdd4f9e26b3cb0a84a6bcd7f571df458ff236968ef047ff64f9e84aa",
"component": null,
"geometry": {
"box": [
0.0,
-0.006000000000000003,
-0.007,
0.027,
0.006,
0.007
],
"face_count": 13,
"edge_count": 20,
"vertex_count": 8
},
"stable_id": "69eefceacdd4f9e26b3cb0a84a6bcd7f571df458ff236968ef047ff64f9e84aa"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 18,
"surface_counts": {
"cylinder": 11,
"plane": 7
},
"axis_count": 11,
"repeat_spacings_mm": [],
"metrics": {
"bounding_box_mm": [
-1e-07,
-6.0,
-7.0,
27.0,
6.0,
7.0
],
"volume_mm3": 1866.909764954,
"surface_area_mm2": 1290.17010081,
"solid_count": 1,
"face_count": 18,
"edge_count": 39,
"vertex_count": 26
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
0.0,
-6.0,
-7.0,
27.0,
6.0,
7.0
],
"volume_mm3": 1866.910325022,
"surface_area_mm2": 1290.174539308,
"solid_count": 1,
"face_count": 13,
"edge_count": 20,
"vertex_count": 8
},
"comparisons": {
"volume_mm3": {
"expected": 1866.910325022,
"actual": 1866.909764954,
"absolute_delta": 0.0005600680001407454,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 1290.174539308,
"actual": 1290.17010081,
"absolute_delta": 0.004438498000126856,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
0.0,
-6.0,
-7.0,
27.0,
6.0,
7.0
],
"actual": [
-1e-07,
-6.0,
-7.0,
27.0,
6.0,
7.0
],
"max_absolute_delta": 1e-07,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 13,
"actual": 18,
"matches": false
},
"edge_count": {
"expected": 20,
"actual": 39,
"matches": false
},
"vertex_count": {
"expected": 8,
"actual": 26,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}