메소드 | 설명 | |
---|---|---|
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 | |
리턴 | PlaneFinding.MeshData |
public static CreateSimpleMesh ( int dimension, Vector3 bounds, Matrix4x4 transform ) : PlaneFinding.MeshData | ||
dimension | int | |
bounds | Vector3 | |
transform | Matrix4x4 | |
리턴 | PlaneFinding.MeshData |
public static CreateSimpleMesh ( int dimension, Vector3 bounds, Matrix4x4 vertDataTransform, Matrix4x4 meshTransform ) : PlaneFinding.MeshData | ||
dimension | int | |
bounds | Vector3 | |
vertDataTransform | Matrix4x4 | |
meshTransform | Matrix4x4 | |
리턴 | PlaneFinding.MeshData |