b3dMergeMesh

Combines two surface-based meshes into a single new mesh with optional transform baking. Takes mesh1 (first surface-based mesh), mesh2 (second surface-based mesh), applyTransforms (0 = ignore entity transforms, non-zero = bake transforms into vertices). Returns new merged mesh entity handle or 0 on failure.

3D Graphics

Parameters & Returns

Parameters

mesh1 Int
mesh2 Int
applyTransforms Int

Returns

Int

Quick Summary

Combines two surface-based meshes into a single new mesh with optional transform baking. Takes mesh1 (first surface-based mesh), mesh2 (second surface-based mesh), applyTransforms (0 = ignore entity transforms, non-zero = bake transforms into vertices). Returns new merged mesh entity handle or 0 on failure.

Technical Exegesis...

Combines two surface-based meshes into a single new mesh with optional transform baking. Takes mesh1 (first surface-based mesh), mesh2 (second surface-based mesh), applyTransforms (0 = ignore entity transforms, non-zero = bake transforms into vertices). Returns new merged mesh entity handle or 0 on failure. Validates both meshes exist and type is ENTITY_MESH. Validates both are surface-based (created with b3dCreateMesh, not loaded).

Example

Example.bam
; No example implemented yet