25 .description(
"Path to a OBJ file");
43#ifdef WITH_IO_WAVEFRONT_OBJ
44 const std::optional<std::string> path =
params.ensure_absolute_path(
45 params.extract_input<std::string>(
"Path"));
47 params.set_default_remaining_outputs();
59 import_params.
reports = &reports;
70 auto cached_value = std::make_unique<LoadObjCache>();
74 cached_value->warnings.append_as(*report);
84 params.set_output(
"Instances", cached_value->geometry);
87 TIP_(
"Disabled, Blender was compiled without OBJ I/O"));
88 params.set_default_remaining_outputs();
#define GEO_NODE_IMPORT_OBJ
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)
char * STRNCPY(char(&dst)[N], const char *src)
void OBJ_import_geometries(const OBJImportParams *import_params, blender::Vector< blender::bke::GeometrySet > &geometries)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
int add_reference(const InstanceReference &reference)
void add_instance(int instance_handle, const float4x4 &transform)
std::optional< std::string > path_filter
Vector< geo_eval_log::NodeWarning > warnings
void count_memory(MemoryCounter &counter) const override
void node_register_type(bNodeType &ntype)
std::shared_ptr< const T > get_loaded(const GenericKey &loader_key, Span< StringRefNull > file_paths, FunctionRef< std::unique_ptr< T >()> load_fn)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
static MatBase identity()
void count_memory(MemoryCounter &memory) const
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare
static GeometrySet from_instances(Instances *instances, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)