代码拉取完成,页面将自动刷新
Penrose is an early-stage system that is still in development. Our system is not ready for contributions or public use yet, but hopefully will be soon. Send us an email if you're interested in collaborating.
Here's a simple Penrose visualization in the domain of set theory.
It's specified by the following Substance and Style programs.
tree.sub
Set A
Set B
Set C
Set D
Set E
Set F
Set G
Subset B A
Subset C A
Subset D B
Subset E B
Subset F C
Subset G C
NoIntersect E D
NoIntersect F G
NoIntersect B C
venn.sty
Set x {
shape = Circle { }
constraint contains(x, x.label)
}
Intersect x y {
constraint overlapping(x, y)
constraint outsideOf(y.label, x)
constraint outsideOf(x.label, y)
}
NoIntersect x y {
constraint nonOverlapping(x, y)
}
Subset x y {
constraint contains(y, x)
constraint smallerThan(x, y)
constraint outsideOf(y.label, x)
}
NoSubset x y {
objective repel(x, y)
constraint outsideOf(x, y)
constraint outsideOf(y.label, x)
constraint outsideOf(x.label, y)
constraint nonOverlapping(x, y)
}
Here's how the optimization looks live in the UI.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。