public static Map<String, MergedVertex> getMergedVertexes(Shape shape)
	{
		Map<String, MergedVertex> mergedVertexes = new HashMap<>();

		for (Face f : shape.getFaces())
		{
			for (Vertex v : f.getVertexes())
			{
				MergedVertex mv = mergedVertexes.get(v.baseName());
				if (mv == null)
				{
					mv = new MergedVertex(v);
					mergedVertexes.put(v.baseName(), mv);
				}
				else
					mv.addVertex(v);
			}

		}

		return mergedVertexes;

	}
public static Map < String , MergedVertex > getMergedVertexes ( Shape shape ) { Map < String , MergedVertex > mergedVertexes = new HashMap < > ( ) ; for ( Face f : shape . getFaces ( ) ) { for ( Vertex v : f . getVertexes ( ) ) { MergedVertex mv = mergedVertexes . get ( v . baseName ( ) ) ; if ( mv == null ) { mv = new MergedVertex ( v ) ; mergedVertexes . put ( v . baseName ( ) , mv ) ; } else mv . addVertex ( v ) ; } } return mergedVertexes ; }
Gets the list of {@link MergedVertex} for a {@link Shape}.

@param shape the shape
@return a {@link HashMap} where the key is the {@link Vertex#baseName()} of the vertexes merged.