[Bf-blender-cvs] [dca08212483] temp-geometry-nodes-distribute-points-cleanup: Cleanup: Remove unused function

Dalai Felinto noreply at git.blender.org
Fri Dec 11 02:00:49 CET 2020


Commit: dca08212483d52052ac74ee2fb7a9f546fe8f47f
Author: Dalai Felinto
Date:   Fri Dec 11 00:47:12 2020 +0100
Branches: temp-geometry-nodes-distribute-points-cleanup
https://developer.blender.org/rBdca08212483d52052ac74ee2fb7a9f546fe8f47f

Cleanup: Remove unused function

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc

===================================================================

diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc b/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
index 36ef1bf6518..332374e0261 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
@@ -54,16 +54,6 @@ static void tile_point(std::vector<float3> *tiled_points,
   }
 }
 
-/**
- * The poisson disk radius is half the expected distance for each point.
- */
-static float maximum_poisson_disk_radius(const size_t sample_count, const float3 boundbox)
-{
-  float domain_size = std::pow(boundbox[0], 3);
-  float sample_area = domain_size / sample_count;
-  return std::pow(sample_area / (4.0f * std::sqrt(2.0f)), 1.0f / 3.0f);
-}
-
 /**
  * Returns the weight the point gets based on the distance to another point.
  */
@@ -246,10 +236,6 @@ void poisson_disk_point_elimination(Vector<float3> const *input_points,
                                     float maximum_density,
                                     float3 boundbox)
 {
-  if (maximum_density == 0) {
-    maximum_density = FLT_MAX;
-  }
-
   weighted_sample_elimination(input_points, output_points, maximum_density, boundbox);
 
   /* Re-order the points for progressive sampling. */



More information about the Bf-blender-cvs mailing list