}
/** Do a node->node conversion of a QuadPattern - return original QuadPattern for "no change" */
public static QuadPattern transform(NodeTransform nodeTransform, QuadPattern pattern)
{
QuadPattern qp2 = new QuadPattern() ;
boolean changed = false ;
for ( Quad quad : pattern )
{
Quad q2 = transform(nodeTransform, quad) ;
qp2.add(q2) ;
if ( q2 != quad )
changed = true ;
}
if ( ! changed )
return pattern ;