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

3D SHAPES

This chapter covers all the 3D shape creation commands available in GDL, from the most basic ones to the generation of complex shapes from polylines. Elements for visualization (light sources, pictures) are also presented here, as well as the definition of text to be displayed in 3D. Furthermore, the primitives of the internal 3D data structure consisting of nodes, vectors, edges and bodies are discussed in detail, followed by the interpretation of binary data and guidelines for using cutting planes.

BASIC SHAPES

BLOCK

BLOCK a, b, c

BRICK

BRICK a, b, c

The first corner of the block is in the local origin and the edges with lengths a, b and c are along the x-, y- and z-axes, respectively.

Zero values create degenerated blocks (rectangle or line).

Restriction of parameters: a, b, c >= 0

CYLIND

CYLIND h, r

Right cylinder, coaxial with the z-axis with a height of h and a radius of r.

If h=0, a circle is generated in the x-y plane.

If r=0, a line is generated along the z axis.

Z

b

c a

Y

X

Z

r

h

Y

X

ArchiCAD 11 GDL Reference Guide

31

3D Shapes

SPHERE

SPHERE r

A sphere with its center at the origin and with a radius of r.

Z

r

Y

X

ELLIPS

ELLIPS h, r

Half ellipsoid. Its cross-section in the x-y plane is a circle with a radius of r centered at the origin. The length of the half axis along the z-axis is h.

Example:

ELLIPS r, r

! hemisphere

Z

h

r

Y

X

32

ArchiCAD 11 GDL Reference Guide

3D Shapes

CONE

CONE h, r1, r2, alpha1, alpha2

Frustum of a cone where alpha1 and alpha2 are the angles of inclination of the end surfaces to the z axis, r1 and r2 are the radii of the end-circles and h is the height along the z axis.

If h=0, the values of alpha1 and alpha2 are disregarded and an annulus is generated in the x-y plane.

alpha1 and alpha2 are in degrees.

Restriction of parameters:

0 < alpha1 < 180° and 0 < alpha2 < 180°

Example:

CONE h, r, 0, 90, 90

! a regular cone

Z

 

Z

 

 

 

alpha2

 

 

r2

alpha1

 

 

 

h

 

r1

 

 

Y

 

 

Y

X

PRISM

PRISM n, h, x1, y1, ... xn, yn

Right prism with its base polygon in the x-y plane (see the parameters of “POLY” on page 60 and “POLY_” on page 60). The height along the z-axis is abs(h). Negative h values can also be used. In that case the second base polygon is below the x-y plane.

Restriction of parameters: n >= 3

 

Z

h

 

 

Y

n

2

X

1

ArchiCAD 11 GDL Reference Guide

33

3D Shapes

PRISM_

PRISM_ n, h, x1, y1, s1, ... xn, yn, sn

Similar to the CPRISM_ statement, but any of the horizontal edges and sides can be omitted.

Restriction of parameters: n >= 3

si: status code that allows you to control the visibility of polygon edges and side surfaces. You can also define holes and create segments and arcs in the polyline using special constraints.

See “Status Codes” on page 139 for details. Examples:

PRISM_ 4,1,

PRISM_ 4,1,

0,0,15,

0,0,7,

1,1,15,

1,1,5,

2,0,15,

2,0,15,

1,3,15

1,3,15

34

ArchiCAD 11 GDL Reference Guide

3D Shapes

ROTX 90

PRISM_ 26, 1.2, 0.3, 0, 15,

0.3, 0.06, 15, 0.27, 0.06, 15, 0.27, 0.21, 15, 0.25, 0.23, 15, -0.25, 0.23, 15, -0.27, 0.21, 15, -0.27, 0.06, 15, -0.3, 0.06, 15, -0.3, 0, 15, 0.3, 0, -1, 0.10, 0.03, 15, 0.24, 0.03, 15, 0.24, 0.2, 15, 0.10, 0.2, 15, 0.10, 0.03, -1, 0.07, 0.03, 15, 0.07, 0.2, 15, -0.07, 0.2, 15, -0.07, 0.03, 15, 0.07, 0.03, -1, -0.24, 0.03, 15, -0.24, 0.2, 15, -0.1, 0.2, 15, -0.1, 0.03, 15, -0.24, 0.03, -1

!End of contour

!End of first hole

!End of second hole

!End of third hole

ArchiCAD 11 GDL Reference Guide

35

3D Shapes

j7 = 0

 

j7 = 1

R=1

 

 

H=3

9,

H,

PRISM_

-R,

R,

15,

COS(180)*R,

SIN(180)*R,

15,

COS(210)*R,

SIN(210)*R,

15,

COS(240)*R,

SIN(240)*R,

15,

COS(270)*R,

SIN(270)*R,

15,

COS(300)*R,

SIN(300)*R,

15,

COS(330)*R,

SIN(330)*R,

15,

COS(360)*R,

SIN(360)*R,

15,

R,

R,

15

ADDX 5

9,

H,

PRISM_

-R,

R,

15,

COS(180)*R,

SIN(180)*R,

64+15,

COS(210)*R,

SIN(210)*R,

64+15,

COS(240)*R,

SIN(240)*R,

64+15,

COS(270)*R,

SIN(270)*R,

64+15,

COS(300)*R,

SIN(300)*R,

64+15,

COS(330)*R,

SIN(330)*R,

64+15,

COS(360)*R,

SIN(360)*R,

64+15,

R,

R,

15

36

ArchiCAD 11 GDL Reference Guide