|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Kakshya::MeshInsertion::insert_flat | ( | std::span< const uint8_t > | vertex_bytes, |
| std::span< const uint32_t > | index_data, | ||
| const VertexLayout & | layout | ||
| ) |
Insert a single flat mesh (no submesh tracking).
Replaces any existing content in both variants. layout must have stride_bytes > 0. vertex_bytes.size() must be a multiple of layout.stride_bytes. index_data.size() must be a multiple of 3.
| vertex_bytes | Raw interleaved vertex data. |
| index_data | Triangle index list. |
| layout | Vertex attribute layout; stride_bytes must be set. |
Definition at line 59 of file MeshInsertion.cpp.
References MayaFlux::Journal::Kakshya, m_index_count, m_index_variant, m_layout, m_layout_set, m_submeshes, m_vertex_count, m_vertex_variant, MF_DEBUG, MF_ERROR, MayaFlux::Journal::Runtime, MayaFlux::Kakshya::VertexLayout::stride_bytes, and MayaFlux::Kakshya::VertexLayout::vertex_count.
Referenced by MayaFlux::IO::ModelReader::extract_single_mesh().
Here is the caller graph for this function: