# 几何体脚本参考

## 用于几何体脚本的蓝图节点和函数的参考。

### 资产和组件读写

Copy Mesh From Static Mesh

Copy Mesh To Static Mesh

Copy Mesh From Component

Create New Volume From Mesh

Create New Static Mesh Asset From Mesh

Set Static Mesh Collision From Mesh

Set Dynamic Mesh Collision From Mesh

### 图元生成

Append Box

Append Sphere Lat Long

Append Sphere Box

Append Capsule

Append Cylinder

Append Cone

Append Torus

Append Rectangle

Append Round Rectangle

Append Disc

Append Triangulated Polygon

Append Revolve Polygon

Append Spiral Revolve Polygon

Append Revolve Path

Append Simple Extrude Polygon

Append Simple Swept Polygon

Append Linear Stairs

Append Curved Stairs

### 变换和变形

Translate Mesh

Scale Mesh

Transform Mesh

Apply Bend Warp To Mesh

Apply Twist Warp To Mesh

Apply Flare Warp To Mesh

Apply Math Warp To Mesh

Apply Perlin Noise To Mesh

Apply Iterative Smoothing To Mesh

Apply Displace From Texture Map

### 复合 / 分解

Copy Mesh To Mesh

Get Sub Mesh From Mesh

Split Mesh By Components

Split Mesh By Materials

Append Mesh

Append Mesh Repeated

### 网格体建模

Apply Mesh Boolean

Apply Mesh Plane Cut

Apply Mesh Plane Slice

Apply Mesh Mirror

Apply Mesh Offset

Apply Mesh Shell

Apply Mesh Extrude

Apply Mesh Solidify

Apply Mesh Morphology

Apply Mesh Self Union

Apply Mesh Polygroup Bevel

### 细分函数

Apply Recursive PNTessellation

Apply Polygroup Catmull Clark SubD

Apply Triangle Loop SubD

### 简化函数

Apply Simplify To Triangle Count

Apply Simplify To Vertex Count

Apply Simplify To Tolerance

Apply Simplify To Planar

Apply Simplify To Polygroup Topology

### 法线函数

Flip Normals

Set Per Vertex Normals

Set Per Face Normals

Compute Split Normals

Recompute Normals

Compute Tangents

### 清理/修复函数

Compact Mesh

Auto Repair Normals

Weld Mesh Edges

Fill All Mesh Holes

Remove Small Components

Remove Hidden Triangles

### 低级别网格体查询

Get Vertex Count

Get Num Vertex IDs

Is Valid Vertex ID

Get All Vertex IDs

Get Vertex Position

Get All Vertex Positions

Get Triangle Count ()**

Get Num Triangle IDs

Is Valid Triangle ID

Get All Triangle IDs

Get Triangle Indices

Get All Triangle Indices

Get TrianglePositions

Get TriangleFace Normal

Get TriangleUVs

Get Triangle Material ID

Get All Triangle Material IDs

Get Triangle Polygroup ID

Get Has Vertex ID Gaps

Get Has Triangle ID Gaps

Get Is Dense Mesh

Get Mesh Has Attribute Set

### 低级别网格体构建

Set Vertex Position

Delete Vertex From Mesh

Delete Vertices From Mesh

Delete Triangle From Mesh

Delete Triangles From Mesh

Delete Triangles In Polygroup

Append Buffers To Mesh

Set Mesh Triangle Normals

Set Mesh Triangle UVs

Set Triangle Material ID

### 材质ID函数

Get Has Material IDs

Enable Material IDs

Clear Material IDs

Get Max Material ID

Remap Material IDs

Set All Triangle Material IDs

Set Polygroup Material ID

### 顶点颜色

Set Mesh Constant Vertex Color

Set Mesh Per Vertex Colors

### UV函数

Get Num UV Sets

Set Num UV Sets

Get UV Set Bounding Box

CopyUVSet

Translate Mesh UVs

Scale Mesh UVs

Rotate Mesh UVs

Recompute Mesh UVs

Repack Mesh UVs

Set Mesh UVs From Planar Projection

Set Mesh UVs From Box Projection

Set Mesh UVs From Cylinder Projection

Auto Generate Patch Builder Mesh UVs

Auto Generate XAtlas Mesh UVs

### 多边形组函数

Get Has Polygroups

Enable Polygroups

GetNum Extended Polygroup Layers

Set Num Extended Polygroup Layers

Clear Polygroups

Copy Polygroups Layer

Convert UV Islands To Polygroups

Convert Components To Polygroups

Compute Polygroups From Angle Threshold

### 网格体几何查询

Get Mesh Bounding Box

Get Mesh Volume Area

Get Is Closed Mesh

Get Num Open Border Loops

Get Num Open Border Edges

Get Num Connected Components

Compute Mesh Convex Hull

Compute Mesh Swept Hull

### 网格体比较

Is Same Mesh As

Measure Distances Between Meshes

Is Intersecting Mesh

### BVH/AABBTree和空间查询

Build BVH For Mesh

Is BVH Valid For Mesh

Rebuild BVH For Mesh

Find Nearest Point On Mesh

Find Nearest Ray Intersection With Mesh

Is Point Inside Mesh

### 工具

Create Dynamic Mesh Pool

Create Unique New Asset Path Name