(Using Blender 3.6.8)
Analysis
Trying to understand how the Density socket of the Distribute Points on Faces
node behaves, I wrote the following basic GeometryNodes graph, derived from the question "Noise texture to control scatter density in geo nodes":
1. The Switch
node connected to the By Face Corner input parameter is controlling whether the input ID is referring to a Face index, or to a Face Corner index.
2. If By Face Corner is False
, the Density is captured per Face. Consequently it is the same for all the Face Corners of the chosen face. For the demonstration, it is set high compared to unselected faces. The figure above is illustrating the expected behaviour for face 1 of a 2x2 Grid
.
3. If By Face Corner is True
, the Density seems to be defined per Face Corner, in agreement with the documentation of the Selection socket stating "The selection of which face corners should be considered for point distribution". The figure below is illustrating the expected behaviour for face corner 1 (i.e. bottom right corner of face 1). However, it is to notice that fewer points are distribute per unit area.
Problem (?)
If face corner 2 is selected, the output is:
I was expecting a triangular shape as for face corner 1, not a quad. It seems that odd face corner indices are producing triangular shapes, while even face corner indices are producing quadrangular shapes. Inserting a Triangulate
node just after the Grid
node shows that in this case, the result is the same whatever the face corner selected inside the same face.
Question
How to interpret Face Corner index manipulated by Distribute Points on Faces
node for quadrangular meshes ?
Resources
Follow-up
An other shape made with a Curve Circle
node with 7 vertices followed by a Fill Curve
node with Mode set to N-gons shows an unpredictable (?) behaviour:
1. The displayed number on the right is the selected Face Corner index.
2. The cube is put at the selected Face Corner position.
Changing the Distribution Method from Random to Poisson Disk does not seem to modify significantly the heterogeneity between face corners.