I want to calculate the total length of edges in a Voronoi diagram like this

I can calculate this with
lengths = RegionMeasure /@ MeshPrimitives[VoronoiMesh[pts], 1];
Total[lengths]
but, I want to eliminate from the calculation the diagrams touching the border of the image. I can select this diagrams like here
and I can keep with the orange diagrams
but I don't know how to calculate the total length of the edges of the last graphic. Any suggestions?





pts? – MarcoB Mar 07 '19 at 21:01SeedRandom[332] pts = RandomReal[1, {100, 2}];
xy = VoronoiMesh[pts, {{0, 1}, {0, 1}}];
i2 = MeshCellIndex[xy, {2, "Interior"}] ;
HighlightMesh[xy, Style[i2, LightOrange]]
– Mati Ger Mar 07 '19 at 21:40