프로퍼티 | 타입 | 설명 | |
---|---|---|---|
subdivision | int |
메소드 | 설명 | |
---|---|---|
addTriangle ( int a, int b, int c ) : void | ||
addVertex ( Vector3 vert, Vector3 norm, Vector2 uv ) : |
||
buildMesh ( ) : |
||
clear ( ) : void | ||
generateCuboid ( Vector3 size, Vector3 center, Vector2 uvStart, Vector2 uvEnd ) : void |
Creates an axis-aligned cube mesh at the given center point, with the given size dimensions, from the input UV coordinates.
|
|
generateCylinderCap ( Vector3 offset, int faces, float outerRadius, float innerRadius, float height, float startAngle, float endAngle, UVArea area, bool bottomCap ) : void | ||
generatePanelCollider ( Vector3 center, float startAngle, float endAngle, float startY, float height, float bottomRadius, float topRadius, float thickness ) : void | ||
generateQuads ( List |
||
generateRadialVerticesCylinderUVs ( Vector3 offset, int faces, float radius, float height, float startAngle, float endAngle, UVArea area, float uvRadius, float yCos, float ySin ) : List |
Generates a ring of vertices using circular UV mapping, where the center of the ring is the center of the UV area. This would be used to generate a partial ring, such as the procedural decoupler Input radius is the radius of the actual ring, uvRadius is the radius to be used for maximal UV bounds (e.g. they will only be different on an inner-ring; where radius=ring radius, and uvRadius = outerRingRadius)
|
|
generateRadialVerticesFlatUVs ( Vector3 offset, int faces, float radius, float height, float startAngle, float endAngle, float v, UVArea area, float yCos, float ySin ) : List |
Used to generate a ring of vertices with the uvMapping appropriate for a cylinder wall (increments in +x)
|
|
generateTriangle ( Vertex a, Vertex b, Vertex c, bool invertFace ) : void | ||
generateTriangleFan ( List |
||
generateTriangleFan ( List |
메소드 | 설명 | |
---|---|---|
calculateTangents ( ) : Vector4[] | ||
getNorms ( ) : Vector3[] | ||
getTriangles ( ) : int[] | ||
getUVs ( ) : Vector2[] | ||
getVerts ( ) : Vector3[] |
public addVertex ( Vector3 vert, Vector3 norm, Vector2 uv ) : |
||
vert | Vector3 | |
norm | Vector3 | |
uv | Vector2 | |
리턴 |
public generateCuboid ( Vector3 size, Vector3 center, Vector2 uvStart, Vector2 uvEnd ) : void | ||
size | Vector3 | |
center | Vector3 | |
uvStart | Vector2 | |
uvEnd | Vector2 | |
리턴 | void |
public generateCylinderCap ( Vector3 offset, int faces, float outerRadius, float innerRadius, float height, float startAngle, float endAngle, UVArea area, bool bottomCap ) : void | ||
offset | Vector3 | |
faces | int | |
outerRadius | float | |
innerRadius | float | |
height | float | |
startAngle | float | |
endAngle | float | |
area | UVArea | |
bottomCap | bool | |
리턴 | void |
public generatePanelCollider ( Vector3 center, float startAngle, float endAngle, float startY, float height, float bottomRadius, float topRadius, float thickness ) : void | ||
center | Vector3 | |
startAngle | float | |
endAngle | float | |
startY | float | |
height | float | |
bottomRadius | float | |
topRadius | float | |
thickness | float | |
리턴 | void |
public generateQuads ( List |
||
verts1 | List |
|
verts2 | List |
|
invertFaces | bool | |
리턴 | void |
public generateRadialVerticesCylinderUVs ( Vector3 offset, int faces, float radius, float height, float startAngle, float endAngle, UVArea area, float uvRadius, float yCos, float ySin ) : List |
||
offset | Vector3 | |
faces | int | |
radius | float | |
height | float | |
startAngle | float | |
endAngle | float | |
area | UVArea | The UV area to map the UV vertex to. |
uvRadius | float | The radius to be used for the UV area, in case it differs from the radius in use (basically scales the UV area) |
yCos | float | Determines the x/z normal component |
ySin | float | Used directly as the y normal component |
리턴 | List |
public generateRadialVerticesFlatUVs ( Vector3 offset, int faces, float radius, float height, float startAngle, float endAngle, float v, UVArea area, float yCos, float ySin ) : List |
||
offset | Vector3 | |
faces | int | |
radius | float | |
height | float | |
startAngle | float | |
endAngle | float | |
v | float | |
area | UVArea | |
yCos | float | |
ySin | float | |
리턴 | List |
public generateTriangle ( Vertex a, Vertex b, Vertex c, bool invertFace ) : void | ||
a | Vertex | |
b | Vertex | |
c | Vertex | |
invertFace | bool | |
리턴 | void |
public generateTriangleFan ( List |
||
circ | List |
|
centers | List |
|
invertFaces | bool | |
리턴 | void |
public generateTriangleFan ( List |
||
circ | List |
|
cent | Vertex | |
invertFaces | bool | |
리턴 | void |