italink/unrealclientprotocol/unreal-modeling-primitives

Claude Code and agent skill by italink/unrealclientprotocol

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

GeometryScript 图元创建与建模函数。当用户要求创建 Box、Sphere、Cylinder 等基础形状,或进行拉伸、旋转体、壳体等建模操作时使用。

Install

npx vskill@latest install italink/unrealclientprotocol/unreal-modeling-primitives

SKILL.md

建模 — 图元与建模

前置条件:先阅读 unreal-modeling。

库

库CDO
图元/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshPrimitiveFunctions
建模/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshModelingFunctions

TargetMesh 为 UDynamicMesh* 路径字符串。Debug 省略。

MeshPrimitiveFunctions — 主要函数

函数关键参数说明
AppendBoxPrimitiveOptions, DimensionX/Y/Z, StepsX/Y/Z追加长方体
AppendSpherePrimitiveOptions, Radius, StepsX, StepsY追加球体(经纬细分)
AppendSphereBoxPrimitiveOptions, Radius, Steps, Subdivisions追加球体(立方体映射细分)
AppendCylinderPrimitiveOptions, Radius, Height, RadialSteps, HeightSteps, bCapped追加圆柱
AppendCapsulePrimitiveOptions, Radius, LineLength, HemisphereSteps, CircleSteps追加胶囊体
AppendConePrimitiveOptions, BaseRadius, TopRadius, Height, RadialSteps, HeightSteps, bCapped追加圆锥/圆台
AppendTorusPrimitiveOptions, InnerRadius, OuterRadius, CrossSectionSteps, CircleSteps追加环面
AppendDiscPrimitiveOptions, Radius, AngleSteps, SpokeSteps, StartAngle, EndAngle, HoleRadius追加圆盘/扇形
AppendRectangleXYPrimitiveOptions, DimensionX, DimensionY, StepsWidth, StepsHeight追加 XY 平面矩形
AppendRoundRectangleXYPrimitiveOptions, DimensionX, DimensionY, CornerRadius, StepsWidth, StepsHeight, RoundSteps追加圆角矩形
AppendLinearStaircasePrimitiveOptions, StepWidth, StepHeight, StepDepth, NumSteps, bFloating追加楼梯
AppendSpiralStaircasePrimitiveOptions, StepWidth, StepHeight, InnerRadius, SpiralAngle, NumSteps, bFloating追加螺旋楼梯
AppendSweepPolylinePrimitiveOptions, PolylineVertices(FVector2D 数组), SweepPath, bLoop, StartScale/EndScale沿路径扫掠多段线截面
AppendSweepPolygonPrimitiveOptions, PolygonVertices, SweepPath, bLoop, bCapped, StartScale/EndScale沿路径扫掠多边形截面
AppendSimpleSweptPolygonPrimitiveOptions, PolygonVertices, SweepPath, bLoop, bCapped, StartScale/EndScale简化版扫掠
AppendRevolvePolygonPrimitiveOptions, PolygonVertices, RevolutionOptions旋转体(绕轴旋转多边形截面)
AppendSimpleExtrudePolygonPrimitiveOptions, PolygonVertices, Height, HeightSteps, bCapped简单拉伸多边形
AppendVoronoiDiagram2DPrimitiveOptions, VoronoiSites(FVector2D 数组), Bounds, BoundsExpand追加 2D Voronoi 图
AppendDelaunayTriangulation2DPrimitiveOptions, Vertices(FVector2D 数组), ConstrainedEdges追加 Delaunay 三角化
AppendBoundingBoxTargetMesh, Box, PrimitiveOptions追加包围盒 mesh

注意:AppendSweepPolygon、AppendRevolvePolygon、AppendSimpleExtrudePolygon 的 PolygonVertices 参数类型为 FGeometryScriptSimplePolygon,需要用 MeshOperationLibrary.MakeSimplePolygon 桥接。SweepPath 参数类型为 FGeometryScriptPolyPath,需要用 MakePolyPath 桥接。

MeshModelingFunctions — 主要函数

