In testing a recent script to split curves with a plane, I ran across what appears to be a bug when a curve overlaps the plane. Below is the script, and a test file…
I am using the world ZX plane to test here. On the “Bad” layer, note that the curves are split by the script only at the start of the overlap, not at the end. I checked and the two parameters for each overlap are indeed being passed to the SplitCurve() function. However, the one or the other is always 0. (The non-overlapping curves on the “Good” layer work fine)
To check, I (painfully) duplicated the script in vb Rhinoscript and it works perfectly.
TestSplitCrvsWPlane.rvb (929 Bytes)
So, is the problem something I did wrong with the Python script, or is there a bug in the intersection or split functions?
(BTW, tested this in the WIP and same result)