351 lines
9.3 KiB
JSON
351 lines
9.3 KiB
JSON
{
|
|
"Schema": "dimension_face_match_report_v1",
|
|
"BrepReportPath": "D:\\CSharpProjects\\agent4\\tools\\drawing-diagnostics\\DimensionFaceMatcher\\examples\\minimal_brep_report.json",
|
|
"DimensionsPath": "D:\\CSharpProjects\\agent4\\tools\\drawing-diagnostics\\DimensionFaceMatcher\\examples\\minimal_dimensions.json",
|
|
"View": {
|
|
"Direction": "+Z",
|
|
"RollDeg": 0
|
|
},
|
|
"ModelProjectedBounds": {
|
|
"MinX": -15.1,
|
|
"MinY": -30,
|
|
"MaxX": 55,
|
|
"MaxY": 30,
|
|
"Width": 70.1,
|
|
"Height": 60,
|
|
"Center": {
|
|
"X": 19.95,
|
|
"Y": 0
|
|
}
|
|
},
|
|
"DrawingBounds": {
|
|
"MinX": -20,
|
|
"MinY": -20,
|
|
"MaxX": 60,
|
|
"MaxY": 20,
|
|
"Width": 80,
|
|
"Height": 40,
|
|
"Center": {
|
|
"X": 20,
|
|
"Y": 0
|
|
}
|
|
},
|
|
"FaceCount": 3,
|
|
"Dimensions": [
|
|
{
|
|
"DimensionId": "dim_fit_001",
|
|
"Text": "Φ30 H7/h6",
|
|
"Kind": "cylindrical_fit",
|
|
"MeasurementMm": 30,
|
|
"AnchorCount": 2,
|
|
"IsUnique": true,
|
|
"TopScore": 0.9363,
|
|
"SecondScore": 0.7259,
|
|
"ScoreMargin": 0.2104,
|
|
"TopCandidates": [
|
|
{
|
|
"Score": 0.9363,
|
|
"FaceA": {
|
|
"FaceRef": "shaft-1:face#12",
|
|
"ComponentName": "shaft-1",
|
|
"ComponentDisplayName": "轴",
|
|
"FaceIndex": 12,
|
|
"FaceKind": "cylinder",
|
|
"FunctionalRole": "cylindrical_mate_face",
|
|
"SurfaceProcessRole": "machined_cylindrical_fit_surface",
|
|
"CenterMm": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"BBoxMm": [
|
|
-15,
|
|
-15,
|
|
-25,
|
|
15,
|
|
15,
|
|
25
|
|
],
|
|
"ProjectedCenter": {
|
|
"X": 0,
|
|
"Y": 0
|
|
},
|
|
"ProjectedBBox": {
|
|
"MinX": -15,
|
|
"MinY": -15,
|
|
"MaxX": 15,
|
|
"MaxY": 15,
|
|
"Width": 30,
|
|
"Height": 30,
|
|
"Center": {
|
|
"X": 0,
|
|
"Y": 0
|
|
}
|
|
},
|
|
"RadiusMm": 15,
|
|
"DiameterMm": 30
|
|
},
|
|
"FaceB": {
|
|
"FaceRef": "bearing-1:face#8",
|
|
"ComponentName": "bearing-1",
|
|
"ComponentDisplayName": "轴承",
|
|
"FaceIndex": 8,
|
|
"FaceKind": "cylinder",
|
|
"FunctionalRole": "bearing_mount_face",
|
|
"SurfaceProcessRole": "precision_machined_bearing_seat_surface",
|
|
"CenterMm": [
|
|
0,
|
|
0,
|
|
2
|
|
],
|
|
"BBoxMm": [
|
|
-15.1,
|
|
-15.1,
|
|
-23,
|
|
15.1,
|
|
15.1,
|
|
27
|
|
],
|
|
"ProjectedCenter": {
|
|
"X": 0,
|
|
"Y": 0
|
|
},
|
|
"ProjectedBBox": {
|
|
"MinX": -15.1,
|
|
"MinY": -15.1,
|
|
"MaxX": 15.1,
|
|
"MaxY": 15.1,
|
|
"Width": 30.2,
|
|
"Height": 30.2,
|
|
"Center": {
|
|
"X": 0,
|
|
"Y": 0
|
|
}
|
|
},
|
|
"RadiusMm": 15.02,
|
|
"DiameterMm": 30.04
|
|
},
|
|
"ExpectedMeasurementMm": 30.02,
|
|
"MeasurementErrorMm": 0.02,
|
|
"Assignment": "anchor_a_to_face_a__anchor_b_to_face_b",
|
|
"Components": {
|
|
"ValueScore": 0.974,
|
|
"AnchorScore": 0.8801,
|
|
"RelationScore": 0.9827,
|
|
"RoleScore": 0.9,
|
|
"AnchorAScore": 0.8801,
|
|
"AnchorBScore": 0.8801,
|
|
"AnchorAPositionScore": 0.8388,
|
|
"AnchorBPositionScore": 0.8388
|
|
},
|
|
"Evidence": [
|
|
"measurement 30mm vs expected 30.02mm",
|
|
"face kinds: cylinder <-> cylinder",
|
|
"components: 轴 <-> 轴承",
|
|
"functional roles: cylindrical_mate_face <-> bearing_mount_face"
|
|
]
|
|
},
|
|
{
|
|
"Score": 0.7259,
|
|
"FaceA": {
|
|
"FaceRef": "shaft-1:face#12",
|
|
"ComponentName": "shaft-1",
|
|
"ComponentDisplayName": "轴",
|
|
"FaceIndex": 12,
|
|
"FaceKind": "cylinder",
|
|
"FunctionalRole": "cylindrical_mate_face",
|
|
"SurfaceProcessRole": "machined_cylindrical_fit_surface",
|
|
"CenterMm": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"BBoxMm": [
|
|
-15,
|
|
-15,
|
|
-25,
|
|
15,
|
|
15,
|
|
25
|
|
],
|
|
"ProjectedCenter": {
|
|
"X": 0,
|
|
"Y": 0
|
|
},
|
|
"ProjectedBBox": {
|
|
"MinX": -15,
|
|
"MinY": -15,
|
|
"MaxX": 15,
|
|
"MaxY": 15,
|
|
"Width": 30,
|
|
"Height": 30,
|
|
"Center": {
|
|
"X": 0,
|
|
"Y": 0
|
|
}
|
|
},
|
|
"RadiusMm": 15,
|
|
"DiameterMm": 30
|
|
},
|
|
"FaceB": {
|
|
"FaceRef": "housing-1:face#31",
|
|
"ComponentName": "housing-1",
|
|
"ComponentDisplayName": "箱体",
|
|
"FaceIndex": 31,
|
|
"FaceKind": "plane",
|
|
"FunctionalRole": "planar_contact_face",
|
|
"SurfaceProcessRole": "machined_surface_candidate",
|
|
"CenterMm": [
|
|
55,
|
|
0,
|
|
0
|
|
],
|
|
"BBoxMm": [
|
|
55,
|
|
-30,
|
|
-30,
|
|
55,
|
|
30,
|
|
30
|
|
],
|
|
"ProjectedCenter": {
|
|
"X": 55,
|
|
"Y": 0
|
|
},
|
|
"ProjectedBBox": {
|
|
"MinX": 55,
|
|
"MinY": -30,
|
|
"MaxX": 55,
|
|
"MaxY": 30,
|
|
"Width": 1E-09,
|
|
"Height": 60,
|
|
"Center": {
|
|
"X": 55,
|
|
"Y": 0
|
|
}
|
|
}
|
|
},
|
|
"ExpectedMeasurementMm": 30,
|
|
"MeasurementErrorMm": 0,
|
|
"Assignment": "anchor_a_to_face_a__anchor_b_to_face_b",
|
|
"Components": {
|
|
"ValueScore": 1,
|
|
"AnchorScore": 0.5313,
|
|
"RelationScore": 0.15,
|
|
"RoleScore": 0.9,
|
|
"AnchorAScore": 0.8801,
|
|
"AnchorBScore": 0.1824,
|
|
"AnchorAPositionScore": 0.8388,
|
|
"AnchorBPositionScore": 0.1935
|
|
},
|
|
"Evidence": [
|
|
"measurement 30mm vs expected 30mm",
|
|
"face kinds: cylinder <-> plane",
|
|
"components: 轴 <-> 箱体",
|
|
"functional roles: cylindrical_mate_face <-> planar_contact_face"
|
|
]
|
|
},
|
|
{
|
|
"Score": 0.7032,
|
|
"FaceA": {
|
|
"FaceRef": "bearing-1:face#8",
|
|
"ComponentName": "bearing-1",
|
|
"ComponentDisplayName": "轴承",
|
|
"FaceIndex": 8,
|
|
"FaceKind": "cylinder",
|
|
"FunctionalRole": "bearing_mount_face",
|
|
"SurfaceProcessRole": "precision_machined_bearing_seat_surface",
|
|
"CenterMm": [
|
|
0,
|
|
0,
|
|
2
|
|
],
|
|
"BBoxMm": [
|
|
-15.1,
|
|
-15.1,
|
|
-23,
|
|
15.1,
|
|
15.1,
|
|
27
|
|
],
|
|
"ProjectedCenter": {
|
|
"X": 0,
|
|
"Y": 0
|
|
},
|
|
"ProjectedBBox": {
|
|
"MinX": -15.1,
|
|
"MinY": -15.1,
|
|
"MaxX": 15.1,
|
|
"MaxY": 15.1,
|
|
"Width": 30.2,
|
|
"Height": 30.2,
|
|
"Center": {
|
|
"X": 0,
|
|
"Y": 0
|
|
}
|
|
},
|
|
"RadiusMm": 15.02,
|
|
"DiameterMm": 30.04
|
|
},
|
|
"FaceB": {
|
|
"FaceRef": "housing-1:face#31",
|
|
"ComponentName": "housing-1",
|
|
"ComponentDisplayName": "箱体",
|
|
"FaceIndex": 31,
|
|
"FaceKind": "plane",
|
|
"FunctionalRole": "planar_contact_face",
|
|
"SurfaceProcessRole": "machined_surface_candidate",
|
|
"CenterMm": [
|
|
55,
|
|
0,
|
|
0
|
|
],
|
|
"BBoxMm": [
|
|
55,
|
|
-30,
|
|
-30,
|
|
55,
|
|
30,
|
|
30
|
|
],
|
|
"ProjectedCenter": {
|
|
"X": 55,
|
|
"Y": 0
|
|
},
|
|
"ProjectedBBox": {
|
|
"MinX": 55,
|
|
"MinY": -30,
|
|
"MaxX": 55,
|
|
"MaxY": 30,
|
|
"Width": 1E-09,
|
|
"Height": 60,
|
|
"Center": {
|
|
"X": 55,
|
|
"Y": 0
|
|
}
|
|
}
|
|
},
|
|
"ExpectedMeasurementMm": 30.04,
|
|
"MeasurementErrorMm": 0.04,
|
|
"Assignment": "anchor_a_to_face_a__anchor_b_to_face_b",
|
|
"Components": {
|
|
"ValueScore": 0.9494,
|
|
"AnchorScore": 0.5313,
|
|
"RelationScore": 0.15,
|
|
"RoleScore": 0.9,
|
|
"AnchorAScore": 0.8801,
|
|
"AnchorBScore": 0.1824,
|
|
"AnchorAPositionScore": 0.8388,
|
|
"AnchorBPositionScore": 0.1935
|
|
},
|
|
"Evidence": [
|
|
"measurement 30mm vs expected 30.04mm",
|
|
"face kinds: cylinder <-> plane",
|
|
"components: 轴承 <-> 箱体",
|
|
"functional roles: bearing_mount_face <-> planar_contact_face"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |