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

◆ to_point_vertices()

MAYAFLUX_API std::vector< PointVertex > MayaFlux::Kakshya::to_point_vertices ( std::span< const Vertex vertices,
glm::vec2  size_range = { 8.0F, 12.0F } 
)

Batch-project raw Vertex vector to PointVertex.

Parameters
verticesSource vertices
size_rangeSize range passed to to_point_vertex
Returns
PointVertex vector of equal length

Definition at line 5 of file VertexFormats.cpp.

8{
9 std::vector<PointVertex> out;
10 out.reserve(vertices.size());
11 for (const auto& s : vertices) {
12 out.push_back(to_point_vertex(s, size_range));
13 }
14 return out;
15}
PointVertex to_point_vertex(const Vertex &s, glm::vec2 size_range={ 8.0F, 12.0F }) noexcept
Project raw Vertex to PointVertex.

References to_point_vertex().

Referenced by MayaFlux::Nodes::Network::ParticleNetwork::generate_initial_vertices().

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