Grasshopper

algorithmic modeling for Rhino

Hi,

I have a problem with my definition, I would like to know where my curve is compared to a point, for example is it left or right to curve.Its important to know so i can orient my next curve accordingly.

I tried with "curve side" but it seems that nothing changed at the output (left, right) when i put the same curve to the right and then to left of point, i also changed the plane but the same problem occurs. I could not find something relevant on internet so it would be helpfull if anyone knows something about it or another way to orient a curve (arc) to a specific point.

Views: 1100

Replies to This Discussion

Like this?

BTW: A far more sophisticated version of that is available (but using solely code)

Attachments:

just tried to create the beginner version of the sophisticated version.

Think it works so far.

What about the Pro one?

Attachments:

Pro eh? (Good news: sardines on sight, Bad news: far and away).

1. Assume that you want to "exclude" some "unsuitable" points using some options (shown: if the point is outside the virtual region defined by the curve start/end ... discard it).

2. Assume that you want to identify a region of interest (i.e. a BrepFace that contains the point picked).

3. Assume that the curve has some self intersections.

What to do? Answers: The Lord, District 9, North Pole

But first things first: Do that (all curves shown are one curve):

Hi Peter,

tried the Curve Intersection thing,I stumpled a few times over the Array to List/tree whatever error, i still need to understand it completly, cause it occurs quite often.

Other thing i tried because yesterday I needed it:

Have to booleanDiffernce a lot of Geometry( I know thats rhinos forte, but due to lack of ability to use a solidmodeller need to do it there/was watching first tuts for c5 yesterday, hehe).

I want to do it in a loop like this:I think I can interpretate the error: no list is made since the array returns empty. But dont  know how to solve it.Even if I tweak tolerance ridicously high it wont.

Maybe you could fix this ?

Will upload both files.

Thanks man!

Attachments:

oh, think I did an essential mistake, that I need to replace every step in the loop the Brep I want to difference from with the "new/hollowed" one. Will try to understand this also.

BTW Think  understand th array thing( do it in a for loop, right?)

Hmm ... close but no cigar (meaning that Da Morgada stuff is fading in the distance).

See attached.

BTW: You can do this with components ... however if you work on a far bigger/complex thingy (real-life) and/or you need a lot of checks (if this, then that)  ... etc etc.

Attachments:

looks ways more comlpicated then i thought it would be...will try to get the gist in pause

And this (a gift from the Merciless SardineLord for you [i.e. the brave])... well ... proves the obvious (Compare with the native stuff)

But what actually does this freaky thingy?

Attachments:

And this is the politically correct stuff (Trees, Lists, Arrays, nulls, cats, dogs and the likes)

Attachments:

thanks for this! (but pc?uagh!)

found out how to solid difference, but I realized also it was pointless.

Now I am searching a new way(in a new thread)

With regard the visual indication of the BrepFace containing the point in question here's the once in a lifetime opportunity to win:

(a) 12, (b) 123, (c) 1234 cans of Da Morgada finest (in pure mineral [15W/50] oil).

Attachments:

YES! that's exactly what i was looking for!!!

Thank you, Peter

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service