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

◆ to_line_vertices()

std::vector< Nodes::LineVertex > MayaFlux::Kinesis::to_line_vertices ( std::span< const SampleResult samples,
glm::vec2  thickness_range = { 1.0F, 2.0F } 
)

Batch-project SampleResult vector to LineVertex.

Parameters
samplesSource samples
thickness_rangeThickness range passed to to_line_vertex
Returns
LineVertex vector of equal length

Definition at line 408 of file VertexSampler.cpp.

411{
412 std::vector<Nodes::LineVertex> out;
413 out.reserve(samples.size());
414 for (const auto& s : samples) {
415 out.push_back(to_line_vertex(s, thickness_range));
416 }
417 return out;
418}
Nodes::LineVertex to_line_vertex(const SampleResult &s, glm::vec2 thickness_range={ 1.0F, 2.0F }) noexcept
Project SampleResult 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: