22 .structure_type(StructureType::Field)
23 .description(
"The positions of the new points");
28 .structure_type(StructureType::Field)
29 .description(
"The radii of the new points");
55 if (id_field_input ==
nullptr && index_field_input ==
nullptr) {
82 "radius", AttrDomain::Point);
101 ntype.
ui_description =
"Generate a point cloud with positions and radii defined by fields";
#define NODE_CLASS_GEOMETRY
General operations for point clouds.
#define NOD_REGISTER_NODE(REGISTER_FUNC)
bool add(const StringRef name, const AttrDomain domain, const AttrType data_type, const AttributeInit &initializer)
GAttributeWriter lookup_or_add_for_write(StringRef name, AttrDomain domain, AttrType data_type, const AttributeInit &initializer=AttributeInitDefaultValue())
int add_with_destination(GField field, GVMutableArray dst)
bool depends_on_input() const
T extract_input(const UString identifier)
void set_default_remaining_outputs()
void set_output(const UString identifier, T &&value)
PointsFieldContext(const int points_num)
GVArray get_varray_for_input(const FieldInput &field_input, const IndexMask &mask, ResourceScope &) const override
int64_t points_num() const
void node_register_type(bNodeType &ntype)
void evaluate_constant_field(const GField &field, void *r_value)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
PointCloud * BKE_pointcloud_new_nomain(PointCloudType type, int totpoint)
VecBase< float, 3 > float3
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
VMutableArray< T > varray
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare
static GeometrySet from_pointcloud(PointCloud *pointcloud, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)