14 .structure_type(StructureType::Field)
15 .
description(
"The index of the first vertex in the edge");
17 .structure_type(StructureType::Field)
18 .
description(
"The index of the second vertex in the edge");
20 .structure_type(StructureType::Field)
21 .
description(
"The position of the first vertex in the edge");
23 .structure_type(StructureType::Field)
24 .
description(
"The position of the second vertex in the edge");
34 if (domain == AttrDomain::Edge) {
62 static constexpr int8_t id = 0;
69 return AttrDomain::Edge;
83 edges.
size(), [positions, edges](
const int i) { return positions[edges[i][0]]; }),
89 edges.
size(), [positions, edges](
const int i) { return positions[edges[i][1]]; }),
113 static constexpr int8_t id = 0;
120 return AttrDomain::Edge;
139 ntype.
ui_name =
"Edge Vertices";
140 ntype.
ui_description =
"Retrieve topology information relating to each edge of a mesh";
#define GEO_NODE_INPUT_MESH_EDGE_VERTICES
#define NOD_REGISTER_NODE(REGISTER_FUNC)
constexpr int64_t size() const
static VArray from_func(const int64_t size, GetFunc get_func)
static Field from_input(Args &&...args)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
VecBase< float, 3 > float3
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare