16 .
description(
"The surface area of each of the mesh's faces");
23 const Span<int> corner_verts = mesh.corner_verts();
25 auto area_fn = [positions,
faces, corner_verts](
const int i) ->
float {
60 return AttrDomain::Face;
74 ntype.
ui_description =
"Calculate the surface area of a mesh's faces";
#define GEO_NODE_INPUT_MESH_FACE_AREA
#define BLT_I18NCONTEXT_AMOUNT
#define NOD_REGISTER_NODE(REGISTER_FUNC)
unsigned long long int uint64_t
constexpr Span slice(int64_t start, int64_t size) const
static VArray from_func(const int64_t size, GetFunc get_func)
float face_area_calc(Span< float3 > vert_positions, Span< int > face_verts)
void node_register_type(bNodeType &ntype)
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare