Table of Contents

Method b3CreateGridMesh

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3CreateGridMesh(int, int, float, int, NativeBool)

Create a grid mesh along the x and z axes.

public static extern b3MeshData* b3CreateGridMesh(int xCount, int zCount, float cellWidth, int materialCount, NativeBool identifyEdges)

Parameters

xCount int

the number of rows in the x direction

zCount int

the number of rows in the z direction

cellWidth float

the width of each cell

materialCount int

the number of materials to generate

identifyEdges NativeBool

compute adjacency information

Returns

b3MeshData*

See the Box3D documentation.