b3dMeshDepth

Returns mesh bounding box depth (Z-axis extent). Takes entity (mesh entity handle). Returns depth as double (maxZ - minZ), 0.0 if invalid/empty mesh.

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Double

Quick Summary

Returns mesh bounding box depth (Z-axis extent). Takes entity (mesh entity handle). Returns depth as double (maxZ - minZ), 0.0 if invalid/empty mesh.

Technical Exegesis...

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

This function calculates mesh depth from vertex data.

Example

Example.bam
; No example implemented yet