Summary
Various utility methods for using the
Weaver.MeshBuilder
class.- Assembly
- Weaver
.dll - Namespace
- Weaver
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["MeshUtilities"]
class Type type-node
Syntax
public static class MeshUtilities
Methods
Name | Value | Summary |
---|---|---|
BuildRingXY |
void |
Adds indices, vertices, and normals to form a ring on the XY plane with the specified parameters.
static
|
CalculateNormals |
void |
Doesn't take into account vertices that are shared by multiple triangles.
Only the last triangle to include each vertex will determine its normal.
static
|
DuplicateVertex |
void |
Adds a new vertex with its position at `builder.Vertices[vertex]` and the specified `normal` value.
static
|
DuplicateVertex |
void |
Adds a new vertex with its position at `builder.Vertices[vertex]` and the specified `normal` and `uv` values.
static
|
DuplicateVertex |
void |
Adds a new vertex with its position at 'builder.Vertices[vertex] + offset' and the specified `normal` and `uv` values.
static
|
ExtrudePolygon |
void |
Duplicates the vertex data of a polygon with the vertices offset by `extrusion` and adds indices to join
them as faces to the original vertices.
static
|
GetUVs |
List |
static
|
PlaceQuadUVs |
void |
Adds 4 UV values to planar map a quad.
static
|
PlaceQuadVertices |
void |
Adds 4 vertices to form a quad.
static
|
PlanarMapXY |
void |
Planar maps the UV values for all vertices using their XY positions.
static
|
PlanarMapXY |
void |
Planar maps the UV values for a range of vertices into the `uvArea` based on their XY positions relative to `vertexArea`.
static
|
RotateVertices |
void |
Multiplies all vertices and normaly by `rotation`.
static
|
ScaleVertices |
void |
Multiplies all vertices by `scale`.
static
|
SetCount |
void |
Adds members to the list (or removes them) until the count reaches the specified value.
static
|
Shape |
void |
Adds indices, vertices, normals, and UVs for a polygon on the XY plane with the specified parameters.
static
|
Shape |
void |
Adds indices, vertices, normals, and UVs for a polygon on the XY plane with the specified parameters.
static
|
TranslateVertices |
void |
Adds the specified translation to all vertices up to the current vertex count.
static
|
TranslateVertices |
void |
Adds the specified translation to all vertices from the specified start index up to the current vertex count.
static
|
TranslateVertices |
void |
Adds the specified translation to all vertices in the specified range.
static
|
VectorXYFromAngle |
Vector3 |
Generates a vector with the specified z value and length in the specified direction on the XY axis.
static
|