18 .structure_type(StructureType::Field)
19 .
description(
"Number of edges or points in the face");
21 .structure_type(StructureType::Field)
22 .
description(
"Number of faces which share an edge with the face");
30 for (
const int i : indices) {
43 for (
const int i : indices) {
46 return unique_values.
size();
49 for (
const int i : indices) {
52 return unique_values.
size();
66 for (const int64_t face_i : range) {
67 face_count[face_i] = unique_num(edge_to_faces_map, face_edges[face_i]) - 1;
70 return mesh.attributes().adapt_domain<
int>(
90 static constexpr int8_t id = 0;
96 return AttrDomain::Face;
103 return mesh.attributes().adapt_domain<
int>(
105 [faces](
const int i) ->
float { return faces[i].size(); }),
123 static constexpr int8_t id = 0;
129 return AttrDomain::Face;
144 ntype.
ui_name =
"Face Neighbors";
145 ntype.
ui_description =
"Retrieve topology information relating to each face of a mesh";
#define GEO_NODE_INPUT_MESH_FACE_NEIGHBORS
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void add_multiple(Span< Key > keys)
static VArray from_func(const int64_t size, GetFunc get_func)
static VArray from_container(ContainerT container)
void extend_non_duplicates(Span< T > array)
static Field from_input(Args &&...args)
void set_output(const UString identifier, T &&value)
GroupedSpan< int > build_edge_to_face_map(OffsetIndices< int > faces, Span< int > corner_edges, int edges_num, Array< int > &r_offsets, Array< int > &r_indices)
void node_register_type(bNodeType &ntype)
void parallel_for(const IndexRange range, const int64_t grain_size, const Function &function, const TaskSizeHints &size_hints=detail::TaskSizeHints_Static(1))
ATTR_WARN_UNUSED_RESULT const size_t num
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
OffsetIndices< int > offsets
IndexRange index_range() const