30 .description(
"Width of the gradient inside of the mesh");
39 if (!mesh || mesh->faces_num == 0) {
40 params.set_default_remaining_outputs();
44 mesh->vert_positions(),
47 params.extract_input<
float>(
"Voxel Size"),
48 params.extract_input<
float>(
"Gradient Width"),
49 params.extract_input<
float>(
"Density"));
50 params.set_output(
"Density Grid", std::move(grid));
#define NODE_STORAGE_FUNCS(StorageT)
#define NODE_CLASS_GEOMETRY
#define NOD_REGISTER_NODE(REGISTER_FUNC)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
void search_link_ops_for_volume_grid_node(GatherLinkSearchOpParams ¶ms)
void node_geo_exec_with_missing_openvdb(GeoNodeExecParams ¶ms)
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
const Mesh * get_mesh() const
NodeGeometryExecFunction geometry_node_execute
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare