43 tree_logger->node_warnings.append(
44 *tree_logger->allocator,
45 {node_.identifier, {type, tree_logger->allocator->copy_string(message)}});
53 tree_logger->used_named_attributes.append(
54 *tree_logger->allocator,
55 {node_.identifier, tree_logger->allocator->copy_string(attribute_name), usage});
64 if (geo_decl ==
nullptr) {
72 if (only_realized_data) {
75 TIP_(
"Instances in input geometry are ignored"));
81 TIP_(
"Realized data in input geometry is ignored"));
94 if (supported_types.
contains(type)) {
97 std::string message =
RPT_(
"Input geometry has unsupported type: ");
101 if (
mesh->verts_num == 0) {
105 message +=
RPT_(
"Mesh");
110 if (pointcloud->totpoint == 0) {
114 message +=
RPT_(
"Point Cloud");
127 if (
curves->geometry.point_num == 0) {
131 message +=
RPT_(
"Curve");
143 message +=
RPT_(
"Grease Pencil");
168void GeoNodeExecParams::check_input_access(
const UString identifier)
const
171 for (
const bNodeSocket *socket : node_.input_sockets()) {
172 if (socket->identifier_ustr() == identifier) {
173 found_socket = socket;
178 if (found_socket ==
nullptr) {
179 std::cout <<
"Did not find an input socket with the identifier '" << identifier.
ref()
181 std::cout <<
"Possible identifiers are: ";
182 for (
const bNodeSocket *socket : node_.input_sockets()) {
183 if (socket->is_available()) {
184 std::cout <<
"'" << socket->identifier <<
"', ";
191 std::cout <<
"The socket corresponding to the identifier '" << identifier.
ref()
192 <<
"' is disabled.\n";
197void GeoNodeExecParams::check_output_access(
const UString identifier)
const
199 const bNodeSocket *found_socket =
nullptr;
200 for (
const bNodeSocket *socket : node_.output_sockets()) {
201 if (socket->identifier == identifier) {
202 found_socket = socket;
207 if (found_socket ==
nullptr) {
208 std::cout <<
"Did not find an output socket with the identifier '" << identifier.ref()
210 std::cout <<
"Possible identifiers are: ";
211 for (
const bNodeSocket *socket : node_.output_sockets()) {
212 if (socket->is_available()) {
213 std::cout <<
"'" << socket->identifier <<
"', ";
220 std::cout <<
"The socket corresponding to the identifier '" << identifier.ref()
221 <<
"' is disabled.\n";
224 else if (params_.output_was_set(this->get_output_index(identifier))) {
225 std::cout <<
"The identifier '" << identifier.ref() <<
"' has been set already.\n";
238 if (set_.names->contains(attribute_name)) {
253 const bNodeTree &tree = node_.owner_tree();
255 if (!base_path || base_path[0] ==
'\0') {
261 return absolute_path;
Low-level operations for curves.
#define BLT_I18NCONTEXT_ID_ID
#define CTX_RPT_(context, msgid)
#define ID_BLEND_PATH(_bmain, _id)
#define BLI_assert_unreachable()
#define UNUSED_VARS_NDEBUG(...)
constexpr bool is_empty() const
constexpr bool contains(const T &value) const
constexpr const char * c_str() const
StringRefNull ref() const
constexpr bool is_empty() const
void error_message_add(const NodeWarningType type, StringRef message) const
eval_log::NodeTreeLogger * get_local_tree_logger() const
void check_output_geometry_set(const GeometrySet &geometry_set) const
void check_input_geometry_set(UString identifier, const GeometrySet &geometry_set) const
std::optional< std::string > ensure_absolute_path(StringRefNull path) const
void used_named_attribute(StringRef attribute_name, NamedAttributeUsage usage)
void set_default_remaining_outputs()
const Depsgraph * depsgraph() const
Result filter(StringRef attribute_name) const override
bool only_realized_data() const
Span< bke::GeometryComponent::Type > supported_types() const
bool only_instances() const
bool attribute_name_is_anonymous(const StringRef name)
void set_default_remaining_node_outputs(lf::Params ¶ms, const bNode &node)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
char * STRNCPY(char(&dst)[N], const char *src)
bool BLI_path_abs(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1
Main * DEG_get_bmain(const Depsgraph *graph)
bool BLI_path_is_rel(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
const CurvesEditHints * get_curve_edit_hints() const
const GreasePencil * get_grease_pencil() const
bool has_realized_data() const
const Curves * get_curves() const
bool has_instances() const
const PointCloud * get_pointcloud() const
const Mesh * get_mesh() const
Vector< GeometryComponent::Type > gather_component_types(bool include_instances, bool ignore_empty) const