Grasshopper

generative modeling for Rhino

Guan Xiong
  • Female
  • Kuala Lumpur
  • Malaysia
Share on Facebook
Share Twitter

Guan Xiong's Friends

  • Osman Khaliq
  • Sven Ilmer
  • Aldissain Jurizat
  • H
  • Danny Andrés Osorio Gaviria
  • Dimitar Dobrev
  • Dario
  • Rodney Cudmore
  • Arely Perez
  • Victor Leung
  • Peter Miquelito
  • Alejandro Vicente Soto
  • Rasmus Holst
  • quitronic
  • stefano andreani

Guan Xiong's Groups

Guan Xiong's Discussions

SplitCurve command doesnt work in nested list
5 Replies

Hi guys, I have a bunch of curves in a list and a bunch of 3dpoints in a list.some of the 3dpoints are on the curve and some are not.I am writting a script that whenever the point is on the curve, it…Continue

Started this discussion. Last reply by Giulio Piacentino May 10, 2012.

Explode Curves problem!
1 Reply

Hi Guys,I'm using python for rhino currently. When i run the explode command (rs.ExplodeCurves) or when i just normally explode my curve(which is generated from a dupborder command off a surface) the…Continue

Started this discussion. Last reply by Giulio Piacentino May 10, 2012.

Shift a branch instead of the list within it?
11 Replies

Hi all! lets go straight to the point. I have a list within a list. so therefore i have a few braches, and each branch has a list inside it.  Is there a way to shift the whole branch list, instead of…Continue

Started this discussion. Last reply by Stan Carroll Jul 31, 2011.

how to make kinky curve close periodic curve?
1 Reply

Hi guys,I have ogt a set of points and i plug them into the kinky curve, they do have kinks at certain area which is what i want , but i want the curve to close up like a periodic curve that is…Continue

Started this discussion. Last reply by to] May 25, 2010.

 

Guan Xiong's Page

Latest Activity

babym replied to Guan Xiong's discussion cap fail
"Hi! Im having the same problem with a non planar curve.. is there some sort of solution for this?"
Sep 30, 2012
Giulio Piacentino replied to Guan Xiong's discussion Explode Curves problem!
"Hi Guan could you upload a Grasshopper file with a sample of what you mean? Thanks, - Giulio________________giulio@mcneel.com"
May 10, 2012
Giulio Piacentino replied to Guan Xiong's discussion SplitCurve command doesnt work in nested list
"Guan, I'll be glad to have a look but I'm having trouble trying as right now I'd have to retype your whole script from the picture. Could you post it? Please also say what you want to do in general and comment the part that is not…"
May 10, 2012
Guan Xiong replied to Guan Xiong's discussion SplitCurve command doesnt work in nested list
"Hi Giulio, Many thanks! I'm going to post it over there and hopefully get a feedback. I found out that this command works when you instantiate a 'false' statement for creating a copy of the newly spitted curve instead of…"
May 10, 2012
Giulio Piacentino replied to Guan Xiong's discussion SplitCurve command doesnt work in nested list
"This woud be rather a question for the Rhino.Python forum. Did you post there, too?Could you also please upload the file? Thanks, - Giulio_________________giulio@mcneel.com"
May 10, 2012
Guan Xiong replied to Guan Xiong's discussion SplitCurve command doesnt work in nested list
"Dear David, Thank you so much for your reply, unfortunately i do not know how to use C++. Thanks a lot for your input. I guess its the split command in python for rhino that is not working fine as I am pretty confident that there is no problem with…"
May 9, 2012
David Rutten replied to Guan Xiong's discussion SplitCurve command doesnt work in nested list
"Hi Guan, python isn't my strong suit, what you need to do is measure the distance from each point to each curve, if that distance is less than, say, 1e-6 then the point can be said to be coincident with the curve. You should also check to make…"
May 9, 2012
Guan Xiong posted discussions
May 9, 2012
Stan Carroll replied to Guan Xiong's discussion Shift a branch instead of the list within it?
"Yeh, me too.  I reside in a constant state of shattered perception.   If you are in the mood for a purely academic challenge that might offer self discovery of data matching importance, try this.   In GH, create say, a wall, build it…"
Jul 31, 2011
Michael Pryor replied to Guan Xiong's discussion Shift a branch instead of the list within it?
"just when you think you understand lists, your perception is shattered. lol, I am still not clear on what is happening in this specific case."
Jul 31, 2011
Chris Tietjen replied to Guan Xiong's discussion Shift a branch instead of the list within it?
"Thanks Stan.  I get it.  I wasn't sure how the offset mask worked.   Chris"
Jul 31, 2011
Stan Carroll replied to Guan Xiong's discussion Shift a branch instead of the list within it?
"Your observation is keen, only the branches shifted, items within the list did not.   The simple answer to your first question regarding when you might use this is: Data Matching. The more involved answer might be: As definitions increase in…"
Jul 31, 2011
Michael Pryor replied to Guan Xiong's discussion Shift a branch instead of the list within it?
"also based on the image, didnt that just shift the branches and not the items within a specific branch or am I missing something?"
Jul 31, 2011
Michael Pryor replied to Guan Xiong's discussion Shift a branch instead of the list within it?
"What would be a specific situation this branch shifting would be used. Ive never run into having to use it? I am always interested in expanding my grasshopper knowledge and have a decent understanding of lists but this still kind of confuses…"
Jul 31, 2011
Stan Carroll replied to Guan Xiong's discussion Shift a branch instead of the list within it?
"Here is the method I use. Stan"
Jul 31, 2011
Chris Tietjen replied to Guan Xiong's discussion Shift a branch instead of the list within it?
"Can you show an example?   Chris"
Jul 30, 2011

Profile Information

Company, School, or Organization
Architectural Association school of architecture

Comment Wall (2 comments)

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

Join Grasshopper

At 8:02am on March 4, 2013, hamia Aghaiemeybodi said…

Hi

I got a problem with spliting curve in python, simply like this:

import rhinoscriptsyntax as rs
import Rhino as rc
curve01=rs.coercegeometry(x)
curve01.Domain = rc.Geometry.Interval(0,1)
print (rs.CurveDomain(curve01))
a=rs.SplitCurve(curve01,y)

and i get this eror:

[0.0, 1.0]

Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid
Traceback:
line 467, in coerceguid, "C:\Users\91hag\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
line 2404, in SplitCurve, "C:\Users\91hag\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\curve.py"
line 6, in script

Since i found your post i thought maybe you already found out the answer!

any idea?

Thanks,

At 10:39am on April 8, 2010, Matt Gaydon said…
Hello again Guan

Aswell as my reply to your post on the disscussion forum, these primers from Mode Labs should help too, but as they where slighty off topic from original question i will post them here.

http://modelab.nu/?p=2013
http://modelab.nu/?p=2114

To find the other primers on the site click on the word 'Primers' written in white in the black bar along the bottom of the page.

Hope these help

Matt
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service