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

838 lines
19 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "026838",
"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": "arc",
"start": [
-20.0,
-4.0
],
"end": [
-19.0,
-5.0
],
"center": [
-19.0,
-4.0
],
"radius_mm": 1.0,
"clockwise": false
},
{
"type": "line",
"start": [
-19.0,
-5.0
],
"end": [
20.0,
-5.0
]
},
{
"type": "line",
"start": [
20.0,
-5.0
],
"end": [
20.0,
-3.75
]
},
{
"type": "arc",
"start": [
20.0,
-3.75
],
"end": [
19.0,
-2.75
],
"center": [
19.0,
-3.75
],
"radius_mm": 1.0,
"clockwise": false
},
{
"type": "line",
"start": [
19.0,
-2.75
],
"end": [
5.0,
-2.75
]
},
{
"type": "line",
"start": [
5.0,
-2.75
],
"end": [
5.0,
7.75
]
},
{
"type": "line",
"start": [
5.0,
7.75
],
"end": [
19.0,
7.75
]
},
{
"type": "arc",
"start": [
19.0,
7.75
],
"end": [
20.0,
8.75
],
"center": [
19.0,
8.75
],
"radius_mm": 1.0,
"clockwise": false
},
{
"type": "line",
"start": [
20.0,
8.75
],
"end": [
20.0,
10.0
]
},
{
"type": "line",
"start": [
20.0,
10.0
],
"end": [
-19.0,
10.0
]
},
{
"type": "arc",
"start": [
-19.0,
10.0
],
"end": [
-20.0,
9.0
],
"center": [
-19.0,
9.0
],
"radius_mm": 1.0,
"clockwise": false
},
{
"type": "line",
"start": [
-20.0,
9.0
],
"end": [
-20.0,
-4.0
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-3.6,
7.2
],
"end": [
-3.6,
-2.2
]
},
{
"type": "line",
"start": [
-3.6,
-2.2
],
"end": [
3.6,
-2.2
]
},
{
"type": "line",
"start": [
3.6,
-2.2
],
"end": [
3.6,
7.2
]
},
{
"type": "line",
"start": [
3.6,
7.2
],
"end": [
-3.6,
7.2
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-18.5,
8.5
],
"end": [
-18.5,
-3.5
]
},
{
"type": "line",
"start": [
-18.5,
-3.5
],
"end": [
-5.0,
-3.5
]
},
{
"type": "line",
"start": [
-5.0,
-3.5
],
"end": [
-5.0,
8.5
]
},
{
"type": "line",
"start": [
-5.0,
8.5
],
"end": [
-18.5,
8.5
]
}
]
}
]
}
},
{
"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": [
-20.0,
0.0
],
"end": [
20.0,
-40.0
]
},
{
"type": "line",
"start": [
20.0,
-40.0
],
"end": [
20.0,
0.0
]
},
{
"type": "line",
"start": [
20.0,
0.0
],
"end": [
-20.0,
0.0
]
}
]
}
]
}
},
{
"id": "sk_004",
"name": "草图4",
"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": [
-20.0,
1550.0
],
"end": [
20.0,
1550.0
]
},
{
"type": "line",
"start": [
20.0,
1550.0
],
"end": [
20.0,
1510.0
]
},
{
"type": "line",
"start": [
20.0,
1510.0
],
"end": [
-20.0,
1550.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_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": "基准面4",
"atomic_id": "reference_plane",
"depends_on": [
"f_003"
],
"params": {
"plane": {
"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
]
},
"offset_mm": 0.0,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": -1,
"derived_from_sketch_id": "sk_002"
},
"execution_status": "deferred"
},
{
"id": "f_005",
"name": "凸台-拉伸1",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 1550.0,
"reverse": true,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_002"
},
{
"id": "f_006",
"name": "切除-拉伸1",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_005"
],
"params": {
"distance_mm": 20.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_003"
},
{
"id": "f_007",
"name": "切除-拉伸2",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_005"
],
"params": {
"distance_mm": 0.0,
"reverse": false,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "deferred",
"sketch_id": "sk_004"
}
],
"meta": {
"unit": "mm",
"source": "026838.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "complete",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.32019676460128904,
"volume": 0.00032019676460128904,
"surface_area": 0.3373129836188481,
"center_of_mass": [
-0.00047622693851111957,
0.0024999662493528714,
-0.774999999999998
],
"principal_moments": [
5.186128580446071e-05,
0.06094117407730832,
0.06097093352186799
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.020000000000000004,
-0.005000000000000001,
-1.55,
0.020000000000000004,
0.010000000000000002,
0.0
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "切除-拉伸2",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAMAAABnAAAAZgAAAGUAAAA=",
"persist_reference_sha256": "54d5aa819ef1af985be8ba163e06120d88de69aaa7f8169b931a1fc1d3d974ac",
"component": null,
"geometry": {
"box": [
-0.02,
-0.005000000000000001,
-1.55,
0.020000000000000004,
0.010000000000000002,
0.0
],
"face_count": 22,
"edge_count": 60,
"vertex_count": 40
},
"stable_id": "54d5aa819ef1af985be8ba163e06120d88de69aaa7f8169b931a1fc1d3d974ac"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 22,
"surface_counts": {
"cylinder": 4,
"plane": 18
},
"axis_count": 4,
"repeat_spacings_mm": [
{
"spacing_mm": 40.0819,
"pair_count": 2
},
{
"spacing_mm": 38.0008,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-20.0000001,
-5.0000001,
-1550.0000001,
20.0000001,
10.0000001,
1e-07
],
"volume_mm3": 320192.504897934,
"surface_area_mm2": 337312.627731875,
"solid_count": 1,
"face_count": 22,
"edge_count": 60,
"vertex_count": 40
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-20.0,
-5.0,
-1550.0,
20.0,
10.0,
0.0
],
"volume_mm3": 320196.764601289,
"surface_area_mm2": 337312.983618848,
"solid_count": 1,
"face_count": 22,
"edge_count": 60,
"vertex_count": 40
},
"comparisons": {
"volume_mm3": {
"expected": 320196.764601289,
"actual": 320192.504897934,
"absolute_delta": 4.259703355026431,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 337312.983618848,
"actual": 337312.627731875,
"absolute_delta": 0.3558869730331935,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-20.0,
-5.0,
-1550.0,
20.0,
10.0,
0.0
],
"actual": [
-20.0000001,
-5.0000001,
-1550.0000001,
20.0000001,
10.0000001,
1e-07
],
"max_absolute_delta": 1.0000007932831068e-07,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 22,
"actual": 22,
"matches": true
},
"edge_count": {
"expected": 60,
"actual": 60,
"matches": true
},
"vertex_count": {
"expected": 40,
"actual": 40,
"matches": true
}
},
"numeric_geometry_match": true,
"topology_counts_match": true
}
},
"source_has_modeling_features": true
}
}