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

◆ PointCloudNetwork() [2/2]

MayaFlux::Nodes::Network::PointCloudNetwork::PointCloudNetwork ( size_t  num_points,
const glm::vec3 &  bounds_min = glm::vec3(-1.0F),
const glm::vec3 &  bounds_max = glm::vec3(1.0F),
Kinesis::SpatialDistribution  init_mode = Kinesis::SpatialDistribution::RANDOM_CUBE 
)
explicit

Create network with initial point count and bounds.

Parameters
num_pointsNumber of points to generate
bounds_minMinimum coordinate bounds
bounds_maxMaximum coordinate bounds
init_modeHow to distribute initial positions

Definition at line 20 of file PointCloudNetwork.cpp.

25 : m_num_points(num_points)
26 , m_bounds(bounds_min, bounds_max)
27 , m_init_mode(init_mode)
28{
31 m_operator_chain = std::make_shared<OperatorChain>();
32
34 "Created PointCloudNetwork with {} points, bounds [{:.2f}, {:.2f}, {:.2f}] to [{:.2f}, {:.2f}, {:.2f}]",
35 num_points,
36 bounds_min.x, bounds_min.y, bounds_min.z,
37 bounds_max.x, bounds_max.y, bounds_max.z);
38}
#define MF_INFO(comp, ctx,...)
std::shared_ptr< OperatorChain > m_operator_chain
void set_output_mode(OutputMode mode)
Set the network's output routing mode.
void set_topology(Topology topology) override
Set the network's topology.
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.
@ INDEPENDENT
No connections, nodes process independently.
@ GRAPHICS_BIND
State available for visualization (read-only)

References MayaFlux::Nodes::Network::GRAPHICS_BIND, MayaFlux::Nodes::Network::INDEPENDENT, MayaFlux::Nodes::Network::NodeNetwork::m_operator_chain, MF_INFO, MayaFlux::Journal::NodeProcessing, MayaFlux::Journal::Nodes, MayaFlux::Nodes::Network::NodeNetwork::set_output_mode(), and set_topology().

+ Here is the call graph for this function: