Table of Contents

Struct MeshOptions

Namespace
Box3D
Assembly
Box3D.NET.dll

How a mesh is built from its triangles.

public readonly record struct MeshOptions : IEquatable<MeshOptions>

Implements

Inherited Members

Remarks

The defaults suit level geometry exported from a modelling tool. The two switches worth understanding are Box3D.MeshOptions.WeldVertices, which repairs meshes whose triangles do not share vertices, and Box3D.MeshOptions.IdentifyEdges, which is what stops characters catching on the seams between triangles.

Properties

Default

Gets options suited to level geometry a character walks on.

Fast

Gets options that build as fast as possible, skipping the repair passes.

IdentifyEdges

Gets a value indicating whether triangle adjacency is computed.

UseMedianSplit

Gets a value indicating whether a median split is used instead of a surface area heuristic when building the hierarchy.

WeldTolerance

Gets the distance within which two vertices are considered the same.

WeldVertices

Gets a value indicating whether nearby vertices are merged before building.