Grasshopper

generative modeling for Rhino

raminbp
• Male
• tehran
• Iran

864 members

## raminbp's Discussions

### LineCurve.ExtendByLine Problem3 Replies

Hello to everyoneHere 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…Continue

Started this discussion. Last reply by raminbp May 25, 2012.

### spliting an ellipse using a line in grasshopper5 Replies

hi everybody i want to split an ellipse using a line or curve in grasshopper C# script. i want everything to be purely in Code , without using grasshpper component .i already know how to draw…Continue

Started this discussion. Last reply by Systemiq Nov 23, 2011.

### how to convert a point from polar to xy coordinates in C#1 Reply

hi everybodyassuming we have a polar coordinates (r0,phi), how to convert this point to xy coordinate?forget about math , i just need to know what function in rhino or grashopper SDK does that?  and…Continue

Started this discussion. Last reply by David Rutten Nov 8, 2011.

### creating a geometry using C#10 Replies

hi everybodyi'm new at grasshoppe, can anyone tell me how to draw a circle from scratch, purely in C#without using circle component of grasshopper  Continue

Started this discussion. Last reply by David Rutten Nov 8, 2011.

# raminbp's Page

## Latest Activity

"I"
Aug 23, 2012
Sameer Kumar replied to raminbp's discussion about number slider
"While it may be easy to make the range of a slider parametric/variable, how would GH determine what the new value of the slider should be if the current value ends up falling outside the new range?"
Aug 22, 2012
"There should be a way to feed a minimum and maximum value into a slider. While the remap example works fine, it would reduce component numbers from 4 to 1."
Aug 22, 2012
raminbp joined David Rutten's group

### Galapagos

Galapagos Evolutionary Solver
May 26, 2012
"im using RhinoCommon  and i C# component of grasshopper "
May 25, 2012
"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"
May 25, 2012
"ok i fixed it  but it reurns nothing a null object, means that it cant extend the line , whats the problem? "
May 25, 2012
raminbp posted a discussion

### LineCurve.ExtendByLine Problem

Hello to everyoneHere 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 soi constructed a LineCurve object of my Line LineCurve line1LineCurve = new LineCurve(line1);then when i use thisline1LineCurve.ExtendByLine(CurveEnd.None,circle1);it says that it cant convert the argument 2 ,  rhino.geometry.Circle…See More
May 25, 2012
"You need to give 2 more arguments to CurveCurve (tolerance and overlap tolerance), then you get an intersection object, by example:     Point3d[] P = new Point3d[2];    Rhino.Geometry.Intersect.CurveIntersections…"
Nov 23, 2011
"i wrote this code , and it doesn't work //ellipse     Plane pl = Plane.WorldXY;    Ellipse el = new Ellipse(pl, 5, 10); //line    Point3d pn1 = new Point3d(-5, -5, 0);    Point3d…"
Nov 22, 2011
"ok , but i think intersection.curvecurve just returns points , so how i split the ellipse using those points? in fact i need to have a quarter of the ellipse"
Nov 22, 2011
"Indeed, there is no dedicated Ellipse|Line intersector in Rhino, so you'll need to convert your ellipse and your line into actual Curves, then use the Intersection.CurveCurve method.   -- David Rutten david@mcneel.com Poprad, Slovakia"
Nov 22, 2011
"Maybe you can try Intersection.CurveCurve method in Rhino.Geometry.intersect namespace."
Nov 22, 2011
raminbp posted a discussion

### spliting an ellipse using a line in grasshopper

hi everybody i want to split an ellipse using a line or curve in grasshopper C# script. i want everything to be purely in Code , without using grasshpper component .i already know how to draw primitives using rhino geometry in C# but i dont know how to use something like split function of Rhino  See More
Nov 20, 2011
"You want a list containing a single Circle?   Well, either way, you'll need to do something like this:   Dim circles As New List(Of Circle) For i As Integer = 1 To 100   circles.Add(New Circle(Point3d.Origin, i)) Next A =…"
Nov 8, 2011
"There is no function for this. Unless you're willing to use a boatload of rotations and scaling transformations.   The math really is quite simple:   x = r0 * Math.Cos(phi) y = r0 * Math.Sin(phi)   -- David…"
Nov 8, 2011

## Profile Information

Company, School, or Organization
iu

Join Grasshopper

by Alex

by Alex

by Alex

• View All