I want to create a picture like this:
This picture was found in Regular Polygon Divisionby Diagonals.
But these codes are too old to run.
I think I can use Graphics`Mesh`FindIntersections
to find all the intersection points.
lines=Line/@Tuples[CirclePoints[7],2];
pts=Graphics`Mesh`FindIntersections[lines]
Graphics[{{Thickness[0.005],lines},{Directive[Red,PointSize[0.02]],Point[pts]}}]
Looks it meets a bug. I need another way or try to fix it.
Graphics`Mesh`FindIntersections[]
. In the meantime: useSubsets[]
instead ofTuples[]
:Line /@ Subsets[CirclePoints[7], {2}]
$\endgroup$