25 .description(
"Path to a OBJ file");
43#ifdef WITH_IO_WAVEFRONT_OBJ
59 import_params.
reports = &reports;
64 auto instances = std::make_unique<bke::Instances>(geometries.
size());
71 auto cached_value = std::make_unique<LoadObjCache>();
75 cached_value->warnings.append_as(report);
81 for (
const NodeWarning &warning : cached_value->warnings) {
85 params.
set_output(
"Instances"_ustr, cached_value->geometry);
88 TIP_(
"Disabled, Blender was compiled without OBJ I/O"));
#define GEO_NODE_IMPORT_OBJ
#define BLI_SCOPED_DEFER(function_to_defer)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
constexpr void fill(const T &value) const
constexpr StringRefNull()
IndexRange index_range() const
void error_message_add(const NodeWarningType type, StringRef message) const
T extract_input(const UString identifier)
std::optional< std::string > ensure_absolute_path(StringRefNull path) const
void set_default_remaining_outputs()
void set_output(const UString identifier, T &&value)
std::optional< std::string > path_filter
void count_memory(MemoryCounter &counter) const override
Vector< NodeWarning > warnings
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)
char * STRNCPY(char(&dst)[N], const char *src)
void BKE_reports_free(ReportList *reports)
void BKE_reports_init(ReportList *reports, int flag)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
void OBJ_import_geometries(const OBJImportParams *import_params, Vector< bke::GeometrySet > &geometries)
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(std::unique_ptr< Instances > instances)