Grasshopper

algorithmic modeling for Rhino

get the curve parameter that results from my LinePlane intersection

hi all,

I am wondering how to get the curve parameter that results from my LinePlane intersection.

Actually it returns me d = -1

 

 

my code:

Private Sub RunScript(ByVal plane As Plane, ByVal line As Line, ByRef A As Object) 

Dim d As Double

d = rhino.Geometry.Intersect.Intersection.LinePlane(line, plane, doc.ModelAbsoluteTolerance)    


End Sub

 

thanks for your help

Views: 248

Replies to This Discussion

well I should precise my question:

I know that I should get my intersection point using the following code

line.pointAt(d)

but which is weird is that d=-1 and my plane and point intersect...so it should be d= something between 0 and 1

any suggestions ?

 

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