# bspModelMesh
function bspModelMesh(map, modelIndex)Return the bsp model mesh value.
| Parameter | Type | Default | Description |
|---|---|---|---|
map | dynamic | — | map value consumed by this operation. |
modelIndex | dynamic | — | Zero-based index of model. |
src/miniquake2/renderer/geometry.mlProvides miniquake2 renderer geometry facilities for this project.
miniquake2/format/types.ml as ft → src/miniquake2/format/types.mlminiquake2/qcommon/directions.ml as rgeometrydirections → src/miniquake2/qcommon/directions.mlstd/math.ml as rgeometrymath → ../MiniLangCompilerML/std/math.ml external dependencyfunction bspModelMesh(map, modelIndex)Return the bsp model mesh value.
| Parameter | Type | Default | Description |
|---|---|---|---|
map | dynamic | — | map value consumed by this operation. |
modelIndex | dynamic | — | Zero-based index of model. |
function faceVertex(map, face, edgeOffset)Return the face vertex value.
| Parameter | Type | Default | Description |
|---|---|---|---|
map | dynamic | — | map value consumed by this operation. |
face | dynamic | — | face value consumed by this operation. |
edgeOffset | dynamic | — | edgeOffset value consumed by this operation. |
function interpolate(first, second, backLerp)Interpolate state.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
backLerp | dynamic | — | backLerp value consumed by this operation. |
function md2FrameBounds(model, frameIndex, oldFrameIndex, backLerp)Return the md 2 frame bounds.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
frameIndex | dynamic | — | Zero-based index of frame. |
oldFrameIndex | dynamic | — | Zero-based index of old frame. |
backLerp | dynamic | — | backLerp value consumed by this operation. |
function md2FrameMesh(model, frameIndex, oldFrameIndex, backLerp)Return the md 2 frame mesh value.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
frameIndex | dynamic | — | Zero-based index of frame. |
oldFrameIndex | dynamic | — | Zero-based index of old frame. |
backLerp | dynamic | — | backLerp value consumed by this operation. |
function md2FrameScalars(model, frameIndex, oldFrameIndex, backLerp)Return the md 2 frame scalars value.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
frameIndex | dynamic | — | Zero-based index of frame. |
oldFrameIndex | dynamic | — | Zero-based index of old frame. |
backLerp | dynamic | — | backLerp value consumed by this operation. |
function md2FrameScalarsWithNormalOffset(model, frameIndex, oldFrameIndex, backLerp, normalOffset)Render-only MD2 expansion. The inspection API above intentionally retains MeshVertex structs; the live renderer needs only interleaved ST/XYZ scalars. Building those scalars directly avoids a full temporary object graph and a second traversal for every visible alias model on every frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
frameIndex | dynamic | — | Zero-based index of frame. |
oldFrameIndex | dynamic | — | Zero-based index of old frame. |
backLerp | dynamic | — | backLerp value consumed by this operation. |
normalOffset | dynamic | — | normalOffset value consumed by this operation. |
function md2Position(frame, vertexIndex)Return the md 2 position.
| Parameter | Type | Default | Description |
|---|---|---|---|
frame | dynamic | — | frame value consumed by this operation. |
vertexIndex | dynamic | — | Zero-based index of vertex. |
function md2PowerShellFrameScalars(model, frameIndex, oldFrameIndex, backLerp)Return the md 2 power shell frame scalars value.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
frameIndex | dynamic | — | Zero-based index of frame. |
oldFrameIndex | dynamic | — | Zero-based index of old frame. |
backLerp | dynamic | — | backLerp value consumed by this operation. |
miniquake2.renderer.geometry.MeshBounds struct
function meshVertex(position, s, t)Return the mesh vertex value.
| Parameter | Type | Default | Description |
|---|---|---|---|
position | dynamic | — | position value consumed by this operation. |
s | dynamic | — | s value consumed by this operation. |
t | dynamic | — | t value consumed by this operation. |