pub fn try_export_kmz_collada_from_meshes(
positions: &[f32],
normals: &[f32],
indices: &[u32],
vertex_counts: &[u32],
index_counts: &[u32],
colors: &[f32],
origins: &[f64],
opts: &KmzOptions,
) -> Result<Vec<u8>, ExportError>Expand description
Build a Google-Earth-ready KMZ (doc.kml + model.dae) directly from the
viewer’s already-produced (Y-up) meshes, the working path (#1427). The model
is embedded as COLLADA (the only <Model> format Google Earth loads), with
emission-lit, double-sided materials and clampToGround placement. Mesh arrays
match crate::try_export_collada_from_meshes / export_glb_from_meshes.
Fails closed when the embedded COLLADA would carry no geometry: the archive
this used to ship around a schema-invalid document was read as success by
every caller. See crate::try_export_collada_from_meshes for the two
inputs that reach that state.