b3dMeshWidth

Returns mesh bounding box width (X-axis extent). Takes entity (mesh entity handle). Returns width as double (maxX - minX), 0.0 if invalid/empty mesh.

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Double

Quick Summary

Returns mesh bounding box width (X-axis extent). Takes entity (mesh entity handle). Returns width as double (maxX - minX), 0.0 if invalid/empty mesh.

Technical Exegesis...

Returns mesh bounding box width (X-axis extent). Takes entity (mesh entity handle). Returns width as double (maxX - minX), 0.0 if invalid/empty mesh. Validates entity exists and is mesh type, iterates all vertices to find min/max X coordinates, calculates width as difference. Measures mesh geometry (not world space size, ignores entity transform).

This function calculates mesh width from vertex data.

Example

Example.bam
; No example implemented yet