fix(spatial): 近贴合家族不该声明那条接触边,假边才第一次真能骗到结论
This commit is contained in:
1 parent
2ddba5843c
commit
9d449f2108
6 files changed
+797
-674
No files matched your search
@@ -170,8 +170,14 @@ def _build_stability(rng, n_blocks: int, hidden: int, free: int = 0, notch: int
|
||||
Entity("T", "block", attrs={"box": [42 + dx, 42 + dy, 20 + cl,
|
||||
58 + dx, 58 + dy, 36 + cl]}),
|
||||
Entity("D", "block", attrs={"box": [80, 40, 0, 100, 60, 16]})]
|
||||
edges = [Edge("kPG", "contact", "P", "G"), Edge("kPT", "contact", "T", "P"),
|
||||
Edge("kDG", "contact", "D", "G")]
|
||||
edges = [Edge("kPG", "contact", "P", "G"), Edge("kDG", "contact", "D", "G")]
|
||||
if cl == 0:
|
||||
edges.append(Edge("kPT", "contact", "T", "P"))
|
||||
# With a clearance there is no contact, so the fixture must not declare one:
|
||||
# a kPT edge over a 1-unit gap would be the schema contradicting its own
|
||||
# geometry. Dropping it is what makes the near-fit families sharp -- any
|
||||
# spurious T-P edge now flips the answer false -> true instead of merely
|
||||
# adding a redundant edge.
|
||||
top = None
|
||||
if n_blocks >= 3:
|
||||
ents.append(Entity("U", "block",
|
||||
|
||||
Reference in new issue
Block a user