MCPcopy Create free account
hub / github.com/Notgnoshi/generative / add_node

Method add_node

generative/noding/geometry-graph.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33std::size_t GeometryGraph::add_node(geos::geom::CoordinateXY coord) noexcept
34{
35 const auto new_index = m_nodes.size();
36
37 auto point = m_factory.createPoint(coord);
38 auto node = GeometryGraph::Node(new_index, std::move(point));
39
40 m_nodes.push_back(std::move(node));
41
42 return new_index;
43}
44
45void GeometryGraph::add_edge(std::size_t src, std::size_t dst)
46{

Callers 13

tri_gridFunction · 0.80
quad_gridFunction · 0.80
ragged_gridFunction · 0.80
hex_gridFunction · 0.80
fromMethod · 0.80
digraphMethod · 0.80
graphMethod · 0.80
add_seedsMethod · 0.80
attempt_to_joinMethod · 0.80
from_nodes_edgesFunction · 0.80
read_tgf_graphFunction · 0.80
nodeFunction · 0.80

Calls 1

NodeClass · 0.85

Tested by

no test coverage detected