16 .description(
"The surface area of each of the mesh's faces");
25 auto area_fn = [positions, faces, corner_verts](
const int i) ->
float {
29 return mesh.attributes().adapt_domain<
float>(
46 static constexpr int8_t id = 0;
52 return AttrDomain::Face;
71 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)
constexpr Span slice(int64_t start, 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)
StructureType structure_type
float face_area_calc(Span< float3 > vert_positions, Span< int > face_verts)
void node_register_type(bNodeType &ntype)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare