I am new using the program… I am trying to generate a line from specific intersection points between two curves, in the image it is from the points marked with blue…
Hello, Welcome to Grasshopper.
Firstly you need to reference the curves into grasshopper. Make a curve parameter on the canvas, right click this and ‘Set one curve’ in order to reference the curve from Rhino. Do that for the three curves.
Then use the Curve Curve Intersection component to find the points. Then pick out the individual points using List Item component, and join them using Line by 2 points.
Take care, have a look at the tutorials by David Rutten on YouTube if you’re new to Grasshopper.
John.
thanks johnharding for the help…maybe I didn’t explain myself well, I’ll send more details…
Green lines represent the axes of a wall and red lines represent the walls…
Using grashopper with the Multiple Curves component, I have already found those points…but later I need to process those points and only keep the points of intersection line axis-line wall…line wall is polyline and axis is line…and draw a line joining these points…
Uploading: murosyejes2.gh…
Uploading: muros2.3dm…
Not able to download your attachments. Can you upload again?
Ok, I think I understand @juan_garcia1 .
You can use the ‘Point in Curve’ component to query whether the point is actually on the curve itself (it returns ‘1’), then dispatch the list of original points. For this simple problem obviously that’s ridiculous but I presume this is part of a wider process.
Hope that helps,
John.
thanks johnharding if it is part of a broader process… I try to automate the process to transfer projects in dgw (autocad) to an archicad model to take advantage of the BIM model… already drawing a line in Rhino with grashopper from these points found, you can use the Archicad components for grashopper to draw the walls automatically… I put your algorithm into practice and it works… but I also used the Elefront component and its filter by layer (taking advantage of the layer names of the dwg drawing that opened in Rhinoceros)…
Now I have tried to generate lines between those points but that they meet the condition of horizontality and verticality… I tried comparing them with a unit vector but it does not work for me… in the image I show the line that I must obtain to later generate my walls in archicad …I would be grateful if you could help me…
murosyejes3.gh (7.8 KB)
muros2.3dm (12.7 MB)
the blue lines are the ones I need to be able to generate the walls in archicad…
murosyejes3.gh (7.8 KB)
muros2.3dm (12.7 MB)
@johnharding This solved a problem I was having a pattern generation plugin.
Thanks for the suggestion!