# $triregiontype 前往： 導覽搜尋 The$triregiontype is defining the triangular shape range's arrange method. The format is

$triregiontype @type @periodnumber @period_spacing($\mu m$) ... ... repeat the number of triangular region number$triregionnumber


@type:
1 : triangular , period along x if the periodnumber >1
11 : triangular , period along y if the periodnumber >1
2 : circular shape, period along x if the periodnumber >1
21 :   circular shape, period along y if the periodnumber >1
3 : elliptic shape, period along x if the periodnumber >1
31 :   elliptic shape, period along y if the periodnumber >1
4 : rectangular shape, period along x if the periodnumber >1
41 :   rectangular shape, period along y if the periodnumber >1
5:  sin kx function up, the shape is defined by x_left, x_right, y>sinkx and y<y2
6:  sin kx function down, the shape is defined by x_left, x_right, y<sinkx and y>y2
7:  sin ky function up (be careful to use it), the shape is defined by y_top, y_bottom, x<sinky and x>x2
8:  sin ky  function right (be careful to use it), the shape is defined by y_top, y_bottom, x<sinky and x>x2


The way to define the type is similar to $empty function @periodnumber: How many period numbers used  @@period_spacing: The spacing of each period objects. The unit is ($\mu m$)  The vertex points of aboved types are define in$triranges

Example

$triregionnumber 2  This means that there are two triangular regions. This command must be set after the command$ranges. The "triregionnumber" must be smaller than the "range number".

This command needs to be set before the command before the commands $triregiontype,$triranges,

For example:

$triregionnumber 2  $triregiontype
1 1 2.0
1 5 3.0

\$triranges
0.0 0.0 2.0 2.0 4.0 0.0
4.0 6.0 6.0 8.0 8.0 6.0


x1,y1,x2,y2,x3,y3 are 3 vertex points of triangular