#this script is an input for the maddi program
#it decomposes the pipe domain 
#using an area function 

read pipe.poly

#define the library and the weight function name  
setAreaFunction ../madd/libweight.so pipearea2

#set min angle to 61
set f=0.34
#set uniform factor to 4
set r=4
#set area ratio to 2
set c=2

dec 

write fa-pipe.poly
writeSubdomains fa-pipe.dat

statistics

exit