|
Blender V5.3
|
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_layout (ui::Layout &layout, bContext *, PointerRNA *ptr) |
| static void | node_layout_ex (ui::Layout &layout, bContext *, PointerRNA *ptr) |
| static math::Quaternion | normal_to_rotation (const float3 normal) |
| static OffsetIndices< int > | calc_tri_point_offsets (const Mesh &mesh, const Span< float > densities, const int seed, Array< int > &r_count_data) |
| static OffsetIndices< int > | calc_tri_point_offsets (const Mesh &mesh, const float density, const int seed, Array< int > &r_count_data) |
| static void | sample_bary_coords (const Mesh &mesh, const int seed, const OffsetIndices< int > points_by_tri, Vector< float3 > &r_positions, Vector< float3 > &r_bary_coords, Vector< int > &r_tri_indices) |
| static BLI_NOINLINE void | update_elimination_mask_for_close_points (Span< float3 > positions, const float minimum_distance, MutableSpan< bool > elimination_mask) |
| static BLI_NOINLINE void | update_elimination_mask_based_on_density_factors (const Mesh &mesh, const Span< float > density_factors, const Span< float3 > bary_coords, const Span< int > tri_indices, const MutableSpan< bool > elimination_mask) |
| static BLI_NOINLINE void | eliminate_points_based_on_mask (const Span< bool > elimination_mask, Vector< float3 > &positions, Vector< float3 > &bary_coords, Vector< int > &tri_indices) |
| static BLI_NOINLINE void | interpolate_attribute (const Mesh &mesh, const Span< float3 > bary_coords, const Span< int > tri_indices, const AttrDomain source_domain, const GVArray &source_data, GMutableSpan output_data) |
| static BLI_NOINLINE void | propagate_attributes (const Mesh &mesh, const bke::AttributeFilter &filter, PointCloud &points, const Span< float3 > bary_coords, const Span< int > tri_indices) |
| static void | compute_normal_outputs (const Mesh &mesh, const Span< float3 > bary_coords, const Span< int > tri_indices, MutableSpan< float3 > r_normals) |
| static void | compute_legacy_normal_outputs (const Mesh &mesh, const Span< float3 > bary_coords, const Span< int > tri_indices, MutableSpan< float3 > r_normals) |
| static void | compute_rotation_output (const Span< float3 > normals, MutableSpan< math::Quaternion > r_rotations) |
| static BLI_NOINLINE void | compute_attribute_outputs (const Mesh &mesh, PointCloud &points, const Span< float3 > bary_coords, const Span< int > tri_indices, const AttributeOutputs &attribute_outputs, const bool use_legacy_normal) |
| static Array< float > | calc_full_density_factors_with_selection (const Mesh &mesh, const Field< float > &density_field, const Field< bool > &selection_field) |
| static PointCloud * | create_points_random (const Mesh &mesh, const Field< bool > &selection_field, const Field< float > &density_field, const int seed, const AttributeOutputs &attribute_outputs, const bke::AttributeFilter &attribute_filter, const bool use_legacy_normal) |
| static PointCloud * | create_points_poisson_disk (const Mesh &mesh, const Field< bool > &selection_field, const Field< float > &density_factor_field, const float minimum_distance, const float density_max, const int seed, const AttributeOutputs &attribute_outputs, const bke::AttributeFilter &attribute_filter, const bool use_legacy_normal) |
| static Field< float > | extract_non_negative_density (GeoNodeExecParams ¶ms, const UString input) |
| static void | node_geo_exec (GeoNodeExecParams params) |
| static void | node_register () |
|
static |
Definition at line 491 of file node_geo_distribute_points_on_faces.cc.
References blender::fn::FieldEvaluator::add_with_destination(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), calc_full_density_factors_with_selection(), blender::fn::FieldEvaluator::evaluate(), and blender::fn::FieldEvaluator::set_selection().
Referenced by calc_full_density_factors_with_selection(), create_points_poisson_disk(), and create_points_random().
|
static |
Definition at line 139 of file node_geo_distribute_points_on_faces.cc.
References calc_tri_point_offsets(), blender::Span< T >::index_range(), blender::threading::parallel_for(), and blender::Span< T >::size().
|
static |
Definition at line 113 of file node_geo_distribute_points_on_faces.cc.
References calc_tri_point_offsets(), blender::Span< T >::index_range(), blender::threading::parallel_for(), and blender::Span< T >::size().
Referenced by calc_tri_point_offsets(), calc_tri_point_offsets(), create_points_poisson_disk(), and create_points_random().
|
static |
Definition at line 441 of file node_geo_distribute_points_on_faces.cc.
References BLI_NOINLINE, compute_attribute_outputs(), blender::Span< T >::index_range(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), and blender::threading::parallel_for().
Referenced by compute_attribute_outputs(), create_points_poisson_disk(), and create_points_random().
|
static |
Definition at line 405 of file node_geo_distribute_points_on_faces.cc.
References compute_legacy_normal_outputs(), blender::Span< T >::index_range(), and blender::normal_tri_v3().
Referenced by compute_legacy_normal_outputs().
|
static |
Definition at line 368 of file node_geo_distribute_points_on_faces.cc.
References compute_normal_outputs(), blender::bke::Corner, blender::bke::Face, blender::VArray< T >::from_span(), blender::Span< T >::index_range(), blender::threading::parallel_for(), and blender::bke::Point.
Referenced by compute_normal_outputs().
|
static |
Definition at line 431 of file node_geo_distribute_points_on_faces.cc.
References compute_rotation_output(), blender::Span< T >::index_range(), and blender::threading::parallel_for().
Referenced by compute_rotation_output().
|
static |
Definition at line 556 of file node_geo_distribute_points_on_faces.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), calc_full_density_factors_with_selection(), calc_tri_point_offsets(), compute_attribute_outputs(), create_points_poisson_disk(), blender::geometry::debug_randomize_point_order(), eliminate_points_based_on_mask(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::Point, blender::bke::pointcloud_new_no_attributes(), blender::Points, propagate_attributes(), sample_bary_coords(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::offset_indices::OffsetIndices< T >::total_size(), update_elimination_mask_based_on_density_factors(), and update_elimination_mask_for_close_points().
Referenced by create_points_poisson_disk(), and node_geo_exec().
|
static |
Definition at line 507 of file node_geo_distribute_points_on_faces.cc.
References blender::bke::MutableAttributeAccessor::add(), calc_full_density_factors_with_selection(), calc_tri_point_offsets(), compute_attribute_outputs(), create_points_random(), blender::VectorData< T, Allocator >::data, blender::geometry::debug_randomize_point_order(), blender::fn::Field< T >::depends_on_input(), blender::fn::evaluate_constant_field(), blender::implicit_sharing::info_for_mem_free(), blender::bke::Point, blender::bke::pointcloud_new_no_attributes(), blender::Points, propagate_attributes(), blender::Vector< T, InlineBufferCapacity, Allocator >::release(), sample_bary_coords(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by create_points_random(), and node_geo_exec().
|
static |
Definition at line 260 of file node_geo_distribute_points_on_faces.cc.
References BLI_NOINLINE, eliminate_points_based_on_mask(), blender::Vector< T, InlineBufferCapacity, Allocator >::remove_and_reorder(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by create_points_poisson_disk(), and eliminate_points_based_on_mask().
|
static |
Definition at line 612 of file node_geo_distribute_points_on_faces.cc.
References blender::nodes::GeoNodeExecParams::extract_input(), extract_non_negative_density(), blender::nodes::FieldOperation::from(), and blender::fn::multi_function::registry::lookup().
Referenced by extract_non_negative_density(), and node_geo_exec().
|
static |
Definition at line 274 of file node_geo_distribute_points_on_faces.cc.
References BLI_NOINLINE, interpolate_attribute(), blender::bke::mesh_surface_sample::sample_corner_attribute(), blender::bke::mesh_surface_sample::sample_face_attribute(), blender::bke::mesh_surface_sample::sample_point_attribute(), and blender::GMutableSpan::size().
Referenced by interpolate_attribute(), and propagate_attributes().
|
static |
Definition at line 32 of file node_geo_distribute_points_on_faces.cc.
References b, blender::nodes::SocketDeclaration::description, blender::GEO_NODE_POINT_DISTRIBUTE_POINTS_ON_FACES_POISSON, blender::GEO_NODE_POINT_DISTRIBUTE_POINTS_ON_FACES_RANDOM, blender::nodes::SocketDeclaration::hide_value, blender::nodes::SocketDeclaration::make_available(), blender::bke::GeometryComponent::Mesh, min, node, node_declare(), blender::PROP_DISTANCE, blender::PROP_FACTOR, and blender::nodes::decl::Float::subtype.
Referenced by node_declare(), and node_register().
|
static |
Definition at line 620 of file node_geo_distribute_points_on_faces.cc.
References create_points_poisson_disk(), create_points_random(), blender::bNode::custom1, blender::bNode::custom2, blender::bke::GeometryComponent::Edit, blender::nodes::GeoNodeExecParams::extract_input(), extract_non_negative_density(), blender::geometry::foreach_real_geometry(), blender::GEO_NODE_POINT_DISTRIBUTE_POINTS_ON_FACES_POISSON, blender::GEO_NODE_POINT_DISTRIBUTE_POINTS_ON_FACES_RANDOM, blender::nodes::GeoNodeExecParams::get_attribute_filter(), blender::bke::GeometrySet::get_mesh(), blender::nodes::GeoNodeExecParams::get_output_anonymous_attribute_id_if_needed(), blender::bke::GeometrySet::keep_only(), blender::nodes::GeoNodeExecParams::node(), node_geo_exec(), blender::bke::GeometryComponent::PointCloud, blender::bke::GeometrySet::replace_pointcloud(), blender::lazy_threading::send_hint(), and blender::nodes::GeoNodeExecParams::set_output().
Referenced by node_geo_exec(), and node_register().
|
static |
Definition at line 93 of file node_geo_distribute_points_on_faces.cc.
References node_layout(), blender::ui::Layout::prop(), and UI_ITEM_NONE.
Referenced by node_layout(), and node_register().
|
static |
Definition at line 98 of file node_geo_distribute_points_on_faces.cc.
References node_layout_ex(), blender::ui::Layout::prop(), and UI_ITEM_NONE.
Referenced by node_layout_ex(), and node_register().
|
static |
Definition at line 683 of file node_geo_distribute_points_on_faces.cc.
References blender::bke::NodeWidth::_180, blender::bke::bNodeType::declare, blender::bke::bNodeType::default_width, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::draw_buttons_ex, blender::bke::bNodeType::enum_name_legacy, GEO_NODE_DISTRIBUTE_POINTS_ON_FACES, blender::geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, node_declare(), node_geo_exec(), node_layout(), node_layout_ex(), node_register(), blender::bke::node_register_type(), blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().
|
static |
Use an arbitrary choice of axes for a usable rotation attribute directly out of this node.
Definition at line 106 of file node_geo_distribute_points_on_faces.cc.
References normal_to_rotation(), blender::math::normalize(), blender::OB_NEGZ, blender::OB_POSY, and blender::vec_to_quat().
Referenced by normal_to_rotation().
|
static |
Definition at line 316 of file node_geo_distribute_points_on_faces.cc.
References blender::bke::MutableAttributeAccessor::add(), BLI_NOINLINE, blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, blender::bke::GAttributeReader::domain, ELEM, blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), blender::bke::subdiv::init(), interpolate_attribute(), blender::bke::AttributeAccessor::is_builtin(), blender::bke::AttributeIter::is_builtin, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, propagate_attributes(), blender::CommonVArrayInfo::Single, blender::bke::GSpanAttributeWriter::span, blender::CommonVArrayInfo::type, blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by create_points_poisson_disk(), create_points_random(), and propagate_attributes().
|
static |
Definition at line 164 of file node_geo_distribute_points_on_faces.cc.
References blender::Span< T >::index_range(), blender::threading::parallel_for(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), sample_bary_coords(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by create_points_poisson_disk(), create_points_random(), and sample_bary_coords().
|
static |
Definition at line 230 of file node_geo_distribute_points_on_faces.cc.
References bary_coord, BLI_NOINLINE, hash, blender::noise::hash_float_to_float(), blender::Span< T >::index_range(), and update_elimination_mask_based_on_density_factors().
Referenced by create_points_poisson_disk(), and update_elimination_mask_based_on_density_factors().
|
static |
Definition at line 207 of file node_geo_distribute_points_on_faces.cc.
References BLI_NOINLINE, blender::KDTreeNew< T >::foreach_in_radius(), blender::Span< T >::index_range(), and update_elimination_mask_for_close_points().
Referenced by create_points_poisson_disk(), and update_elimination_mask_for_close_points().