Skip to content
Paweł Waligóra edited this page Sep 17, 2024 · 1 revision

fieldb

preamble key-word since v2.0.0

fields in buffer

Behaviour in main preamble.

Outputs how many fields in total will the unit put into the resulting output file.

Example

begin file a.out
fieldu
; vertex.x vertex.y vertex.z
; uv.x uv.y
; indice.0 indice.1 indices.2

Suppose processed mesh has 12 vertices and 6 indices. fieldu key-word will produce a value of: 12×3 = 36, 12×2 = 24, 6×3 = 18.

Behaviour in buffer preamble.

Outputs how many fields are in the buffer in a resulting output file.

Example

begin file a.out

fielde ; vertex.x vertex.y vertex.z
fielde ; uv.x uv.y
fielde ; indice.0 indice.1 indices.2
end

Suppose processed mesh has 12 vertices and 6 indices. fieldu key-words will produce following values: 12×3 = 36 in 1st buffer, 12×2 = 24 in 2nd buffer and 6 in 3rd buffer.

Clone this wiki locally