Hi, here's an alternative solution:
http://grasshopper3d.googlegroups.com/web/cullpointswithregion.jpg
This method allows for any shape to be used as a culling region. The
previous method, although it works for this specific case, suffers
from several shortcomings. For example, if one of the curves
intersects one of the ZY planes twice it breaks, there's no horizontal
culling.
The drawback is that you need a closed curve, so you'll have to add a
couple of lines connecting the ones you already have.

On Jan 3, 6:15 pm, dingle <[email protected]> wrote:
> Spectacular. Simple and works perfectly. Thanks man!
>
> On Jan 3, 4:43 pm, Chris Wilkins <[email protected]> wrote:
>
> > Hi Dingle,
>
> > I've got a simple solution worked up. I've uploaded the definition
> > file and the Rhino file in a zipped folder:
>
> >http://groups.google.com/group/grasshopper3d/web/CullPointsOutsideBou...
>
> > And a couple screen shots:
>
> >http://groups.google.com/group/grasshopper3d/web/CullPointsOutsideBou......
>
> > This is just creating a YZ plane at each point and intersecting this
> > plane with the two boundary
> > curves, to get two more points for each of the original points. Then
> > it compares
> > the y-coordinates of the original points (which are randomly placed in
> > my example, but will
> > work the same for your grid of points). If the y-value is less than
> > the upper boundary and
> > greater than the lower boundary y-value, then it culls based on this.
>
> > Hope that works for you,
> > Chris
>
> > On Jan 2, 1:28 pm, dingle <[email protected]> wrote:
>
> > > hi all,
> > > new to grasshopper, no stranger to rhino. i manually created a non-
> > > rectangular point grid and i'm seeking to get rid of all of the points
> > > which lie outside (actually, above and below) two arbitrary curves.
> > > the curves are more or less parallel to the x-axis, so maybe we could
> > > do something like subtracting the deviations between them and a line
> > > along the x-axis?
> > > i think i could script my way around this but would love to keep it in
> > > grasshopper...
> > > try these images (hope i uploaded them correctly):
>
> > >http://groups.google.com/group/grasshopper3d/web/pointgridcrvbound_01......
>
> > > thanks all
> > > dingle
>
>

Reply via email to