23 .description(
"Path to a STL file");
31 const std::string path =
params.extract_input<std::string>(
"Path");
33 params.set_default_remaining_outputs();
50 import_params.
reports = &reports;
56 switch (report->type) {
58 type = NodeWarningType::Error;
61 type = NodeWarningType::Info;
64 params.error_message_add(type,
TIP_(report->message));
70 params.error_message_add(NodeWarningType::Error,
71 TIP_(
"Disabled, Blender was compiled without STL I/O"));
72 params.set_default_remaining_outputs();
void BKE_reports_free(ReportList *reports)
void BKE_reports_init(ReportList *reports, int flag)
#define LISTBASE_FOREACH(type, var, list)
#define BLI_SCOPED_DEFER(function_to_defer)
#define STRNCPY(dst, src)
Mesh * STL_import_mesh(const STLImportParams *import_params)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
void search_link_ops_for_import_node(GatherLinkSearchOpParams ¶ms)
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
static GeometrySet from_mesh(Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
NodeGeometryExecFunction geometry_node_execute
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare