Prism

From tiwe0/GeoChat · View interactive version

Prism is an AI agent skill from the GitHub repository tiwe0/GeoChat. 棱柱、长方体、正方体相关的顶点、棱、面、截面和展开关系技能。

How to use this skill

Skill file

棱柱

用于直/斜棱柱、长方体、正方体的棱面关系、截面、展开、距离、角和体积。优先坐标化:直棱柱可把底面放在 z=0、侧棱沿 z 方向;斜棱柱则必须保留平移向量,不得偷换成垂直高。

三棱柱/棱柱图的最低视觉标准:

关注点:

数学与能力规则

原生小例:三棱柱

prA = Point((0, 0, 0))
prB = Point((4, 0, 0))
prC = Point((1, 3, 0))
prA1 = Point((0, 0, 3))
prBase = Polygon(prA, prB, prC)
prBody = Prism(prBase, prA1)
prHeight = Segment(prA, prA1)
prBaseArea = Area(prBase)
prVolume = Volume(prBody)
SetColor(prBody, 86, 180, 233)
SetFilling(prBody, 0.18)
SetColor(prHeight, 213, 94, 0)

预期:底面面积为 6,垂直高为 3,prVolume=18;上底由底面沿 (0,0,3) 平移得到。Prism 可自动产生顶点/棱/面标签,未检查实际标签前不对派生对象连锁设样式。

检查与降级

官方依据

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.