s in between the output testPts and the input points into the _viewTypeOrPts like so:
When you do this, you will see that the lines from the mesh faces you identify do not actually intersect any geometry, although this is largely because the _distFromBase is moving the points far enough away from the base surface so that the line clears any intersecting geometry. So, if you set the _distFromBase to be smaller in your file, you will see that those surfaces you have there get occluded.
Also, for this specific case of view to the sun, I would sooner recommend that someone use the "Ladybug_Sunlight Hours" component for a shadow study rather than setting the sunPath scale to be very large:
http://hydrashare.github.io/hydra/viewer?owner=mostaphaRoudsari&fork=hydra_1&id=Shadow_Range_analysis&slide=0&scale=1&offset=0,0
Sunlight hours will use the actual vector for intersections (instead of a line) and you therefore don't have to worry about how far away the sun position is.
-Chris…
of branches - you could consider using Prox2D or Prox3D to get individual line segments in between your points. If you tweak the maximum radius you could get a quite reasonable approximation. It's then possible to use a Prune tree to extract certain points (your branch "end points") that only have 1 line segment extending out from them. Then you can draw lines in between your branch "base" and "tips" (base will probably be furthest out in some direction, so might do a directional sort to isolate - these lines are the ones in light blue below) and feed the network into Shortest Walk. This should give you polylines from the base of your branch to all the individual tips, which you can then simply trim in order to get your branch lines.I've attached a short script that does the trick. Note that you'll need to have Shortest walk installed. The parameters work for this branch, but they might need some fiddling for other branches. Let me know if you have any questions!
…
Added by Dan Cascaval at 9:44pm on September 4, 2017
ingle case of a line having two intersections with the mesh. That mismatched my data trees, fatally. When one branch has two items in it instead of one, and a component refuses to let me graft the final branches of a tree with a simple flat list, then it's just game over for spaghetti.
It astounds me too that the simple Rhino command to split a bunch of curves with a bunch of points is not in Grasshopper because it's not even exposed in Rhinocommon. I'm back in kindergarden when that sort of 101 stuff is missing.
I haven't handled multiple intersections of lines/polylines with the mesh to have to split a given line twice or more, but that's a rare case and means I have to re-learn enumerables list Windows data format to do the Rhinocommon command right.
Next, to join lines to remove "hubs" with only two struts, though I should check co-linearity to, to allow polyline bends in unit cells.
…
Added by Nik Willmore at 7:14pm on October 10, 2017
just gave the strange message "i" unexpected token "i".
Many thanks,
on C#:
Arthur
private void RunScript(Curve ln, int x, double angle, ref object A) {
List<Curve> lines = new List<Curve>(); Int16 i = default(Int16);
for(i = 0; i <= x; i++){ ln.Rotate(angle * i, Vector3d.ZAxis, ln.PointAtEnd); lines.Insert(i, ln); }
A = lines;
on VB.net:
Private Sub RunScript(ByVal ln As Curve, ByVal x As Integer, ByVal angle As Double, ByRef A As Object)
Dim lns As New List(Of Curve)() Dim i As Int16
For i = 0 To x ln.Transform(transform.Rotation(angle * i, vector3d.ZAxis, ln.PointAtEnd)) lns.Insert(i, ln) Next
A = lns
in python I get the strange error : unexpected token "i"
For i in xrange(0,x): rs.RotateObject(angle * i, vector3d.ZAxis, ln.PointAtEnd) rs.AddLine(lns) A = lns
…
duloid: In geometry, an unduloid, or onduloid, is a surface with constant nonzero mean curvature obtained as a surface of revolution of an elliptic catenary: that is, by rolling an ellipse along a fixed line, tracing the focus, and revolving the resulting curve around the line.
https://en.wikipedia.org/wiki/UnduloidAnd in this file there is a short video:http://www.mathcurve.com/courbes2d/delaunay/delaunay.shtml…
works fine. But, in picture that I attached, you can see that when I rotate stick 1, automatically stick 2 is also rotated and that is also great, I want that.
BUT, problem is in that blue point (see the picture). I want that blue point (end of stick 2) to move across pink line in the same time when I rotate stick 1. So, it must be synchronized, or in the other way, if I want to move that blue point across pink line, than stick 2 and 1 must automatically rotate itself.
I don’t know how to manage that, so please help me, I hope you can understand what I am saying.
Thank you very much!
…
Added by Slavke Stevko at 6:06am on December 7, 2013
t version of grasshopper, ladybug, honeybee, Daysim, Energyplus and radiance and installed them on my computer exactly as the installation instruction tells me, line by line.
The problem is that the honeybee icon in grasshopper is always red highlighted and prompts the following error.
Honeybee Runtime Error: Win32Exception
So i found this forum where this problem was discussed few months earlier. There was this guy Neil Bulger with exactly the same problem. Mostapha advised him to download the Honeybee_Honeybee_DEC_08.gh and to open it in Grasshopper.
I downloaded the same and opened it and the resulting picture is attached.
Mostapha answered that this is a permission issue with the following instructions
"Let's do this. If you check output of Ladybug_Ladybug component it should tell you where the default folder is set to. It can be C:\Ladybug or C:\Users\%USERNAME%\AppData\Roaming\Ladybug\. Can you check and see if the folder is already created? If not can you create it and let the Honeybee fly again?"
Honeybee hasn't created a Ladybug folder in the mentioned directory, so i created one myself. I followed this advise but honeybee didn't work!
I don't know how to get honeybee flying? Can anyone please help me? Thank you
It would be cool to know where each component of honeybee, ladybug etc. should be located in the windows directory!
…
.gif file. Open the bat file with a text editor and change the last line from exit to pause. Then run it again and see what is the error. here is the file address: ...."
If I try to use Honeybee_falsecolor component with an .hdr file it works properly but when I try to convert the output from .hdr in .tif it doesn.t work:
The error message is the same:" 1. Failed to genearate the .gif file. Open the bat file with a text editor and change the last line from exit to pause. Then run it again and see what is the error. here is the file address: ..."
Can you help me to solve this issue?
…
Arc curve as follows, (I wish I can control curves in Rhino and Grasshopper simultaneously. I mean, real-time monitoring with this simulation..)
But it does not work as my way of thinking. When I use Length(line) component in Kangaroo2, it generate only straight lines, not Arc curve(like above Rhino view).
Does anyone have a idea? Should I approach this totally different way?
Thanks.
-Jae-
…
orithm by Ivan Jurin to resolve the Assignment problem. For an in-depth explanation, see here.
The code / component GHX is here: https://github.com/dantaeyoung/GrasshopperArsenal/tree/master/HungarianAlgorithm
…