Grasshopper

algorithmic modeling for Rhino

This question has been asked before but without any answers. Since I ran into this issue myself I ask again.

I have assigned a Vector/Direction to input D, but the Component projects Curves to Both Directions. One to vector D and one another too vector -D. Is there a way to have the curve only project into a single direction.

The open curve in the image is the one that I don't want to be projected. Any ideas are appreciated...

Views: 2838

Replies to This Discussion

There's no component that does this directly, so you'll have to split your curves into two groups, one which is in front of the plane and the other which is behind the plane. Then only project one of them and then merge the two groups together again. That only leaves curves that intersect with the plane, what should happen to those?

Attachments:

I am trying this one out right now... will give feedback shortly. thanx

This is not a slam dunk solution to my problem but puts me on the right track... tinkering is part of the fun... 

Aren't you playing with fancy toys... Archive file written with newer version: 1.0.0004 

Thank you,

Oliver

It is GH version on rhino 6 WIP

seems I am not keeping up with releases... when is rhino 6 out?

It is named rhino WIP and Serengeti see explanations on the main page of forum, not optimized for mobiles ! GH is embedded in the distribution and has some new components, from Jackalope plugin and perphas others ?

thanx. Work-In-Progress!

Hi David,

I tried your suggestion before posting this discussion, with a cull pattern (Cull Nth) but did not get the results I was looking for. The curve touching the plane is my base curve. I would like to use the one in front of the plane but do not know how to determine that fact. all curves behind the plane should be ignored. I singled out this one curve for ease of presentation purpose, the definition is working with a couple hundred curves.

Thank you,

Oliver

Why, oh why, does anyone start a thread without posting GH code, including geometry data?  So much more effort to play and learn.  This is David's code with my random curve data - red projected to yellow, blue unaffected:

sorry about that... but this is part of a complex definition and pulling the sections out that are important for this question seemed more work then a simple screen shoot... 

You realize, I hope, that in saving yourself the little effort it takes to internalize a few curves, a plane and a vector to illustrate your issue, everyone who wanted to play with the problem was required to reconstruct all the code and data on their own.  With no guarantee that all the nuances are replicated properly.  Even if only one person bothered, that's still more effort than what you "saved", let alone multiple people working on it.

Read this first! How to get help on this forum.

3. Attach minimal versions of all the relevant files

If you have a GH/GHX file you have a question about, attach it to the post. Don't expect that people will recreate a file based on a screen-shot because that's a lot of pointless work. It's also a good idea to remove everything non-essential from a GH file. You can use the 'Internalise Data' menu option to cut everything to the left of a parameter:

If you're importing curves or Breps or meshes from Rhino, you can also internalise them so you won't have to post a 3DM file as well as a GH file. If you do attach large files, consider zipping them first. Do not use RAR, Ning doesn't handle it.

It is especially a good idea to post files that don't require any non-standard components if at all possible. Not everyone has Kangaroo or Hoopsnake or Geco installed so if your file relies on those components, it might not open correctly elsewhere.

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