Class Projection
Contains functions for projecting 3D points to 2D space.
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public static class Projection
Methods
Name | Description |
---|---|
FindBestPlane(IList<Vector3>, IList<int>) | Finds the plane that best fits the specified set of 3D points. |
PlanarProject(IList<Vector3>, IList<int>) | Projects a collection of 3D positions to a 2D plane. This method uses FindBestPlane(IList<Vector3>, IList<int>) to calculate the direction from which the vertices are projected. |
PlanarProject(IList<Vector3>, IList<int>, Vector3) | Projects a collection of 3D positions to a 2D plane in the specified direction. |