sghr / iGeo

iGeo: Computational Design and 3D Modeling Library for Processing
http://igeo.jp
GNU Lesser General Public License v3.0
146 stars 34 forks source link

About A(g)ntense #25

Open co-ord opened 4 years ago

co-ord commented 4 years ago

Dear @sghr San,

I am trying to understand the logic behind the motion of the particles in your A(g)ntense project. Based on your (remarkable) tutorials I see that your are probably using a mix of a curl field and an attractor field. However few things still remain unclear to me:

ss205 (2)

ss207

I would really appreciate if you could elaborate on these different steps.

Respectfully,

sghr commented 4 years ago

Thank you for the comment and sorry for the late response.

  1. Field composition As you mentioned, it uses IPointCurlField and IAttractor. I put 3 of curl field in one ICompoundField and other 3 of attractors in another compound field.

  2. Swarm agents on a plane The swarm agents are not actually flying in 3D. It's flying on XY plane but nodes points are plotted on 3D by the increment of sections and time and then diagonal tension lines and horizontal stick compression lines between nodes are added. The example of these are on this tutorial. http://igeo.jp/tutorial/58.html

  3. Smoothing edges Smoothing is done by first offsetting the original triangulated polyline out and then insert 2 points on each segment and then convert the polyline into degree 2 NURBS curve. The reason points being inside the edge is simply due to the adjustment of offset and location of the additional 2 insert points.

co-ord commented 4 years ago

Just seeing your answer now, thank you so much for the kind reply and explanations.