Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5892

Problem with PlaneCurveIntersection() - overlaps

$
0
0

@Helvetosaur wrote:

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…

SplitCrvsWPlaneTest.py (1 KB)
OverlapSplit.3dm (26.9 KB)

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)

Thx, --Mitch

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5892

Trending Articles