函数关键参数说明
ApplyMeshOffsetTargetMesh, Options整体偏移(膨胀/收缩)
ApplyMeshShellTargetMesh, Options生成壳体(双面偏移)
ApplyMeshLinearExtrudeFacesTargetMesh, Options, Selection沿法线线性拉伸选中面
ApplyMeshOffsetFacesTargetMesh, Options, Selection偏移选中面
ApplyMeshInsetOutsetFacesTargetMesh, Options, Selection内缩/外扩选中面
ApplyMeshBevelSelectionTargetMesh, Options, Selection倒角选中区域
ApplyMeshPolygroupBevelTargetMesh, Options, GroupLayer按 Polygroup 边界倒角
ApplyMeshDisconnectFacesTargetMesh, Selection断开选中面(使其成为独立岛)
ApplyMeshDuplicateFacesTargetMesh, Selection复制选中面

结构体与枚举

FGeometryScriptPrimitiveOptions
字段类型默认值说明
PolygroupModeEGeometryScriptPrimitivePolygroupModePerFacePolygroup 分组方式
bFlipOrientationboolfalse翻转法线方向
UVModeEGeometryScriptPrimitiveUVModeUniformUV 生成模式
EGeometryScriptPrimitivePolygroupMode
值说明
PerFace每个面一个 Polygroup
PerQuad每个四边形一个 Polygroup
PerShape整个形状一个 Polygroup
SingleGroup所有图元共享一个 Polygroup
EGeometryScriptPrimitiveUVMode
值说明
Uniform均匀 UV
ScaleToFill缩放填满 0-1
FGeometryScriptRevolveOptions(用于 AppendRevolvePolygon)
字段类型默认值说明
RevolveDegreesfloat360旋转角度
DegreeOffsetfloat0起始角度偏移
Stepsint24旋转步数
bReverseDirectionboolfalse反向旋转
bHardNormalsboolfalse硬边法线
HardNormalAnglefloat0硬边角度阈值
bProfileAtMidpointboolfalse截面在步数中点
bFillPartialRevolveEndcapsbooltrue非 360° 时封口
FGeometryScriptMeshOffsetOptions(用于 ApplyMeshOffset)
字段类型默认值说明
OffsetDistancefloat1.0偏移距离
bFixedBoundaryboolfalse固定边界
Iterationsint0平滑迭代次数
SolveStepsint0求解步数
SmoothAlphafloat0.1平滑系数
bReprojectSmoothboolfalse平滑后重投影
BoundaryAlignmentWeightfloat10.0边界对齐权重
FGeometryScriptMeshLinearExtrudeOptions(用于 ApplyMeshLinearExtrudeFaces)
字段类型默认值说明
Distancefloat1.0拉伸距离
DirectionEGeometryScriptLinearExtrudeDirectionFaceNormal拉伸方向
DirectionVectorFVector(0,0,1)自定义方向(当 Direction=Fixed 时)
bSingleDirectionbooltrue单向拉伸
EGeometryScriptLinearExtrudeDirection
值说明
FaceNormal沿面法线
SingleDirection沿固定方向

JSON 示例

追加球体:

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshPrimitiveFunctions","function":"AppendSphere","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","PrimitiveOptions":{"PolygroupMode":"PerFace","bFlipOrientation":false,"UVMode":"Uniform"},"Radius":50,"StepsX":16,"StepsY":16}}

追加圆柱:

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshPrimitiveFunctions","function":"AppendCylinder","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","PrimitiveOptions":{},"Radius":25,"Height":100,"RadialSteps":16,"HeightSteps":1,"bCapped":true}}

偏移(膨胀):

json
{"object":"/Script/GeometryScriptingCore.Default__GeometryScriptLibrary_MeshModelingFunctions","function":"ApplyMeshOffset","params":{"TargetMesh":"/Engine/Transient.DynamicMesh_0","Options":{"OffsetDistance":5.0,"bFixedBoundary":false,"Iterations":3}}}

发现

对上述 CDO 路径调用 DescribeObject 可查看当前引擎版本的完整函数列表和参数签名。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
114
Repository forks
14
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/italink/unrealclientprotocol/unreal-modeling-primitives/badge)](https://verified-skill.com/skills/italink/unrealclientprotocol/unreal-modeling-primitives)

Something wrong with this skill or its page? Tell us.