Wolfram Language

Crossing Count

Version 12 introduces CrossingCount to count how many times a ray starting from the point crosses the closed-curve contour. It is typically used to define a polygon from self-intersecting closed curves.

Color points based on the parity of the crossing count.

In[1]:=1
In[2]:=2
In[3]:=3
In[4]:=4
Out[4]=4

CrossingPolygon gives a polygon based on crossing counts.

In[5]:=5
Out[5]=5

Related Examples

Find out if you already have access to Wolfram tech through your organization
×