Class MeshBasedBake
Performs and holds a result of the baking process.
Inheritance
System.Object
MeshBasedBake
Namespace: AlchemyBow.Navigation.HighLevel
Assembly: AlchemyBow.Navigation.dll
Syntax
public sealed class MeshBasedBake
Properties
| Improve this Doc View SourceOmittedTriangles
Gets the number of triangles that were omitted during the baking process.
Declaration
public int OmittedTriangles { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of triangles that were omitted during the baking process. |
Triangles
Gets a duplicate of the triangles;
Declaration
public int[] Triangles { get; }
Property Value
Type | Description |
---|---|
System.Int32[] | A duplicate of the triangles. |
Vertices
Gets a duplicate of the vertices.
Declaration
public Vector3[] Vertices { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3[] | A duplicate of the vertices. |
Methods
| Improve this Doc View SourceBake(MeshFilter[], MeshBasedBakeSettings)
Creates the instance of the MeshBasedBake class that holds the result of baking.
Declaration
public static MeshBasedBake Bake(MeshFilter[] sources, MeshBasedBakeSettings settings)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.MeshFilter[] | sources | Mesh sources. |
MeshBasedBakeSettings | settings | A settings for the baking process. |
Returns
Type | Description |
---|---|
MeshBasedBake | The instance of the MeshBasedBake class that holds the result of baking. |
GroupTrianglesByConnection()
Splits result triangles into groups by their connections.
Declaration
public int[][] GroupTrianglesByConnection()
Returns
Type | Description |
---|---|
System.Int32[][] | The result triangles splited into groups. |