trl + X shortcuts.
When i ie. type ctrl + Z it just does it in the rhino window instead of the grasshopper window and when i press space when an item is selected nothing happens.
I am running 64-bit rhino on Windowns 10 on a bootcamp macbook pro from 2014 with a danish keyboard.
i have tried switching keyboard language in windows settings, but nothing works. I have also checked the shortcut settings in grasshopper and they are all on.
I am very new to grasshopper. haven't spend more than 3 hours in the program. So maybe i am just overlooking something really oblivious.
Hope there is anyone who can help :-)
…
serveral questions:the first thing is in c++ i have to implement more methods than in my c# test project.
they are:
int MyGhComponent::MasterParameterIndex::get(){ return 0;}void MyGhComponent::MasterParameterIndex::set(int index){ }bool MyGhComponent::IsValidMasterParameterIndex::get(){ return 1;}
i found no hint for the implementation of that interfaces. could someone tell me that is correct ?OK, it works, but is it well writen ? What is the MasterParameterIndex?
the second "bigger" problem is, i want to have an output of an pointlist.X y Z 1.2 1.3 1.12.1 5.2 9.2...
my first approch was to use a
void MyGhComponent::RegisterOutputParams(GH_Component::GH_OutputParamManager^ pManager){pManager->Register_PointParam("Coordinate", "XYZ", "Node-Coordinate");}
and
void MyGhComponent::SolveInstance(IGH_DataAccess^ DA){Collections::Generic::List<GH_IO::Types::GH_Point3D>^ pnt = gcnew Collections::Generic::List<GH_IO::Types::GH_Point3D>(); for (int i = 0; i < 10; i++) { GH_IO::Types::GH_Point3D^ point = gcnew GH_IO::Types::GH_Point3D(i, i, i); pnt->Add(i); } DA->SetDataList(3, pnt);}
but this exampel doesn't work...i wirte a small workaround and use the following
pManager->Register_DoubleParam("X-Koordinate", "X", "X"); pManager->Register_DoubleParam("Y-Koordinate", "Y", "Y"); pManager->Register_DoubleParam("Z-Koordinate", "Z", "Z"); Collections::Generic::List<double>^ pntx= gcnew Collections::Generic::List<double>(); Collections::Generic::List<double>^ pnty= gcnew Collections::Generic::List<double>(); Collections::Generic::List<double>^ pntz= gcnew Collections::Generic::List<double>(); ... add .. ect.
this workaround do the job, but i want a better soulution. and i know somewhere out there sould be a better solution. i want to use 3D Points directly in GH without list conversation.
so somebody a familiar with c++ / cli ? and could give me some tipps or a soulution ?
the first thing is: what is the right RegisterOutputParams ?
and witch data type is the right ? Point3d doesn't work. so i try GH_IO::Types::GH_Point3D and Rhino::Geometry::Point3d ...
br Friedrich…
having a grid of points from which I can select a certain number of points, and then randomly place them with the aid of Jitter ( I have managed this one). The selected points are then to be used as attractors for the surface, both pulling the surface up and down in the Z axis (Ideally I would like these points not to overlap eachothers pulling force, but I think one step at a time).
This is my latest attempt at achieving this, and I am now finding myself going round in circles as I am on the edge of my knowledge.
The problems I having with this GH file are:
1) When I change the points from ones selected in Rhino to ones created in GH the point attraction system fails?
2) I can not pull the surface in negative Z direction.
3) In this GH File I have used extrusion to create a representation of the surface, this I needs to be replaced with a solid surface, however I can not work out away to manipulate a surface with multiple attractor points in the way I have described.
I have attached a Rhino file showing the aesthetic I would like to create, it was created by pulling the control points of the surface.
As I said I would really appreciate any help or advice on these issues as I'm going round in circles trying to figure it out.
Thanks,
Dave…
nside' the OnLine variable. It is instead stored somewhere else in memory, and the OnLine variable only contains the address of this chunk of far-away memory. In other words, it contains not the value, but a reference to the value.
So when I say:
Dim ln As New OnLine()
then the computer creates a new OnLine instance (the 6 numbers) somewhere deep down in the RAM, and ln merely holds the address of this instance.
When I call a function that takes an OnLine as an input, it is in fact given an address, meaning that any changes to the OnLine from within the function can have far reaching effects:
Dim ln As New OnLine()
ln.From = New On3dPoint(10, 10, 0)
ln.To = New On3dPoint(15, 20, 3)
...
...
Public Sub FlattenLine(ByVal line As OnLine)
Dim project As New OnXForm()
project.PlanarProjection(OnPlane.World_xy)
line.Transform(project)
End Sub
This function changes the line parameter, and since OnLine is a Reference Type, it also affects every other variable that points to the same memory.
to be continued >>>…
Added by David Rutten at 6:10am on September 9, 2010
e, both the y axis and the x axis are rotated from the world ones.
and i want the frame to be "projected on the world axis but rotated perpendicularly to the curve..
does that make sense?
frame 3 image is after doing what you suggested..
basically, unless i'm mistaken, i think all i is the frames to keep their z axis and to give them x and y axis that reside on the world plane, does that make sense?
thanks a lot
amir…
This is essential for combining individuals for the next generation.
Even in biology a successful breeding recombines two half sets of chromosomes to a new full set. Two unequal sets would end up in chaos. Imagine you have a 2D point and one in 3D but you cannot tell whether those 2D values are XY XZ or YZ, how would you measure their distance and how do you calculate the average of both? Of course you can have the 2D coordinates in slots where 1 is X, 2 is Y and 3 is Z but that is just a 3D point with one coordinate set to 0. This is what you do now with a lot of sliders in the gene pool, shortening the list at will.
Since you will feed the genome into Galapagos and probably will never manually adjust the values with the sliders, you can kind of mimic variable lengths. All you need is a function that will deterministically generate a variable number of n values from constant number of input parameters. Don't try to make the function too random or complex as this will break the porximity logic of Galapagos.…
and 3 are always opposite each other and when sorted first by Z, will be bottom and top, respectively.
It works with multiple surfaces (above) or one at a time (of course) - click to see animation:
Inside the 'xEdges' cluster:
"Distance" is the distance of the point from the origin (0,0,0) and might not be useful if the surfaces are arrayed around the origin...…
Added by Joseph Oster at 10:27am on December 29, 2015
vector."
But a vector is a direction. A point is not a direction. A vector is two points. So for one it is a way to use one thing (vector) vs two things (points). Vectors can inform things how to move and can be infinite. So for instance, if i wanted something to move in a specified direction forever without me defining a definitive end I would need a vector. I think maybe you confuse vector "length" with vector "direction". Where a vectors length and direction can be defined ultimately by a start and end point. But it's direction can be important to many operations and can go beyond the end point forever. This is why often unitized vectors are used just to use the direction, and the actual length becomes irrelevant.
Additionally, the vector "length" can just be seen as another way to define things. There is rarely ever one way to define. For instance, you might say well why do i need a mesh since really that is also just a grid of points displayed as faces. …
Added by Michael Pryor at 12:16am on October 21, 2017
ave an idea how to straiten all the roads relative to z direction? As you can see from screenshot round about is basically follows geometry of the mountain slope. So there is gong to be extra terrain on one side of the road an cut on another.
2. Another thing I need to find a way how to use multiple curves and created clean intersections between two roads or road and round about? Maybe it easier to use road full online and not just a centreline ?
3. I also facing a problem how to project road to mesh. If I have stairs segment and curve (corner radius 6m) grasshopper will reconstruct the curve which is not the same any more )
I have attached my your grasshopper file with some edits plus my rhino file with the mesh.
Thanks,
Roman
…
area. How can I have this area?
2-The second question, I have a list included 40 items, how can I add them in this order and get the results? :
item 0 + item1 = A
A + item 2 = B
B + item 3 = C
.
.
.
Y + item 40 = Z
I would be really appreciated if anyone can help me.
Thanks,
Nick…