And this is what you want (I think):
The only difference here is I have grafted the inputs to the Mesh Color component. When you first start dealing with grafting/data trees/branches it can seem kind of tricky, but it's not too bad once you get the hang of it.
In this case, you have a list of objects, and a list of colors. You know that you want mesh 1 to match up with color 1, mesh 2 with color 2, etc.
But GH doesn't necessarily know this. In general, if you have two lists and they both have exactly the same number of items, and they are both in a flat list, things will work out.
If that's not the case, you can use the graft component (or right click and input or output and select graft). It will take each individual item in the list and give it it's own "Path." It's basically an ID that usually looks something like {0} or {0;0;0} or similar.
So you graft the first list of 5 meshes, and mesh #1 now has an ID of {0}, mesh #2 has an ID of {1} and so on.
Then you graft the color list. Color #1 has an ID of {0}, color #2 has {1} and so on.
Now when those two lists go into the Mesh Color component, it knows exactly which meshes should go with which color.
I think what was happening in my first photo (which is similar to what is happening to you) is that the Mesh Color component sees 5 meshes (that each have some number of faces (triangles), lets say 12. And it sees 5 colors. It looks to me that it thinks we want to have all 5 colors apply to each mesh, so it says - Mesh #1 face 1 of 12, you get color 1. Mesh #1 face 2 of 12, you get color 2. etc. and it does this for each mesh cube.
This explanation is all a bit simplified but hopefully it helps.
Best,
Brian
…
nput parameter and then set the named values on the second?
protected override void BeforeSolveInstance() { Param_Integer param0 = Params.Input[0] as Param_Integer; Param_Integer param1 = Params.Input[1] as Param_Integer; param1.ClearNamedValues();
GH_Structure<GH_Integer> data = param0.VolatileData as GH_Structure<GH_Integer>; if (data.IsEmpty) return; foreach (GH_Integer value in data.AllData(true)) { switch (value.Value) { case 1: param1.AddNamedValue("First option for 1", 11); param1.AddNamedValue("Second option for 1", 12); param1.AddNamedValue("Third option for 1", 13); break;
case 2: param1.AddNamedValue("First option for 2", 21); param1.AddNamedValue("Second option for 2", 22); param1.AddNamedValue("Third option for 2", 23); break;
case 3: param1.AddNamedValue("First option for 3", 31); param1.AddNamedValue("Second option for 3", 32); param1.AddNamedValue("Third option for 3", 33); break; } return; } }
--
David Rutten
david@mcneel.com…
Added by David Rutten at 1:56am on December 18, 2013
s joined.
Specifically, I have a set of points as an output of a HexGrid (say, 4 points for a 2 x 2 grid), which I then move (4 new points) and then rotate (4 new points) and then rotate again (4 new points). I use the outputs of the move and rotate as input vertices in the PolyLine (12 points). What I would like is for the first point from the move to join to the first point of the first rotate and the first point of the second rotate, etc (4 poly lines of 3 points each); instead the 12 points are joined across each other in an order I can't define.
I was following this tutorial (https://www.youtube.com/watch?v=8TFrz2eWyB0) and found my program working differently than the demo at ~18 min in.
Thanks for the help! I'd be happy to provide more context if the above is unclear.…
1.1 square meters). So, when you open the 1.1 square meter operable area in the middle of winter, the zone cools down so fast that you instantly shut the windows in the next timestep and start heating. In other words, you simulation does not have simultaneity heating and ventilation but it is unstable to the point that it is opening/closing the window every 10 minutes and turning the heating system on/off every 10 minutes.
There are a number of different ways to fix this:
1) You can still have the windows open in winter but you use an openingAreaFractionalSched_ to ensure that the windows only open a small crack in the winter months so that you don't overcool the zone. So you could make a CSV schedule that has a 1 value for all summer months but maybe only a 0.25 for all winter months.
2) Alternatively, you can add in a minOutdoorTempForNatVent_ that ensures that natural ventilation never happens when the outdoor temperature is very low. Typically, occupants will not open windows when outdoor temperatures are below 12 C and plugging in 12 to this input might help. I would say that you could go up to a 15C minOutdoorTempForNatVent_, given that your climate is fairly warm.
3) You could increase the timestep of your simulation so that the windows are only opening for 4 or 5 minutes instead of 10 (on the Energy Simulation Par component). While this might fix the issue, it's probably not realistically how a building would behave in real life.
3) You could reduce the operable area of your window. As I suggested earlier, it's a bit oversized for such a small zone. Alternatively, if your zone were deeper, the operable area would be more reasonable in relation to the zone volume.
-Chris…
ation = "Sydney",
OpenDates = new DateTime[] { new DateTime(2003, 12, 10), new DateTime(2003, 10, 3) }
};
// And here is where the magic begins...
// Store the object - no conversion required.
db.Store(cinema);
(Eloquera Help)
this simplicity and the fact that eloquera is one of the fastest solutions where reasons i chose this database.…
specific sizes (3, 6, 12, 18) that creates NO overlapping circles - what would I need to do?
Also Is it also possible to add some control points at specific points? (In the corners)
I have attached a sketch. I am thinking that these points will be structure between floors, and therefore I will always need points in the corners.
I hope you can help!…
userformat="{"2":513,"3":{"1":0},"12":0}">Hello, my name is Tommy. Today I have come in front of you to share a very important platform related to online marketing. This is a forum posting http://nsdigiworld.com/forum-posting/ Platform If you want to know any topic related to this platform then our link is attached. I hope all your questions will be found here. Thank you…