on excel (leaving 0,0 cell blank and also making sure there are no commas in the names ) Also let's call the names "ID"
2 - For the weight, use numbers ranging from 1 - 10 where 10 is the highest dependancy.
3 - Save the file as a Unicode CSV from excel
4 - Create another file on excel that has the attributes of your spaces, with the names of your spaces under the header ID (let's start with a simple "area" and "SNo" attribute but you could add more features for sorting and manipulating your data)
5 - Open Gephi and further open your matrix CSV file
5 - Import it as "," (comma delimited file) and make sure you check "matrix" for the data type
6 - Ensure the import is nondirectional as well (or Gephi adds silly arrows)
7 - Not gonna go into the gephi bit too much but select a force atlas layout and set the force to something high 1000 or 10000 depending on the size of the data and the attraction to a 1000th of that 1 or 10. Go to the data lab and import your excel with the attributes and append to your existing datasheet.
8 - Set the node attributes to use the area for the node size and color scheme to SNo
9 - Play around with all the layout options and finally go to your preview. Once you're happy with it, export it to a GDF graph file.
the GDF now has the coordinates of the circles and the diameters. as well as the edge connections.
I've written a very amateur script that converts this to GH geometry (below)
Hope this helps someone out, I'm still figuring out the gephi streaming API but I've only started with python about a month ago so might take a while to get there.
You can use the second half of the GDF files to also create dependency chord diagrams online as shown in the third image.
https://flourish.studio/2018/07/25/how-to-make-a-chord-diagram/
Cheers,
Sanjay
…
edefining the axis variables, logarithmic scales, display thresholds, better marking management - or at least add contrast!
Hey Fred,
thanks for the feedback! This is a basic version, and personally I used a custom component to read and parse the history files from the canvas to be able to e.g. scroll through generations and solutions or display more solutions at once (via pathes, mostly requires modification of the initial setup) ...
but you are right. I would love to bring the solution's navigation directly into the rhino viewport but I think that would be a major hack .. unless you can give me a hint how to do that. the displaying and user-preference-handling are besides a re-entrant history, some more algorithms and parallelization the next things to tackle, but display is definitely one of the easiest, so ... soon! work will begin in january i guess, since the project then starts i hope - but it will start for sure.
best
r
…
eds 14 sec to calculate, wich is really long.
Here is my script, where ddf is the list of list, and elts a list of Point3d.
For i = 0 To elts.Count - 1 For j = 0 To ddf.Count - 1 If elts(i).From = ddf(j)(0) And elts(i).To = ddf(j)(1) Then tabElts(i, 2) = ddf(j)(2) ddf.RemoveAt(j) Exit For End If Next Next
If I decompose my list of list into a list of point3d and a list of integers, the calculation time drastically decrease (0.27 sec), even if the number of loops is 2.5 times higher (724 500).
I would prefer to use the first script, as it uses less loops, but it is too slow (my test concerns a mesh with 441 points, but I am going to use this for much bigger meshes). I don't understand why. Is it to be known that the use of list of list of different types of objects is very time consumer ? Did I make a mistake in my script ?
Thanks for your help…
y using the Honeybee_Update Honeybee component.
The video below (best viewed in full-screen mode) provides an idea of what these components are capable of being used for:
The video below shows how these components can be used in an existing Honeybee project (for additional links please open this video in youtube):
I have uploaded two examples as Hydra files that show how these components can be used for grid-point and image-based simulations:
Example1 : Grid Point Calculations
Example2: Image based simulation
Finally, a more esoteric application is demonstrated in this video:
These components are still in the beta-testing stage. Some of the limitations of the components are:
1. Only Type C photometry IES files are supported at present.
2. Rhino is likely to get sluggish if there are too many luminaires (i.e. light fixtures) present in a scene.
3. Due to the spectral limitations of the ray-tracing software (RADIANCE), simulations involving color mixing might not be physically realizable.
Additional details about photometric and spectral calculations are probably an overkill for this forum. However, I'd be glad to answer any related questions. Please report any bugs or request new features either on this forum or on Github.
Mostapha, Leland Curtis, Reinhardt Swart and Dr. Richard Mistrick provided valuable inputs during the development of these components.
Thanks,
Sarith
Update 16th January 2017:
An example with some new components and bug fixes since the initial release announcement can be found here
…
square units. Then you have an integral number of fragments on each side. This means that if all fragments need to have the same surface area, you can only have the following possibilities for side A:
1 fragment = 100 square units
2 fragments = 50 square units each
3 fragments = 33⅓ square units each
4 fragments = 25 square units each
5 fragments = 20 " "
6 fragments = 16⅔ " "
etc.
For side B, the numbers are mostly different
1 fragment = 300 unit²
2 fragments = 150 unit²
3 fragments = 100 unit²
4 fragments = 75 unit²
For side C they are different still. Unless you join fragments across on both sides of the edges of the box, I very much doubt you'll be able to pull this off.
The solution I attached will create fragments as identical as possible, but it's a very boring outcome...
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
m rnd As New random(666)
Dim field As New gh_field
Dim crvlist As New list(Of curve)
For i As Integer = 1 To 100 Dim pc As New gh_pointcharge
pc.Charge = rnd.NextDouble
pc.Location = bx.PointAt(rnd.NextDouble, rnd.NextDouble, rnd.NextDouble)
field.Elements.Add(pc)
Next
For i As Integer = 1 To 500 Dim p As New point3d(bx.PointAt(rnd.NextDouble * 0.5 + 0.25, rnd.NextDouble * 0.5 + 0.25, rnd.NextDouble * 0.5 + 0.25))
Dim pts As point3dlist = field.SolveSteps(p, 0.1, 30, gh_differentialsolver.RungeKutta4)
Dim crv As nurbscurve = nurbscurve.CreateInterpolatedCurve(pts.ToArray, 3)
crvlist.add(crv)
Next
a = crvlist
…
imension(new Plane(new Point3d(5, 3, 0), Vector3d.ZAxis), new Point2d(0, 0), new Point2d(10, 10), new Point2d(5, 5));
myDim.TextHeight = 500;
doc.Objects.AddLinearDimension(myDim);
The bold line seems to be not working because I can't see any changes of text size in the rhino document.
2. I failed to add my DimStyle Object to the LinearDimension object I created above.
Rhino.DocObjects.DimensionStyle myDimStyle = new Rhino.DocObjects.DimensionStyle();
myDimStyle.ArrowLength = 100; myDimStyle.TextGap = 200; myDimStyle.TextHeight = 500;
int dimStyleIndex = doc.DimStyles.Add("myDimStyle", false);
myDim.DimensionStyleIndex = dimStyleIndex;
The bold line seems to be not changing the style of my LinearDimension object.
Could anyone help me with these two failures?
Thanks!
-Jerome
…
/free/downloads
http://www.youtube.com/watch?v=YGOpitpKpps
This software is great but you can only create symmetric lights, and it's a bit difficult to draw smooth curves. Just miss a refit command...
So I thought I could generate a mesh with gh. Should be easy. Didn't have much time to work on this yet...
There are crucial choices to make in regard to the way you interact with the curve. I just made a try with attractors but I'm not really satisfied. Any ideas would be welcome.
IES-GH.3dm
IES-GH.gh
Cheers
Fred.
\edit..
By the way, can you include the material id color and the object id color? It's really a nightmare I always forget to set them right and there can be so many of them!…