Home
last modified time | relevance | path

Searched refs:mesh_ (Results 1 – 1 of 1) sorted by relevance

/external/vulkan-validation-layers/demos/smoke/
DMeshes.cpp197 BuildIcosphere(Mesh &mesh) : mesh_(mesh), radius_(1.0f) in BuildIcosphere()
257 mesh_.build(icosahedron_vertices, icosahedron_faces); in build_icosahedron()
262 size_t middle_point_count = mesh_.faces_.size() * 3 / 2; in tessellate()
263 size_t final_face_count = mesh_.faces_.size() * 4; in tessellate()
271 mesh_.positions_.reserve(mesh_.vertex_count() + middle_point_count); in tessellate()
272 mesh_.normals_.reserve(mesh_.vertex_count() + middle_point_count); in tessellate()
274 for (const auto &f : mesh_.faces_) { in tessellate()
289 mesh_.faces_.swap(faces); in tessellate()
299 const Mesh::Position &pos_a = mesh_.positions_[a]; in add_middle_point()
300 const Mesh::Position &pos_b = mesh_.positions_[b]; in add_middle_point()
[all …]