[][src]Module building_blocks_mesh::greedy_quads

Structs

GreedyQuadsBuffer

Contains the output from the greedy_quads algorithm. Can be reused to avoid re-allocations.

Quad

A single quad of connected cubic voxel faces. Must belong to a QuadGroup to be useful.

QuadGroup

A set of Quads that share an orientation.

QuadGroupMeta

Metadata that's used to aid in the geometric calculations for one of the 6 possible cube faces.

Enums

Axis

Traits

MaterialVoxel

Functions

greedy_quads

The "Greedy Meshing" algorithm described by Mikola Lysenko in the 0fps article.

padded_greedy_quads_chunk_extent

Pads the given chunk extent with exactly the amount of space required for running the greedy_quads algorithm.

quad_indices

Returns the vertex indices for a single quad (two triangles). The triangles may have either clockwise or counter-clockwise winding. start is the first index.