class MeshBuilderUtils
(Niantic.Lightship.Maps.Utilities.MeshBuilderUtils)
Overview
Utilities for creating meshes at runtime.
class MeshBuilderUtils {
public:
// methods
static Vector3 CalculateCentroid(Vector3[] vertices);
};
Detailed Documentation
Utilities for creating meshes at runtime.
Methods
CalculateCentroid
static Vector3 CalculateCentroid(Vector3[] vertices)
Calculates the centroid of a polygon from its vertices
Parameters:
vertices
- The polygon's vertices
Returns:
The centroid of the polygon