feat(spatial): 接触边的三个局部几何谓词

加入 area.free 之后 area.sup2/sup3 从 1.000 掉到一位规则的 0.594/0.656:
"T 有一条接触"不再等于"稳定",模型必须真的判断支撑是否成立,而它得从两个坐标
向量里自己重算——这是把算术交给分类器。

现在每条接触边带上面接触、上块形心是否落在重叠矩形内、上块底面积覆盖率。
这是卡尺和直尺能给出的测量值,不是答案:链是否走到地面仍然要模型自己传播。
This commit is contained in:
x committed 2026-12-03 19:17:17 +08:00
1 parent 46b084433f
commit 6fcf644115
2 files changed
+35 -15

No files matched your search

+6 -2
View File
@@ -43,8 +43,12 @@ N_KIND = len(ENTITY_KINDS)
N_EDGE = len(EDGE_KINDS)
N_AXIS = len(DOF_AXES)
FEAT_DIM = N_KIND + 2 + 3 + 7 # kind, source, unit, (x,y,z,layer,w,h,d)
# type one-hot, axis one-hot, removed flag, layer, contact area, dangling flag
EDGE_FEAT_DIM = N_EDGE + N_AXIS + 4
# type one-hot, axis one-hot, removed flag, layer, contact area, dangling flag,
# then the three local predicates a contact needs before it can carry load:
# do the faces meet in z, is the upper block's centroid inside the overlap, and
# how much of the upper footprint is covered. They are measurements, not
# answers -- the same numbers a caliper and a straight edge would give.
EDGE_FEAT_DIM = N_EDGE + N_AXIS + 4 + 3
QUERY_KINDS = ("connection", "stability", "freedom")
HOP_MAX = 4 # longer paths collapse into one bucket