algorithmic modeling for Rhino
What is the definition of the t length parameter used to define a position laong the length of a curve. I had thought it was simply a normalized value from 0 to 1 representing a percentage distance along a curve but from the results of my code that is not true and one must also frist determine the value of t i.e.:
To get a point at the mid point of a curve:
Dim rcTParameter As Double
ghobject.Value.LengthParameter(ghobject.Value.GetLength * 0.5, rcTParameter)
rmaPoint.X = ghobject.Value.PointAt(rcTParameter).X
I had hoped that t was betwwen 0 and 1 and I could have simply written:
rmaPoint.X = ghobject.Value.PointAt(0.5).X
thanks
Tags:
Dim t As Double
If (Not ghobject.Value.NormalizedLengthParameter(0.5, t)) Then Return
rmaPoint.X = ghobject.Value.PointAt(t).X
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by