19 .
description(
"Mesh whose inner volume is converted to a signed distance field grid");
29 .
description(
"Width of the active voxel surface, in voxels");
30 b.add_output<
decl::Float>(
"SDF Grid"_ustr).structure_type(StructureType::Grid);
43 mesh->vert_positions(),
52 params.
set_output(
"SDF Grid"_ustr, std::move(grid));
63 ntype.
ui_name =
"Mesh to SDF Grid";
64 ntype.
ui_description =
"Create a signed distance volume grid from a mesh";
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_MESH_TO_SDF_GRID
#define NOD_REGISTER_NODE(REGISTER_FUNC)
T extract_input(const UString identifier)
void set_default_remaining_outputs()
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
void node_geo_exec_with_missing_openvdb(GeoNodeExecParams ¶ms)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
const Mesh * get_mesh() const
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare