Research Article

CAD Fractal Art Pattern Design and Evaluation Based on RBF Network Algorithm

Algorithm 1

RBF network algorithm.
 Construction matrix M = 0
 //The initialization matrix M judges the adjacent relationship of faces in two levels
 for i = 1: n
  for j = 1:m
   If and are adjacent
    M(i,j) = 1;
   end
  end
 end
 //Judge whether two classes can be merged
 if M≠0
  V1 = sum(M);//Sum the columns in M
  V2 = sum(M′);//M ′is the transpose matrix of M. if all elements in V1 or V2 are equal
  //The adjacency relationship of each face is the same
   Merge(c1,c2); //Merge c1, c2
  end
 end