Hi everyone,
Vectors.gh (187.6 KB)
I’m working with a custom list of 3D points and vectors, where each point has an associated vector. The magnitude of the vectors is important, as it represents intensity — in areas where vectors are strong, there shouldn’t be streamlines starting or ending.
My goal: Generate accurate 3D streamlines (or isolines) that closely follow the vector directions and magnitudes. The result should visualize the flow field in space.
I’ve tried two workflows:
- Python script inside Grasshopper:
- Based on nearest neighbor search for each step.
- Follows the field but doesn’t feel accurate in direction or spacing (see image below).
- Magnitude handling is limited.
- SPM Vector Field Integration component:
- Inputs: points as sample positions, vectors as directions, and seed points.
- I’m not sure how to get good results in 3D – I only get short lines or incorrect paths.
- Can’t figure out how to make the streamlines follow magnitude properly or generate clean 3D isolines.
What I’m looking for:
- Help on how to structure the SPM input properly for this case.
- Advice on choosing/placing seed points to get better streamlines.
- Feedback or suggestions on improving the Python method, or if another plugin/tool would be more suitable.
Any help or suggestions would be super appreciated!
(Images of Python result and SPM result attached)