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

STATUS CODES

Status codes introduced in the following pages allow users to create segments and arcs in planar polylines using special constraints.

Planar polylines with status codes at nodes are the basis of many GDL elements:

POLY_, PLANE_, PRISM_, CPRISM_, BPRISM_, FPRISM_, HPRISM_, SPRISM_, SLAB_, CSLAB_, CROOF_, EXTRUDE, PYRAMID, REVOLVE, SWEEP, TUBE, TUBEA

Status codes allow you:

to control the visibility of planar polyline edges

to define holes in the polyline

to control the visibility of side edges and surfaces

to create segments and arcs in the polyline

STATUS CODE SYNTAX

The si number is a binary integer (between 0 and 127) or -1.

s = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 32*j6 + 64*j7 [+ a_code] where j1, j2, j3, j4, j5, j6, j7 can be 0 or 1.

The j1, j2, j3, j4 numbers represent whether the vertices and the sides are present (1) or omitted (0): j1: lower horizontal edge

j2: vertical edge

j3: upper horizontal edge j4: side

j5: horizontal edge in line elimination (for PRISM_ shapes only) j6: vertical edge in line elimination (for PRISM_ shapes only)

j7: special additional status value effective only when j2=1 and controls the viewpoint dependent visibility of the current vertical edge

j2=0: the vertical edge is always invisible

j2=1 and j7=1: the vertical edge is only visible when it is a contour observed from the current direction of view j2=1 and j7=0: the vertical edge is always visible

ArchiCAD 11 GDL Reference Guide

139

Status Codes

Possible status values (the heavy lines denote visible edges):

invisible surface

visible surface

a_code: additional status code (optional) which allow you to create segments and arcs in the polyline.

si=-1 is used to define holes directly into the prism. It marks the end of the contour and the beginning of a hole inside of the contour. It is also used to indicate the end of one hole’s contour and the beginning of another. Coordinates before that value must be identical to the coordinates of the first point of the contour/hole. If you have used the -1 mask value, the last mask value in the parameter list must be -1, marking the end of the last hole.

The holes must be disjunct and internal intersections are forbidden in the polygon for a correct shading/rendering result.

140

ArchiCAD 11 GDL Reference Guide