algorithmic modeling for Rhino
Can someone help me out with understanding the continuity types?
When I need to find discontinuities or tangent changes etc. I generally just cycle through the list pictured until I get what I wanted, but I would like to gain an understanding of what each one means and how they differ from each other.
This is the code that I am using to check though curves:
Curve c = (Curve) x.Duplicate();
double st = c.Domain.Min;
while(st >= 0){
double t = 0;
c.GetNextDiscontinuity(Continuity.C2_continuous, st, c.Domain.Max, out t);
if (t < 0){break;}
st = t;
Print(t.ToString());
}
or if you prefer VB:
Dim c As curve = x.duplicate
Dim t As New Double
Dim st As Double = c.Domain.Min
While c.GetNextDiscontinuity(Continuity.C2_continuous, st, c.Domain.Max, t)
st = t
print(t)
End While
It doesn't get the start and the end points (which I like) but I am curious about that because according to my logic the start and end points would be considered a discontinuity.
Tags:
I'm going to have to ask Dale to explain this if the documentation isn't sufficient. I do know that by definition the curve start and end-points are considered completely continuous. Just because the physical curve ends there doesn't mean the underlying polynomials are discontinuous.
The Continuity enumeration in RhinoCommon is documented though I agree the text raises several questions without providing answers.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by