Grasshopper

generative modeling for Rhino

Raminbp's Friends

  • MARIO VERGARA

raminbp's Groups

raminbp's Discussions

LineCurve.ExtendByLine Problem
3 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 grasshopper
5 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

Adam Laskowitz replied to raminbp's discussion about number slider
"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
Adam Laskowitz replied to raminbp's discussion about number slider
"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
Thumbnail

Galapagos

Galapagos Evolutionary Solver
May 26, 2012
raminbp replied to raminbp's discussion LineCurve.ExtendByLine Problem
"im using RhinoCommon  and i C# component of grasshopper "
May 25, 2012
David Rutten replied to raminbp's discussion LineCurve.ExtendByLine 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"
May 25, 2012
raminbp replied to raminbp's discussion LineCurve.ExtendByLine Problem
"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
Systemiq replied to raminbp's discussion spliting an ellipse using a line in grasshopper
"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
raminbp replied to raminbp's discussion spliting an ellipse using a line in grasshopper
"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
raminbp replied to raminbp's discussion spliting an ellipse using a line in grasshopper
"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
David Rutten replied to raminbp's discussion spliting an ellipse using a line in grasshopper
"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
Xiaoming Yang replied to raminbp's discussion spliting an ellipse using a line in grasshopper
"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
David Rutten replied to raminbp's discussion creating a geometry using C#
"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
David Rutten replied to raminbp's discussion how to convert a point from polar to xy coordinates in C#
"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

Comment Wall

You need to be a member of Grasshopper to add comments!

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service