22 .description(
"Path to a PLY file");
30 const std::string path =
params.extract_input<std::string>(
"Path");
32 params.set_default_remaining_outputs();
37 STRNCPY(import_params.filepath, path.c_str());
38 import_params.import_attributes =
true;
43 import_params.reports = &reports;
49 switch (report->type) {
51 type = NodeWarningType::Error;
54 type = NodeWarningType::Info;
57 params.error_message_add(type,
TIP_(report->message));
63 params.error_message_add(NodeWarningType::Error,
64 TIP_(
"Disabled, Blender was compiled without PLY I/O"));
65 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 * PLY_import_mesh(const PLYImportParams *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