Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
05 ArchiCAD 11 GDL Reference Guide.pdf
Скачиваний:
59
Добавлен:
11.03.2015
Размер:
3.22 Mб
Скачать

3D Shapes

CUTEND

CUTEND

ROTX 90

FOR I=1 TO 3

FOR J=1 TO 5 CUTPOLY 4, 0, 0, 1, 0, 1, 1, 0, 1 ADDX 1.2

NEXT J

DEL 5 ADDY 1.2

NEXT I

DEL NTR()-1

ADD -0.2, -0.2, 0 BRICK 6.2, 3.8, 1 FOR K=1 TO 15

CUTEND NEXT K DEL TOP

CUTPOLYA

CUTPOLYA n, status, d,

x1, y1, mask1, ... xn, yn, maskn [, x, y, z]

[statement1

statement2

...

statementn]

CUTEND

Similar to the CUTPOLY definition, but with the possibility to control the visibility of the edges of the generated polygons. The cutting form is a half-infinite tube with the defined polygonal cross-section. If the end of the cutting form hangs down into the body, it will cut out the corresponding area.

104

ArchiCAD 11 GDL Reference Guide

3D Shapes

status: controls the treatment of the generated cut polygons

1:use the attributes of the body for the generated polygons and edges.

2:generated cut polygons will be treated as normal polygons.

d: the distance between the local origin and the end of the half-infinite tube. d = 0 means a cut with an infinite tube.

maski: similar to the PRISM_ statement.

maski = j1 + 2 * j2 + 4 * j3 + 64 * j7

Example:

X

ROTX 90

 

 

 

 

FOR I=1 TO 3

 

 

 

 

FOR J=1 TO 5

 

 

 

 

CUTPOLYA 6, 1, 0,

5,

 

1,

0.15,

900,

0.15,

0.15,

0,

90, 4007,

 

0,

0.85,

5,

900,

0.85,

0.85,

0,

90, 4007

 

ADDX 1

NEXT J

DEL 5

ADDY 1

NEXT I

DEL NTR()-1

ADD -0.2, -0.2, 0

BRICK 5.4, 3.4, 0.5

FOR K=1 TO 15

CUTEND

NEXT K

DEL TOP

Z

j2 j3

Y

i

j1

i+1

ArchiCAD 11 GDL Reference Guide

105

3D Shapes

CUTSHAPE

CUTSHAPE d [, status]

[statement1 statement2 ... statementn]

CUTEND

status: controls the treatment of the generated cut polygons. If not specified (for compatibility reasons) the default value is 3.

status = j1 + 2*j2

j1: use the attributes of the body for the generated polygons and edges j2: generated cut polygons will be treated as normal polygons

FOR I = 1 TO 5

ADDX 0.4 * I

ADDZ 2.5

CUTSHAPE 0.4

DEL 2

ADDX 0.4

NEXT I

DEL TOP

BRICK 4.4, 0.5, 4

FOR I = 1 TO 5

CUTEND

NEXT I

CUTFORM

CUTFORM n, method, status, rx, ry, rz, d,

x1, y1, mask1,

...

xn, yn, maskn

Similar to the CUTPOLYA definition, but with the possibility to control the form and extent of the cutting body. method: Controls the form of the cutting body

1:prism shaped

2:pyramidal

3:wedge-shaped cutting body. The direction of the wedge’s top edge is parallel to the Y axis and its position is in rx, ry, rz (ry is ignored.)

106

ArchiCAD 11 GDL Reference Guide

3D Shapes

status: Controls the extent of the cutting body and the treatment of the generated cut polygons and new edges.

status = j1 + 2*j2 + 8*j4 + 16*j5 + 32*j6 + 64*j7 + 128*j8

j1: use the attributes of the body for the generated polygons and edges j2: generated cut polygons will be treated as normal polygons

j4, j5: define the limit of the cut: j4 = 0 and j5 = 0:finite cut

j4 = 0 and j5 = 1:semi-infinite cut j4 = 1 and j5 = 1:infinite cut

j6: generate a boolean intersection with the cutting body rather than a boolean difference. (can only be used with the CUTFORM command)

j7 : edges generated by the bottom of the cutting body will be invisible j8 : edges generated by the top of the cutting body will be invisible

rx, ry, rz: defines the direction of cutting if the cutting form is prism-shaped, or the top of the pyramid if the method of cutting is pyramidal

d: defines the distance along rx, ry, rz to the end of the cut. If the cut is infinite, this parameter has no effect. If the cut is finite, then the start of the cutting body will be at the local coordinate system and the body will end at a distance of d along the direction defined by rx, ry, rz

If the cut is semi-infinite, then the start of the cutting body will be at a distance of d along the direction defined by rx, ry, rz, and the direction of the semi-infite cut will be in the opposite direction defined by rx, ry, rz.

mask: Defines the visibilty of the edges of the cutting body

maski = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 64*j7

j1: the polygon will create a visible edge upon entry into the body being cut j2: the lengthwise edge of the cutting form will be visible

j3: polygon will create a visible edge upon exiting the body being cut

ArchiCAD 11 GDL Reference Guide

107