Méthode | Description | |
---|---|---|
CreateSimpleMesh ( int dimension, Vector3 bounds ) : PlaneFinding.MeshData | ||
CreateSimpleMesh ( int dimension, Vector3 bounds, Matrix4x4 transform ) : PlaneFinding.MeshData | ||
CreateSimpleMesh ( int dimension, Vector3 bounds, Matrix4x4 vertDataTransform, Matrix4x4 meshTransform ) : PlaneFinding.MeshData |
Helper function that creates a simple mesh for use in the PlaneFinding API. The mesh is built as tesselated quad spanning the x and y dimensions of the specified Bounds. Each vert in the mesh is randomly perturbed along the z axis with in the specified Bounds. This results in a somewhat more realistic noisy planar mesh that simulates the sort of data we might get from SR.
|
public static CreateSimpleMesh ( int dimension, Vector3 bounds ) : PlaneFinding.MeshData | ||
dimension | int | |
bounds | Vector3 | |
Résultat | PlaneFinding.MeshData |
public static CreateSimpleMesh ( int dimension, Vector3 bounds, Matrix4x4 transform ) : PlaneFinding.MeshData | ||
dimension | int | |
bounds | Vector3 | |
transform | Matrix4x4 | |
Résultat | PlaneFinding.MeshData |
public static CreateSimpleMesh ( int dimension, Vector3 bounds, Matrix4x4 vertDataTransform, Matrix4x4 meshTransform ) : PlaneFinding.MeshData | ||
dimension | int | |
bounds | Vector3 | |
vertDataTransform | Matrix4x4 | |
meshTransform | Matrix4x4 | |
Résultat | PlaneFinding.MeshData |