.2; 0.0
2; 2.5; 0.0; 1.0
The first number is merely the index and the last three numbers on each line represent the x, y and z coordinates of a point. We cannot use the in-build String->Point converter in Grasshopper because it doesn't understand that a point coordinate might consist of 4 parts, the first one of which is an index.
So, you write the following parser, and you're done:
Dim parts As String() = data.Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)
Dim x As Double = Double.Parse(parts(1))
Dim y As Double = Double.Parse(parts(2))
Dim z As Double = Double.Parse(parts(3))
Return New On3dPoint(x, y, z)
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 5:04am on December 14, 2009
that you will be able to visualize:
> The first input "Number of rays" allows you to choose the number of rays projected by the sources in all directions.
>The second input "Number of ref" allows to set the number of visible reflections (1 bounce, 2 bounce 3 bounce) before the rays reach the listener.
>The third input "Tolerance" allows to choose at what distance from the listener the rays will be taken into account (0.1: the rays will have to pass very close to the listener to be visible / 1.0: we take into account rays that pass much further than the listening point / The default value is 0.5)
I hope this will solve your problem, if not, it can be interesting to move slightly some sources that are too "buried" under the geometry to visualize their reflections ;)…
Added by TM to EsquisSons at 2:27am on April 16, 2020
window in grasshopper (and even save it to a text-file)??
Is there a way of doing it without connecting/collecting all relevant components manually to say e.g. a panel component?
I am thinking of something like a "input-properties"-window, where all numeric variables of sliders etc. are listed inside grasshopper (and eventually can be saved to a text-file)... something like:
slider a: 0.23
slider b: 0.67
slider c: 1.0
panel a: 23
panel b: text
rotating knob a: 25
rotating knob b: 360
boolean toggle a: false
md-slider a: 0.5, 0.8
etc...
+
"save as..."-button
Does this function it exist? Is there a smart way to collect this information centrally?
With kind regards,
Chombolombo
…
Added by chombolombo at 4:48am on September 21, 2012
med cylinder is not centered.
I used 'Shift (-1 or 9)' to align the flattened list of "trimmed subsrf edges" to the surface seam.
I enabled 'Reparameterize' on 'input surface' (the trimmed cylinder) to keep 'Srf CP' and 'CrvSrf' happy.
I changed the 'C (Closed)' input of 'CrvSrf' from True to False - otherwise, the curve wraps back around the trimmed surface.
I copied the first point in the 'uvP' list from 'Srf CP', re-constructed it using X=1.0 instead of 0.0, and appended it to the end of the list - physically the same 3D point but important in the UV space of the surface.
There is a discontinuity there at the beginning/end of the curve. A flaw in the method that might be reduced if the surface seam was centered, but probably won't go away.
…
ch and there is no left over space between the last object and first object (when the surface is continuous). I'll attach files so this makes more sense. In the 3dm file, I have added a sample surface and also did some layout of the objects on the surface (I did this the old fashion way/ by hand). Any ideas of how to make this work? Overview of what I have done so far --1. Select Surface2. Divide Surface into proportional sub-surfaces. Use slider to get as close to 1.0 as possible. This could probably be automated to select the correct division automatically. I did not know how to do this.3. Get the midpoint of each sub surface.Thank you!Walt…
bit:
Unable to load grasshopper.dll plug-in: Rhino version not specified.
I've also tried the current WIP grasshopper (0.7 rev 57) and I receive a slightly different error message:
Unable to load grasshopper.rhp plug-in: Rhino version not specified.
A similar thread: http://www.grasshopper3d.com/forum/topics/plugin-eror
…
Added by Koabi Brooks at 1:30pm on October 2, 2010
c (here) and tried same process but I couldn't add texfunc material on honeybee library.
Material I made is below;
void texfunc gran_tex4 gran_dx gran_dy gran_dz C:\Radiance\lib\plink.cal00gran_tex glass granular_glass_6003 0.982 1.0 0.987
and the result I get is ;
1. Solution exception:Invalid integer literal
…
ess: 0 for 0 degrees and 1.0 for maximum angle, whatever that is (from the angle component)
2.- I have added some basic folding to the #2 file, basically remapping the domain of the circles BEFORE dividing it into points, so that you can control the general folding from 0 to 1:4
3.- Also, I have added some sub-folding structure to #1 file. Read it carefully, as it looks messy but it is basically creating a new family of 'legs' in between the previous ones, interpolating folding angles like in origami, and mixing the lists to produce the final surface:
Keep up!
…
Shoot rays into N random directions, well distributed over a half-sphere.
Count how many (H) of these rays hit an obstacle.
The area factor is then determined by H/N, which gives you values in between 0.0 (none of the rays hit any obstacles) to 1.0 (all the rays hit obstacles).
You can then create a coloured mesh that maps these factors onto a gradient.
The big difference is that instead of accurately measuring the area of the projection of an approximation of the view properties, we're now just dividing the number of hits to the total number of attempts. Both methods use a sampling approach so neither is accurate, but my method doesn't spend a lot of time accurately measuring properties of inaccurate data, which is why it is faster.
Instead of measuring the projected areas, I measure them directly on the sphere. You need to be aware of this difference between your and my logic.
--
David Rutten
david@mcneel.com…
ing from Grasshopper, sometimes Rhino simply wont recognise the Esc, Enter and Delete key properly.
Esc and Delete are ignored complete, while hitting Enter shows in the command line as:
Command: _Catalyst An installation of Dimension Catalyst software cannot be found.
Has anyone ever found out why this is happening. It certainly has something to do with the interplay of Grasshopper and Rhino.
Super annoying bug, and it appears that it has been around for at least 3 1/2 years without a fix or even an explanation. Maybe I just cant find the right thread any more.
@David: Will this get fixed for GH 1.0 and/or Rhino 6?
Here is a discussion on the rhino forum:https://discourse.mcneel.com/t/enter-key-not-recognised-in-rhino-5-for-windows/5413…