Populate Mesh (Random points on mesh)¶
Functionality¶
The node distributes points on given mesh.
Volume:
Category¶
Spatial -> Populate Mesh
Inputs¶
Verts - vertices of given mesh(es)
Faces - faces of given mesh(es)
Face weight (optional, one value per face of mesh) - any value per face, the less value the less number of vertices generates on current face. Values lessen then 0 will be changed to 0. This input can be used as mask. Just assign 0 values to faces on which there is no need in generation points.
Number (one value per mesh) - number of vertices which should be distributed on given mesh
Seed (one value per mesh) - seed for generation random vertices
Parameters¶
This node has the following parameters:
Mode. The available options are:
Surface. Generate points on the surface of the mesh.
Volume. Generate points inside the volume of the mesh. The mesh is expected to represent a closed volume in this case. Recomend use [Modifiers->Modifier Change-> Recalculate Normals] before node.
Edges. Generate points on the edges of the mesh.
The default option is Surface.
Proportional. This parameter is available only when Mode parameter is set to Surface. If checked, then the number of points on each face will be proportional to the area of the face (and to the weight provided in the Face weight input). If not checked, then the number of points on each face will be only defined by Face weight input. Checked by default.
All Triangles. Enable if the input mesh is made only of triangles (makes node faster). Available in Surfaces and Volume modes (in N-Panel)
Safe Check. Disabling it will make node faster but polygon indices referring to unexisting points will crash Blender. Only available in Volume Mode. (in N-Panel)
Implementation. Offers two implementations: * Numpy. Faster * Mathutils. Old implementation. Slower. Only available in Surface Mode (in N-Panel)
Output Numpy. Output NumPy arrays in stead of regular list (makes node faster) Only available in Surface and Edges modes (in N-Panel)
Outputs¶
Verts - random vertices on mesh
Face / Edges index - indexes of faces/edges to which random vertices lays. This input is available only when Mode parameter is set to Surface or Edges.
Examples¶
Generator-> Cricket
Viz-> Viewer Draw
Normals of faces of regular solid, located on random points
Generator-> Line
Generator->Generatots Extended-> Regular Solid
Analyzers-> Origins
List->List Struct-> List Item
Viz-> Viewer Draw
Text-> Stethoscope
Distribution of points on sphere surface according distance to floating point
Generator-> IcoSphere
Generator-> Segment
Modifiers->Modifier Change-> Polygon Boom
Analyzers-> Nearest Point on Mesh
Number-> Map Range
Number-> List Input
Vector-> Vector Polar Input
List->List Struct-> List Levels
List->List Struct-> List Sort
List->List Struct-> List Item
List->List Struct-> List First & Last
Viz-> Viewer Draw
Text-> Stethoscope
Voronoi from unevenly distributed points on faces
Generator-> Plane
List->List Main-> List Length
Number-> Random Num Gen
Matrix-> Matrix In
Transform-> Noise Displace
Spacial-> Voronoi 2D
Viz-> Viewer Draw