perations) my branches don't seem to be in the same order, that means that i would need to loft {0} with {1}, {1} with {2},...{8} with {0}!is there a way how i can reorder the branches in a way that i can finally loft as i described in the beginning:
{0} with {0}
{1] with {1}
...
{9] with {9}
thanks in advance!…
but you could use some combination of components to control the length of the '1' run and value of the repetition.
Inserting lists into other lists is in fact the much more complex. Grasshopper vanilla only provides a component for inserting individual items into a list (although many items can be inserted at once, making the insertion calculation index maths a lot easier).
To do it right you'll have to repeat the '1', '2', '3' as many times as you need to insert it, and then, generate the matching list of insertion indices '3', '3', '3', '7, '7', '7', ... This will involve a fair amount of Series or Duplicate, or Stack, or whatever...…
surface and subdivide it with "domain2" and "surface box"4) use "morph box" to panelize the prism on your surface in this way:4.1) for each subdivision row, alternate base element and its rotated copy (e.g. pattern: 1212121212)4.2) for the odd rows use a shifted pattern (212121212) this way you'll have a perfect match of the prism edges in both direction5) join all these meshes 6) weaverbird the new mesh (wbLoop 1;1) 7) use kangaroo to obtain a minimal surface from the original mesh8) weaverbird again to obtain a smoother form9) bake …
ng (It's a bit similar to the Knapsack problem):
I have a Variable --> XandI Have fix numbers (can we call "pieces") 9,12,15,18
I'd like to reach the X, with the summing of these numbers and using the minimum pieces ,it can't be lower than X, but it can be higher, maximum with 3.After this it has to found the most optimal combination which mostly use the same pieces
E.G.
X=98
The wrong solution is like = 1pcs of 18 = 9pcs of 9
Sum of pieces are 10
OR
= 3pcs of 18 = 1pcs of 15 = 1pcs of 12 = 2pcs of 9
Sum of pieces are 7
The right solution in this case = 5pcs of 18 = 1pcs of 9
(5*18)+(1*9)=99 it's good beacuse it's over with maximum 3 and uses the minimum pieces
Then it sends to a list like18 : 5pcs15 : 0pcs12 : 0pcs9 : 1pcsCan somebody help me ? Or is it possible to make this ?
Thank you…
Added by Petrik Kollár at 1:09am on November 10, 2017
Dimitris,
You need to set your occupancy from 0 to 9 (say it is 1), then from 9:01 (or 10) to 17:59 set it to 0 and from 18 to 24 set it back to 1 again. This is how you set schedules in E+.
-A.
g a nurbs curve through a set of N-dimensional points is not the same as cubic interpolation of a linear data-set.
It's certainly possible to fit a nurbs curve through a set of point with a one-x-one-y constraint, but Rhino does not have such a fitter in the SDK, so it needs to be written from scratch.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
c curves (open curves and closed curves that have a kink at the seam) that the first few and last few knot values are identical. In fact, you need a few identical values at the start and end to ensure the curve reaches all the way to the first and last control-point. This is called "clamping". The number of repeated (or "multiplicity" or "valence") knots must be equal to the degree. So with the above example of a degree 3 curve with 7 control-points, a valid knot vector would be:
0;0;0;1;2;3;4;4;4
9 values, with the first three and last three being identical. You are never allowed to repeat the same knot value more often than the degree, and you are never allowed to decrease the values either.
Weights are single numbers attached to individual control-points. Weights are most often used to create Conic Section curves (arcs, ellipses, parabolas, hyperbolas) and these are always degree=2. You can also assign weights to freeform curves if you want of course. When you choose to do so, you must supply an equal number of weights and control-points. Furthermore, weights are relative only to each other. If you assign a weight value of 1.0 to all control-points, you get the exact same curve as you assign a weight of 4.9 to all control-points.
The difference between "Curve control points" in NurbCrv and "Control point count" in the Knot component is that one actually represents a list of points, whereas the other is merely an integer representing how long that list is.
In order to create a valid knot vector, all I need to know is the degree, the number of control-points involved and whether or not the curve is supposed to be periodic or not (periodic curves are a special case of nurbs curve, best to stay away until you're comfortable with the regular nurbs curve type). It doesn't matter where the control-points are, I only care about how many there are.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 3:05pm on February 3, 2012