Grasshopper

algorithmic modeling for Rhino

Dear All,

I can't get the trim inclusion test to work... i have two points, one outside and one inside a curve, but both return a false answer...

Please help

Views: 1243

Replies to This Discussion

Files

Attachments:

I guess you need to use the "Surface CP (Closest point)" component.

Attachments:

Thanks djordje,

I was not able to open the script as i'm running an old version of GH here at the office. Can you please post an image of the same.

regards

I was also wondering, is there a component that tests a point for being on a surface or not directly without using the (Closest point) component?

You will still need to use the Trim Inclusion component, just "Surface CP" goes before it:

Thanks a million. Worked this time, but honestly i don't fully understand what the untrim surface component does... :)

Untrim removes the trimming curve and returns the underlying untrimmed surface. If you calculate the CP to the trimmed surface, all points will at least be placed on the trimming curve. This might move all the CPs into the trim inclusion.

Still CPs aren't ideal to check for trim inclusion, because if your point is pulled to an untrimmed edge, it will be detected as on the trim, even if the original point was far off.

Hi Hannes,

Yes you are so right. This is what is happening with me. The point is being attracted to an untrimmed side, so is being detected as inside... :(

That's why i'm thinking there must be a better way for doing this (checking whether or not a point is on a specific surface)

Regards

Hey guys,

I thought i almost figured it out, in a different way. I noticed that the "Surface CP" component also returns a value for the distance between the original point and the CP, so i thought i might use that as a gate for determining whether or not the point is on the surface (distance should be not bigger than zero)

But sadly it still does not work, no idea why... even the points that are supposed to be on the surface, sometime return a very small value :(

Attachments:

hi Omar ,

your script is working 

i change panel 0 to 0.01 and multi line option the dispatch out put B gives the  points 

Regards

Rajeev

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service