Grasshopper

algorithmic modeling for Rhino

Hello to everyone

Here is my problem , I have a Circle and a Line without any Intersection.

i want to extend the line Until it intersect to circle.

i saw that LineCurve have this ExtendByLine Method which exatcly does what i need so

i constructed a LineCurve object of my Line 

LineCurve line1LineCurve = new LineCurve(line1);

then when i use this

line1LineCurve.ExtendByLine(CurveEnd.None,circle1);

it says that it cant convert the argument 2 ,  rhino.geometry.Circle to

system.collection.generic.IEnumerable<geometrybase>


even when i cast the circle to curve using (curve) circle1, it doesnt work


help me please 


Views: 825

Replies to This Discussion

ok i fixed it 

but it reurns nothing

a null object, means that it cant extend the line , whats the problem?

Hi Ramin,

are you doing this in a Script component or as a GHA library? In either case, we'll need some code we can run to find the problem.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

im using RhinoCommon 

and i C# component of grasshopper

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service