like this video, this is a test of the traction force in Kangaroo, this time in 3d.
Inspired a bit by this game
I decided to try out a simple 4 wheel drive
1D when it comes to a location on a surface or a curve. If a 3D point shares a location on a surface we can represent it by means of the U and V co-ordinates of that surface.
In your example above the 4 surface corners are {2,2.5,0}, {17, 2.5, 0}, {17, 19, 0} and {2,19,0}. Unless you reparametrise the domains they will typically take the same domains as the curves that constructed them in this particular case the lengths (but these curves are only that length at the edges and only when you created the surface).
So the U domain is 0 to 15 (17-2) and the V domain is 0 to 16.5 (19-2.5). Even if you transformed the surface to another location or another shape these domains will not change and therefore the UV co-ordinate will not change. If you reparemterise the surface then the domains are set to 0 and 1 in both directions and this might be easier to work with. You can think of them as a percentage then, a UV location of {0.5, 0.5} of a reparameterised surface will always be in the middle of the 2D space.
All points on a surface in 2D have a 3D space co-ordinate as well, but not all 3D points have a 2D co-ordinate. This is why we need to use the Surface CP to get a UV value to evaluate a surface at a given point.
Incidently the 1D co-ordinate of a curve is represented by the parameter t
…
one can see how the drainage paths generated from a series of fixed sources shift to find the slopes and valleys in the terrain.
For each source point, the algorithm:
1. finds the downward sloping direction
2. moves in that direction a designated distance
3. finds the closest point on the surface
4. if this new point is not higher or too close, then
5. it repeats from the new point.…
n cells and square cells.3. the tringle cells to be as holles in between the extrude shapes. (in the tringle cells I don't want to contain a 3d shape).4. The extrude of Hexagon and square should be gradual: from 2d shape on the grid, to 3d shape (by extruding and atrractors point)5. than to manipulate the grid by gradual enlarging and reducing it, etc. Therfore, as start I would like to create the grid when each shape cells will be sorted in separate array. Than to flow the grid along a 3d surface.
(all above I need to create in grasshopper).
THANK YOU !Niarch…
geometric components (same dimension what change is just material properties here simplified with different colours)
2) Create a 3d grid where each point is the centroid of my octahedron.
3) Evaluate grid points distance from a given surface (as shown in pic 2 - note that grid at moment is just a 3d rectangular grid so it does not work)
4) populate the point cloud with my geometry components according to the insertion point (centroid) distance from a given surface(dividing domain in as many intervals as needed).
The components are regular polyhedra so I think it won't be too difficult to create a 3d grid which will fit the scale of these - having in mind the points are centroids.
What I am struggling more is how to organize the code for point 4. Is there any useful VB.net classes I can use for this case? Have you some kick-start ideas or suggest similar code I can take as example to develop mine? What kind of nested loop is more suitable for this case?
As a novice to VB.net any advice is greatly appreciated! Merry Xmas
Jason…