Grasshopper

algorithmic modeling for Rhino

Hi,

I'm trying tu split a curve in vb script.

How are we suppose to use split?

thanks for help

Views: 272

Replies to This Discussion

I find : x:curve y:double

A = x.Split(y)

can we split with point3d?
ccHHat!

Dim p As point3d = L(0)(0)
Dim crv As curve = L(0)(1)
Dim t As New Double


crv.GetClosestPoint(p, t)
A = crv.split(t)

YOUPI!
Congrats :)

--
David Rutten
david@mcneel.com
Seattle, WA
Thanks David:)

how can we get the distance between two xyz point?

Each time I creat a line and use .length, may be there is something more accurate.

regards,

Renaud
Private Sub RunScript(ByVal p1 As Point3d, ByVal p2 As Point3d, ByRef A As Object)

A = p1.DistanceTo(p2)

End Sub
thanks David:)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service