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

◆ to_line_vertices()

MAYAFLUX_API std::vector< LineVertex > MayaFlux::Kakshya::to_line_vertices ( std::span< const Vertex vertices,
glm::vec2  thickness_range = { 1.0F, 2.0F } 
)

Batch-project raw Vertex vector to LineVertex.

Parameters
verticesSource vertices
thickness_rangeThickness range passed to to_line_vertex
Returns
LineVertex vector of equal length

Definition at line 17 of file VertexFormats.cpp.

20{
21 std::vector<LineVertex> out;
22 out.reserve(vertices.size());
23 for (const auto& s : vertices) {
24 out.push_back(to_line_vertex(s, thickness_range));
25 }
26 return out;
27}
LineVertex to_line_vertex(const Vertex &s, glm::vec2 thickness_range={ 1.0F, 2.0F }) noexcept
Project raw Vertex to LineVertex.

References to_line_vertex().

Referenced by MayaFlux::Nodes::Network::PointCloudNetwork::generate_initial_positions().

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