Table of Contents

Method BoxMesh

Namespace
Box3D
Assembly
Box3D.NET.dll

BoxMesh(Vector3, Vector3, bool)

Builds a closed box as a triangle mesh.

public static CollisionMesh BoxMesh(Vector3 center, Vector3 extents, bool identifyEdges = true)

Parameters

center Vector3

The centre of the box.

extents Vector3

The half-widths of the box.

identifyEdges bool

Whether to compute adjacency.

Returns

CollisionMesh

The mesh.

Remarks

A Box3D.Box is cheaper for a solid box. This exists for cases that specifically need mesh behaviour, such as per-triangle materials.