Grasshopper

algorithmic modeling for Rhino

Hi Guys,

does anybody know a VB Method for testing if a point is inside of a closed curve/polyline or on a surface?

All ideas would help

Regards, alex

Views: 1533

Replies to This Discussion

sorry, have got it,

for all who are interestet

'Dim g as BrepFace
Dim tolerance as Double = doc.ModelAbosluteTolerance
Dim points_inside as New List(of Point3D)

For Each pt as Point3d in pt_list
Dim dist As Double
Dim d As Double = Double.MaxValue

dist = g.DuplicateFace(False).ClosestPoint(pt_to_Add).DistanceTo(pt_to_Add)

If(dist < d)
d = dist
End If

If(d <= tolerance) Then
points_inside.Add(pt_to_Add)
End If
Next

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service