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

790 lines
17 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "202811",
"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,
1000.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
0.0,
1.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,
0.0
],
"end": [
98.0,
0.0
]
},
{
"type": "line",
"start": [
98.0,
0.0
],
"end": [
98.0,
15.0
]
},
{
"type": "line",
"start": [
98.0,
15.0
],
"end": [
0.0,
15.0
]
},
{
"type": "line",
"start": [
0.0,
15.0
],
"end": [
0.0,
0.0
]
}
]
}
]
}
},
{
"id": "sk_003",
"name": "草图2",
"role": "profile",
"workplane": {
"origin_mm": [
-0.0,
1000.0,
-0.0
],
"x_dir": [
1.0,
0.0,
0.0
],
"y_dir": [
0.0,
1.0,
0.0
],
"normal": [
0.0,
0.0,
1.0
]
},
"profile": {
"type": "analytic_contours",
"contours": [
{
"role": "outer",
"closed": true,
"segments": [
{
"type": "line",
"start": [
98.0,
0.0
],
"end": [
86.0,
-0.0
]
},
{
"type": "line",
"start": [
86.0,
-0.0
],
"end": [
86.0,
68.0
]
},
{
"type": "line",
"start": [
86.0,
68.0
],
"end": [
98.0,
68.0
]
},
{
"type": "line",
"start": [
98.0,
68.0
],
"end": [
98.0,
0.0
]
}
]
}
]
}
},
{
"id": "sk_004",
"name": "草图3",
"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": [
4.0,
4.658096711
],
"end": [
76.0,
4.658096711
]
},
{
"type": "line",
"start": [
76.0,
4.658096711
],
"end": [
76.0,
-27.567551308
]
},
{
"type": "line",
"start": [
76.0,
-27.567551308
],
"end": [
4.0,
-27.567551308
]
},
{
"type": "line",
"start": [
4.0,
-27.567551308
],
"end": [
4.0,
4.658096711
]
}
]
}
]
}
},
{
"id": "sk_005",
"name": "草图4",
"role": "profile",
"workplane": {
"origin_mm": [
-2.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": "circles",
"items": [
{
"center": [
7.0,
-5.0
],
"radius_mm": 2.25
},
{
"center": [
73.0,
-5.0
],
"radius_mm": 2.25
}
]
}
},
{
"id": "sk_006",
"name": "草图5",
"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": "circles",
"items": [
{
"center": [
42.0,
-9.0
],
"radius_mm": 3.5
},
{
"center": [
58.0,
-9.0
],
"radius_mm": 3.5
}
]
}
}
]
},
"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_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_004",
"name": "凸台-拉伸1",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_002"
],
"params": {
"distance_mm": 15.0,
"reverse": true,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002"
},
{
"id": "f_005",
"name": "凸台-拉伸2",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_002",
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": true,
"end_condition": {
"type": "up_to_vertex",
"solidworks_code": 3,
"reference": {
"kind": "edge",
"stable_id": "7864b56dd1e381f6d4ac2f089febd0e097bbf2ebe316f7228dcfc1f34fe55a99",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"curve": {
"type": "line",
"parameters": [
0.0,
-0.015,
0.0,
1.0,
0.0,
0.0
]
},
"start": [
0.0,
-0.015,
0.0
],
"end": [
0.098,
-0.015,
0.0
]
}
}
}
},
"execution_status": "deferred",
"sketch_id": "sk_003"
},
{
"id": "f_006",
"name": "切除-拉伸1",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 2.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_004"
},
{
"id": "f_007",
"name": "切除-拉伸2",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_006",
"f_004"
],
"params": {
"distance_mm": 111.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_005"
},
{
"id": "f_008",
"name": "圆角1",
"atomic_id": "fillet",
"depends_on": [
"f_005",
"f_004"
],
"params": {
"radius_mm": 5.0,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_009",
"name": "倒角1",
"atomic_id": "chamfer",
"depends_on": [
"f_005",
"f_004"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_010",
"name": "切除-拉伸3",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004",
"f_005",
"f_008"
],
"params": {
"distance_mm": 111.0,
"reverse": false,
"end_condition": {
"type": "through_all_and_blind",
"solidworks_code": 6
}
},
"execution_status": "supported",
"sketch_id": "sk_006"
}
],
"meta": {
"unit": "mm",
"source": "202811.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "complete",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.07597485535196286,
"volume": 2.8138835315541797e-05,
"surface_area": 0.009574919167155487,
"center_of_mass": [
0.06308737470704283,
-0.0074875026089844254,
-0.018117265441843992
],
"principal_moments": [
1.6673435561090797e-05,
8.12212902349156e-05,
9.496033783859777e-05
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
0.0,
-0.015,
-0.068,
0.098,
0.0,
0.0
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "切除-拉伸3",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAUAAABvAAAAbgAAAG0AAABsAAAAawAAAA==",
"persist_reference_sha256": "98b1e816bacfba5158e25d4ad8e9656d0467e3e970d15beb0a79b03cabf7eef2",
"component": null,
"geometry": {
"box": [
0.0,
-0.015,
-0.068,
0.098,
0.0,
0.0
],
"face_count": 22,
"edge_count": 56,
"vertex_count": 32
},
"stable_id": "98b1e816bacfba5158e25d4ad8e9656d0467e3e970d15beb0a79b03cabf7eef2"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 26,
"surface_counts": {
"cylinder": 9,
"plane": 17
},
"axis_count": 9,
"repeat_spacings_mm": [],
"metrics": {
"bounding_box_mm": [
-0.0,
-15.0,
-68.0,
98.0,
0.0,
0.0
],
"volume_mm3": 28138.835315542,
"surface_area_mm2": 9574.919167155,
"solid_count": 1,
"face_count": 26,
"edge_count": 72,
"vertex_count": 48
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
0.0,
-15.0,
-68.0,
98.0,
0.0,
0.0
],
"volume_mm3": 28138.835315542,
"surface_area_mm2": 9574.919167155,
"solid_count": 1,
"face_count": 22,
"edge_count": 56,
"vertex_count": 32
},
"comparisons": {
"volume_mm3": {
"expected": 28138.835315542,
"actual": 28138.835315542,
"absolute_delta": 0.0,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 9574.919167155,
"actual": 9574.919167155,
"absolute_delta": 0.0,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
0.0,
-15.0,
-68.0,
98.0,
0.0,
0.0
],
"actual": [
-0.0,
-15.0,
-68.0,
98.0,
0.0,
0.0
],
"max_absolute_delta": 0.0,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 22,
"actual": 26,
"matches": false
},
"edge_count": {
"expected": 56,
"actual": 72,
"matches": false
},
"vertex_count": {
"expected": 32,
"actual": 48,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}