$Version
"10.4.1 for Microsoft Windows (64-bit) (April 11, 2016)"
I want to match the based point of VoronoiMesh(pts in code) with its polygon(poly in code).This is my code
SeedRandom[2016526]
pts = RandomReal[{-1, 1}, {15, 2}];
mesh = VoronoiMesh[pts];
Show[%, Graphics[{Orange, Point[pts]}]]
poly = MeshPrimitives[mesh, 2];
When using the documentation of RelationGraph's first method:
RelationGraph[RegionMember[#2, #1] &, Join[pts, poly]]
We get a wrong result and a error information like
In this case,I can understand its error information but its wrong result.Then we try its second method in documentation.
RelationGraph[RegionMember[#2, #1] &, pts, poly]
We get some error information and the right result.Confuse me about it error informations like following
But I think I'm using this function in a right way.How to understand these phenomena?And when I use Echo to look this code's process
But as the documentation
I think shouldn't appear the elements of pts to be the parameter of RegionMember at the same time.This is a bug or I miss something?And how to adjust this code?






RelationGraph:) – yode May 26 '16 at 11:29