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

966 lines
20 KiB
JSON

{
"schema": "cad.cdsl.llm.v1",
"schema_version": "1.1.0",
"kind": "part",
"part_id": "end-cap",
"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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 63.5
}
},
{
"id": "sk_003",
"name": "Sketch2",
"role": "profile",
"workplane": {
"origin_mm": [
43.3,
-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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 44.45
}
},
{
"id": "sk_004",
"name": "Sketch3",
"role": "profile",
"workplane": {
"origin_mm": [
52.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": "circle",
"center": [
0.0,
0.0
],
"radius_mm": 19.1
}
},
{
"id": "sk_005",
"name": "Sketch4",
"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": [
27.5,
-48.636619896
],
"end": [
-27.5,
-48.636619896
]
},
{
"type": "line",
"start": [
-27.5,
-48.636619896
],
"end": [
-27.5,
5.336619896
]
},
{
"type": "line",
"start": [
-27.5,
5.336619896
],
"end": [
27.5,
5.336619896
]
},
{
"type": "line",
"start": [
27.5,
5.336619896
],
"end": [
27.5,
-48.636619896
]
}
]
},
{
"role": "inner",
"closed": true,
"segments": [
{
"type": "circle",
"center": [
0.0,
-21.65
],
"radius_mm": 19.0
}
]
}
],
"construction": [
{
"type": "line",
"start": [
-63.5,
-21.65
],
"end": [
0.0,
-21.65
]
},
{
"type": "line",
"start": [
27.5,
-48.636619896
],
"end": [
-27.5,
5.336619896
]
},
{
"type": "line",
"start": [
27.5,
5.336619896
],
"end": [
-27.5,
-48.636619896
]
}
]
}
},
{
"id": "sk_006",
"name": "Sketch5",
"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": "circle",
"center": [
0.0,
-21.65
],
"radius_mm": 12.4
}
},
{
"id": "sk_007",
"name": "Sketch6",
"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": "circle",
"center": [
0.0,
-21.65
],
"radius_mm": 7.5
}
},
{
"id": "sk_008",
"name": "Sketch7",
"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": [
-21.65,
0.0
],
"radius_mm": 5.5
}
},
{
"id": "sk_009",
"name": "Sketch8",
"role": "profile",
"workplane": {
"origin_mm": [
52.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": "circle",
"center": [
32.0,
0.0
],
"radius_mm": 2.5
}
}
]
},
"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": "Boss-Extrude1",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_001"
],
"params": {
"distance_mm": 43.3,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_002"
},
{
"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": "Boss-Extrude2",
"atomic_id": "extrude_add_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 8.7,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_003"
},
{
"id": "f_008",
"name": "Fillet1",
"atomic_id": "fillet",
"depends_on": [
"f_004"
],
"params": {
"radius_mm": 2.0,
"tangent_propagation": false
},
"execution_status": "deferred"
},
{
"id": "f_009",
"name": "Plane1",
"atomic_id": "reference_plane",
"depends_on": [
"f_002"
],
"params": {
"plane": {
"origin_mm": [
0.0,
0.0,
61.6
],
"normal": [
0.0,
0.0,
1.0
],
"x_dir": [
1.0,
0.0,
0.0
]
},
"offset_mm": 61.6,
"angle_rad": 0.0,
"reverse": false,
"solidworks_type": 5,
"references": [
{
"kind": "plane",
"stable_id": "3a59788dcc6fc4588146380df745485f1125d10e3ba413489a3142d9f9beb78a",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_002"
}
]
},
"execution_status": "deferred",
"selectors": [
{
"kind": "plane",
"stable_id": "3a59788dcc6fc4588146380df745485f1125d10e3ba413489a3142d9f9beb78a",
"source": "solidworks",
"confidence": 1.0,
"owner_feature_id": "f_002"
}
]
},
{
"id": "f_011",
"name": "Cut-Extrude3",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_004"
],
"params": {
"distance_mm": 3.2,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_005"
},
{
"id": "f_006",
"name": "Cut-Extrude1",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_005",
"f_004"
],
"params": {
"distance_mm": 38.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_004"
},
{
"id": "f_010",
"name": "Cut-Extrude2",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_009",
"f_004"
],
"params": {
"distance_mm": 1.6,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
},
"reverse_distance_mm": 3000.0,
"reverse_end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "deferred",
"sketch_id": "sk_005"
},
{
"id": "f_012",
"name": "Cut-Extrude4",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_011",
"f_004"
],
"params": {
"distance_mm": 23.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_006"
},
{
"id": "f_014",
"name": "Cut-Extrude6",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_003",
"f_004"
],
"params": {
"distance_mm": 0.0,
"reverse": true,
"end_condition": {
"type": "through_all",
"solidworks_code": 1
}
},
"execution_status": "supported",
"sketch_id": "sk_008"
},
{
"id": "f_007",
"name": "Chamfer1",
"atomic_id": "chamfer",
"depends_on": [
"f_006",
"f_005"
],
"params": {
"distance_mm": 2.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_013",
"name": "Cut-Extrude5",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_012",
"f_004"
],
"params": {
"distance_mm": 33.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_007"
},
{
"id": "f_017",
"name": "Chamfer3",
"atomic_id": "chamfer",
"depends_on": [
"f_012",
"f_011"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
},
{
"id": "f_015",
"name": "Cut-Extrude7",
"atomic_id": "extrude_cut_blind",
"depends_on": [
"f_005",
"f_004",
"f_007"
],
"params": {
"distance_mm": 32.0,
"reverse": false,
"end_condition": {
"type": "blind",
"solidworks_code": 0
}
},
"execution_status": "supported",
"sketch_id": "sk_009"
},
{
"id": "f_016",
"name": "Chamfer2",
"atomic_id": "chamfer",
"depends_on": [
"f_015",
"f_005",
"f_014",
"f_004"
],
"params": {
"distance_mm": 1.0,
"angle_rad": 0.78539816339745
},
"execution_status": "deferred"
}
],
"meta": {
"unit": "mm",
"source": "05_壳体与盖件/0502_端盖/050299_通用端盖/end cap.solidworks_evidence_v2.json",
"source_schema": "solidworks.cad_evidence.v2",
"source_status": "hybrid_semantic_surfaceir_pending",
"document_truth": {
"mass_properties": {
"available": true,
"mass": 0.5326679233433335,
"volume": 0.0005326679233433334,
"surface_area": 0.05234871816761009,
"center_of_mass": [
-0.0003588319188675865,
-0.00181307210217392,
0.023296476888325316
],
"principal_moments": [
0.0006303539936765919,
0.0006719508839517643,
0.0010868086907636486
],
"principal_axes": null,
"moment_of_inertia": null
},
"geometry": {
"bounding_box": [
-0.0635,
-0.0635,
-0.0008421744539824023,
0.06350041709136178,
0.060000000000000005,
0.052
],
"solid_body_count": 1,
"bodies": [
{
"kind": "body",
"dotnet_type": "System.__ComObject",
"name": "Chamfer3",
"persist_reference_base64": "UEYAAAQAAAD//v8AAAAAAAkAAABuAAAAbAAAAGsAAABqAAAAaQAAAGgAAABnAAAAZgAAAGUAAAA=",
"persist_reference_sha256": "b7fcb9e3d6d09f95e6fdc2056cda1ca30baee07550ee2670759368567c86ebc0",
"component": null,
"geometry": {
"box": [
-0.0635,
-0.0635,
-0.0008421744539824023,
0.06350041709136177,
0.060000000000000005,
0.052
],
"face_count": 22,
"edge_count": 31,
"vertex_count": 8
},
"stable_id": "b7fcb9e3d6d09f95e6fdc2056cda1ca30baee07550ee2670759368567c86ebc0"
}
]
}
},
"step_inference": {
"available": true,
"face_count": 40,
"surface_counts": {
"bspline": 2,
"cone": 8,
"cylinder": 17,
"plane": 7,
"torus": 6
},
"axis_count": 25,
"repeat_spacings_mm": [
{
"spacing_mm": 32.0156,
"pair_count": 2
}
],
"metrics": {
"bounding_box_mm": [
-63.5000001,
-63.5000001,
-1e-07,
63.5000001,
60.0000001,
52.0
],
"volume_mm3": 532665.326155941,
"surface_area_mm2": 52348.515039461,
"solid_count": 1,
"face_count": 40,
"edge_count": 91,
"vertex_count": 54
},
"error": null,
"truth_comparison": {
"expected_from_evidence": {
"bounding_box_mm": [
-63.5,
-63.5,
-0.842174454,
63.500417091,
60.0,
52.0
],
"volume_mm3": 532667.923343333,
"surface_area_mm2": 52348.71816761,
"solid_count": 1,
"face_count": 22,
"edge_count": 31,
"vertex_count": 8
},
"comparisons": {
"volume_mm3": {
"expected": 532667.923343333,
"actual": 532665.326155941,
"absolute_delta": 2.597187391947955,
"within_tolerance": true
},
"surface_area_mm2": {
"expected": 52348.71816761,
"actual": 52348.515039461,
"absolute_delta": 0.20312814899807563,
"within_tolerance": true
},
"bounding_box_mm": {
"expected": [
-63.5,
-63.5,
-0.842174454,
63.500417091,
60.0,
52.0
],
"actual": [
-63.5000001,
-63.5000001,
-1e-07,
63.5000001,
60.0000001,
52.0
],
"max_absolute_delta": 0.8421743540000001,
"within_tolerance": false
},
"solid_count": {
"expected": 1,
"actual": 1,
"matches": true
},
"face_count": {
"expected": 22,
"actual": 40,
"matches": false
},
"edge_count": {
"expected": 31,
"actual": 91,
"matches": false
},
"vertex_count": {
"expected": 8,
"actual": 54,
"matches": false
}
},
"numeric_geometry_match": false,
"topology_counts_match": false
}
},
"source_has_modeling_features": true
}
}