MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ to_region()

Region MayaFlux::Kakshya::MeshSubrange::to_region ( ) const

Convert this subrange to a Region for use in RegionGroup.

Coordinates are [index_start, index_start + index_count). Attributes carry name, material_name, and vertex_offset.

Definition at line 11 of file MeshAccess.cpp.

12{
13 Region r(
14 std::vector { static_cast<uint64_t>(index_start) },
15 std::vector { static_cast<uint64_t>(index_start + index_count) });
16 r.set_attribute("name", name);
17 r.set_attribute("material_name", material_name);
18 r.set_attribute("vertex_offset", static_cast<uint64_t>(vertex_offset));
19 r.set_attribute("index_count", static_cast<uint64_t>(index_count));
20 r.set_attribute("diffuse_path", diffuse_path);
21 r.set_attribute("diffuse_embedded", diffuse_embedded);
22 return r;
23}
uint32_t vertex_offset
Base vertex added to each index (large-mesh batching)

References diffuse_embedded, diffuse_path, index_count, index_start, material_name, name, MayaFlux::Kakshya::Region::set_attribute(), and vertex_offset.

Referenced by MayaFlux::IO::ModelReader::extract_single_mesh(), and MayaFlux::Kakshya::MeshInsertion::insert_submesh().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: