Blender V5.3
node_geo_distribute_points_on_faces.cc File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::nodes
namespace  blender::nodes::node_geo_distribute_points_on_faces_cc

Functions

static void blender::nodes::node_geo_distribute_points_on_faces_cc::node_declare (NodeDeclarationBuilder &b)
static void blender::nodes::node_geo_distribute_points_on_faces_cc::node_layout (ui::Layout &layout, bContext *, PointerRNA *ptr)
static void blender::nodes::node_geo_distribute_points_on_faces_cc::node_layout_ex (ui::Layout &layout, bContext *, PointerRNA *ptr)
static math::Quaternion blender::nodes::node_geo_distribute_points_on_faces_cc::normal_to_rotation (const float3 normal)
static OffsetIndices< int > blender::nodes::node_geo_distribute_points_on_faces_cc::calc_tri_point_offsets (const Mesh &mesh, const Span< float > densities, const int seed, Array< int > &r_count_data)
static OffsetIndices< int > blender::nodes::node_geo_distribute_points_on_faces_cc::calc_tri_point_offsets (const Mesh &mesh, const float density, const int seed, Array< int > &r_count_data)
static void blender::nodes::node_geo_distribute_points_on_faces_cc::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 blender::nodes::node_geo_distribute_points_on_faces_cc::update_elimination_mask_for_close_points (Span< float3 > positions, const float minimum_distance, MutableSpan< bool > elimination_mask)
static BLI_NOINLINE void blender::nodes::node_geo_distribute_points_on_faces_cc::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 blender::nodes::node_geo_distribute_points_on_faces_cc::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 blender::nodes::node_geo_distribute_points_on_faces_cc::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 blender::nodes::node_geo_distribute_points_on_faces_cc::propagate_attributes (const Mesh &mesh, const bke::AttributeFilter &filter, PointCloud &points, const Span< float3 > bary_coords, const Span< int > tri_indices)
static void blender::nodes::node_geo_distribute_points_on_faces_cc::compute_normal_outputs (const Mesh &mesh, const Span< float3 > bary_coords, const Span< int > tri_indices, MutableSpan< float3 > r_normals)
static void blender::nodes::node_geo_distribute_points_on_faces_cc::compute_legacy_normal_outputs (const Mesh &mesh, const Span< float3 > bary_coords, const Span< int > tri_indices, MutableSpan< float3 > r_normals)
static void blender::nodes::node_geo_distribute_points_on_faces_cc::compute_rotation_output (const Span< float3 > normals, MutableSpan< math::Quaternion > r_rotations)
static BLI_NOINLINE void blender::nodes::node_geo_distribute_points_on_faces_cc::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 > blender::nodes::node_geo_distribute_points_on_faces_cc::calc_full_density_factors_with_selection (const Mesh &mesh, const Field< float > &density_field, const Field< bool > &selection_field)
static PointCloud * blender::nodes::node_geo_distribute_points_on_faces_cc::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 * blender::nodes::node_geo_distribute_points_on_faces_cc::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 > blender::nodes::node_geo_distribute_points_on_faces_cc::extract_non_negative_density (GeoNodeExecParams &params, const UString input)
static void blender::nodes::node_geo_distribute_points_on_faces_cc::node_geo_exec (GeoNodeExecParams params)
static void blender::nodes::node_geo_distribute_points_on_faces_cc::node_register ()