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

◆ reinitialize()

void MayaFlux::Nodes::Network::PointCloudNetwork::reinitialize ( size_t  count,
const glm::vec3 &  bounds_min,
const glm::vec3 &  bounds_max,
Kinesis::SpatialDistribution  mode 
)

Reinitialize point cloud with new parameters.

Parameters
countNumber of points to generate
bounds_minMinimum coordinate bounds
bounds_maxMaximum coordinate bounds
modeHow to distribute initial positions

Definition at line 62 of file PointCloudNetwork.cpp.

67{
68 m_bounds = { .min = bounds_min, .max = bounds_max };
70 m_init_mode = mode;
71
72 reset();
73
74 if (!m_operator) {
75 auto topology = std::make_unique<TopologyOperator>();
76 topology->initialize(m_cached_vertices);
77 m_operator = std::move(topology);
78 }
79}
Eigen::Index count
std::unique_ptr< NetworkOperator > m_operator
void reset() override
Reset network to initial state.

References count, m_bounds, m_cached_vertices, m_init_mode, m_num_points, m_operator, MayaFlux::Kinesis::SamplerBounds::min, and reset().

+ Here is the call graph for this function: