Files
cdsl-cad/json_to_cdsl/output/01_Rod.cdsl.json
T
2026-08-24 14:52:08 +08:00

748 lines
17 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "01_Rod",
"geometry": {
"sketches": [
{
"id": "sk_001",
"name": "Origin",
"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": "Sketch1",
"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,
6.0
],
"end": [
-312.0,
6.0
]
},
{
"type": "line",
"start": [
-312.0,
6.0
],
"end": [
-312.0,
9.0
]
},
{
"type": "line",
"start": [
-312.0,
9.0
],
"end": [
-311.0,
10.0
]
},
{
"type": "line",
"start": [
-311.0,
10.0
],
"end": [
-282.5,
10.0
]
},
{
"type": "line",
"start": [
-282.5,
10.0
],
"end": [
-280.0,
11.0
]
},
{
"type": "line",
"start": [
-280.0,
11.0
],
"end": [
-10.0,
11.0
]
},
{
"type": "line",
"start": [
-10.0,
11.0
],
"end": [
-0.0,
9.0
]
},
{
"type": "line",
"start": [
-0.0,
9.0
],
"end": [
0.0,
6.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
-344.471803083,
0.0
],
"end": [
-312.0,
0.0
]
},
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
27.247011638,
0.0
]
}
]
}
},
{
"id": "sk_003",
"name": "Sketch2",
"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": [
-283.799372438,
9.0
],
"end": [
-278.799372438,
9.0
]
},
{
"type": "line",
"start": [
-278.799372438,
9.0
],
"end": [
-278.799372438,
12.0
]
},
{
"type": "line",
"start": [
-278.799372438,
12.0
],
"end": [
-283.799372438,
12.0
]
},
{
"type": "line",
"start": [
-283.799372438,
12.0
],
"end": [
-283.799372438,
9.0
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "line",
"start": [
-283.799372438,
-9.0
],
"end": [
-278.799372438,
-9.0
]
},
{
"type": "line",
"start": [
-278.799372438,
-9.0
],
"end": [
-278.799372438,
-12.0
]
},
{
"type": "line",
"start": [
-278.799372438,
-12.0
],
"end": [
-283.799372438,
-12.0
]
},
{
"type": "line",
"start": [
-283.799372438,
-12.0
],
"end": [
-283.799372438,
-9.0
]
}
]
}
],
"construction": [
{
"type": "line",
"start": [
0.0,
0.0
],
"end": [
-354.112997916,
-0.0
]
}
]
}
}
]
},
"features": [
{
"id": "f_001",
"name": "Front Plane",
"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": "Top Plane",
"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": "Revolve1",
"atomic_id": "revolve_add",
"depends_on": [
"f_001"
],
"params": {
"angle_deg": 360.0,
"axis": {
"origin_mm": [
-344.471803083,
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": "a62891d4a11416f98fe4e69ca1073de4cc955145769b2e06d0f9b20bf54841aa",
"source": "solidworks",
"confidence": 1.0,
"geometry": {
"start": [
-0.34447180308289105,
0.0,
0.0
],
"end": [
-0.31200000000000006,
0.0,
0.0
]
}
}
]
},
{
"id": "f_003",
"name": "Right Plane",
"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": "Chamfer2",
"atomic_id": "chamfer",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_006",
"name": "Cut-Extrude1",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_002",
"f_004"
],
"params": {
"distance_mm": 20.0,
"reverse": false,
"end_condition": {
"type": "through_all_and_blind",
"solidworks_code": 6
}
},
"execution_status": "deferred",
"sketch_id": "sk_003"
},
{
"id": "f_009",
"name": "Chamfer3",
"atomic_id": "chamfer",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_010",
"name": "Chamfer4",
"atomic_id": "chamfer",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_007",
"name": "Fillet6",
"atomic_id": "fillet",
"depends_on": [
"f_006"
],
"params": {
"radius_mm": 0.5,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_008",
"name": "Fillet8",
"atomic_id": "fillet",
"depends_on": [
"f_006"
],
"params": {
"radius_mm": 0.5,
"tangent_propagation": false
},
"execution_status": "deferred"
}
],
"meta": {
"unit": "mm",
"source": "02_传动件/0202_轴/020299_通用轴/01_Rod.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.627700401161364,
"volume": 8.047441040530309e-05,
"surface_area": 0.0334097628412765,
"center_of_mass": [
-0.15349196220673741,
-5.888972217646962e-19,
3.2258129656705233e-10
],
"principal_moments": [
4.860235535614459e-05,
0.004836699275454162,
0.004836774838555629
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.31200000000000006,
-0.011000000000000081,
-0.011000000000000081,
0.0,
0.011000000000000081,
0.011000000000000081
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "Chamfer4",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAIAAABmAAAAZQAAAA==",
"persist_reference_sha256": "34ad29762598f819b41dfdc8b20ac88fa209776edb068b0aaaeb5ef0b8f72aa7",
"component": null,
"geometry": {
"box": [
-0.31200000000000006,
-0.011000000000000081,
-0.011000000000000081,
0.0,
0.011000000000000081,
0.011000000000000081
],
"face_count": 18,
"edge_count": 37,
"vertex_count": 20
},
"stable_id": "34ad29762598f819b41dfdc8b20ac88fa209776edb068b0aaaeb5ef0b8f72aa7"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 24,
"surface_counts": {
"cone": 8,
"cylinder": 8,
"plane": 8
},
"axis_count": 16,
"repeat_spacings_mm": [
{
"spacing_mm": 279.6397,
"pair_count": 2
},
{
"spacing_mm": 66.616,
"pair_count": 2
},
{
"spacing_mm": 34.5714,
"pair_count": 2
},
{
"spacing_mm": 13.8109,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-312.0,
-11.0000001,
-11.0000001,
0.0,
11.0000001,
11.0000001
],
"volume_mm3": 80474.448956919,
"surface_area_mm2": 33409.761836883,
"solid_count": 1,
"face_count": 24,
"edge_count": 60,
"vertex_count": 38
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-312.0,
-11.0,
-11.0,
0.0,
11.0,
11.0
],
"volume_mm3": 80474.410405303,
"surface_area_mm2": 33409.762841277,
"solid_count": 1,
"face_count": 18,
"edge_count": 37,
"vertex_count": 20
},
"comparisons": {
"volume_mm3": {
"expected": 80474.410405303,
"actual": 80474.448956919,
"absolute_delta": 0.038551616002223454,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 33409.762841277,
"actual": 33409.761836883,
"absolute_delta": 0.0010043939983006567,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-312.0,
-11.0,
-11.0,
0.0,
11.0,
11.0
],
"actual": [
-312.0,
-11.0000001,
-11.0000001,
0.0,
11.0000001,
11.0000001
],
"max_absolute_delta": 9.99999993922529e-08,
"within_tolerance": true
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 18,
"actual": 24,
"matches": false
},
"edge_count": {
"expected": 37,
"actual": 60,
"matches": false
},
"vertex_count": {
"expected": 20,
"actual": 38,
"matches": false
}
},
"numeric_geometry_match": true,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}