ts. Ideally, I'd like to set the exact number of points populating the region, ie 211 in GH = 211 visible in rhino.
(I was able to achieve the exact number of points using populate2d instead of sdivide, but could only get this to work with a simple rectangular region)
2) After I have exactly 211 points, I'd like to populate each of the points with a block made in rhino (for example: the stick figure man seen in the view)
(One idea is that I build a dummy geometry and replace later with my block in rhino. But how do I make this change universally over the 211 points?)
…
starting mesh. The geometry of the lines is then modified, through the formfinding routine.
In my second vb component, I need to build an array with 4 columns. Each row represent one face of the mesh (row 0 for face 0, row1 for face 1, ...) and each column represent the number of the edge element. If ABCD is the quad face, column 0 is the number of the edge AB, column 1 is BC, column 2 is CD and column 3 is DA.
So to build this array, I extract the edges of each face with FaceB component then Explode component, and I build the array by comparing each line coming from this to each line coming from MEdges component, with a 2 level nested loop. Here is where I am looking for an efficient way to compare 2 lines...
Is there an easier and faster way to build this array ?…
ame as the example: http://vimeo.com/25182853
But with my script, I canot align the center of gravity with the center of buoyancy longitudinally.
What I would like to do is to have 3 inputs:
- Heel angle (Degrees)
- Displacement (Tons)
- Center of gravity position of the ship (X, Y, Z)
And the script acts on the hull depth (like now) AND on the trim angle, so the GC and BC can be aliged longitudinally.
Anobody has an idea ?
Simon
…
m
-Area of blue line: min. 80% of the rectangel a x b
-Max. hight h of the top point: h,max = a
-Min. Volume between rectangel a x b and membrane: 500 m3
Can anyone help me?…
onsidered period.
Even if the end of July for the mediterranean climate is not the best period to perform an adaptive comfort analysis (it's just a pretest to define a LB model) I want to refine the Adaptive comfort Chart (AC) by changing the external air temperature data imported from the .epw file with that of monitored data as reported here below:
Where the monitored ext air temperature are in this form (green panel below):
I have used the comfortPar component to set the following parameters:
Adaptive chart as defined by EN 15251
90% of occupants comfortable
the prevailing outdoor temperature from a weighted running mean of the last week
fully conditioned space (even if it is not properly in line with AC as already discussed)
The question is this: the AC component could correctly apply the code below if there is only a list of external temperature data for a restricted period (without indication about the limits of this period) and not for an entire year?
else: #Calculate a running mean temperature. alpha = 0.8 divisor = 1 + alpha + math.pow(alpha,2) + math.pow(alpha,3) + math.pow(alpha,4) + math.pow(alpha,5) dividend = (sum(_prevailingOutdoorTemp[-24:-1] + [_prevailingOutdoorTemp[-1]])/24) + (alpha*(sum(_prevailingOutdoorTemp[-48:-24])/24)) + (math.pow(alpha,2)*(sum(_prevailingOutdoorTemp[-72:-48])/24)) + (math.pow(alpha,3)*(sum(_prevailingOutdoorTemp[-96:-72])/24)) + (math.pow(alpha,4)*(sum(_prevailingOutdoorTemp[-120:-96])/24)) + (math.pow(alpha,5)*(sum(_prevailingOutdoorTemp[-144:-120])/24)) startingTemp = dividend/divisor if startingTemp < 10: coldTimes.append(0) outdoorTemp = _prevailingOutdoorTemp[7:] startingMean = sum(outdoorTemp[:24])/24 dailyRunMeans = [startingTemp] dailyMeans = [startingMean] prevailTemp.extend(duplicateData([startingTemp], 24)) startHour = 24
…
product_info&cPath=17&products_id=68). It's a little light on sensors, so you may want to look through the sensors page on the adafruit website and choose a few that look interesting to you. If you have a little more money, here are two other kits which have many more components that will help round out your electronics supply. Here is a good one for around $85 (http://www.adafruit.com/index.php?main_page=product_info&cPath=17&products_id=170). And here's another great one from SparkFun for around $95 (http://www.sparkfun.com/products/10173). Of course, you can buy an Arduino Uno for around $29.99 and you can purchase each of these components separately and only choose the ones you need (and perhaps save some money)... but these are pretty good kits which include all the stuff you need to get started. Good luck.
-Andy…
ing; 95% of all the available tutorial material seems to be from an earlier build, like .7 or something.
Hexagonal Grid is a lot different with it's inputs and outputs changed a lot, and yeah I know Vector multiplication is now assumed by the ordinary one use serves all multiplication function but still generally this issue is the only confusing thing in the entire program which is otherwise quite clear. And it's not just these functions...there's quite a few I'm bumping up against and it's really eating into my study time to have to search and search for the substitute which is often the exact same function with a new name. I know there has to be change to have progress but...
I've tried to think my way around this and after a lot of work on various tutorials I've eventually forced things to work but I really wish things hadn't been thrown out with such brutal haste.
Thus I was wondering; is there an earlier build available that would allow me to go back to say, the Grasshopper Generative Modeling For Rhino tutorials? Link?
Sorry to bother you with this but it would really hasten the learning process..…
Added by Fabrizio123 at 11:02pm on January 24, 2011
y differences that are inconsequential to me, choosing one or the other appears to simply be a matter of a choice in programming style.
I've been active on this forum for a couple of months now. From the cross section of my interests, about 95% of the scripts I've encountered are written in VB rather than C#. My natural choice would be to learn C# because I took some C++ in college and I like the refined style. But I'm a little concerned about learning C# with respect to GH because most of the stuff here is in VB.
Is it just coincidence that Grasshopper users happen to come from other arenas that use VB more? Or, am I missing something that I should know before learning how to script for GH?
Also, once you learn one language well, is it fairly simple to read into and do minor hacking or tweaking in the other, since they are based on the same libraries?
My questions are fairly straight forward. I'm trusting that people in the GH community can keep their cool more than on most forums when a "this versus that" question is asked. Thanks for your understanding.…
Added by Gabe Krause at 12:22pm on February 4, 2011
, and made the below definition to try it out. (lots of components to draw a line, but I'm just trying to understand the equation)
I had been searching for advice on some geometry topics worth exploring for a class, and now I'm in the class and the teacher wants me to start by learning about splines in general (not nurbs). I just spent the day learning linear spline interpolation, then quadratic, then cubic. I didn't try working them by hand yet, but I'm getting the concepts. It seems cubic is the lowest degree where you can get C2 continuity, which makes it smooth. I read over parameterization and how that simplifies the number of equations. I read about space curves, and then the differences between Hermite, Catmull-Rom, and Cardinal spline, but then got tired and had a cocktail.
So I guess I'm looking for any direction or advice on how to understand parametric curves in 3d space, and how they can be defined (splines or otherwise). Thanks!!!
…