Inhalt

Index

SWEEP

SWEEP generates a tubular surface by displacement of a polylined contour along a spatial polyline (= path curve); in order to get a twisted tube with a tapering or dilating cross-section, the polylined contour may be scaled and/or rotated during displacement. The plane of the polylined contour follows the spatial polyline determining the path: at node (xi, yi, zi) the corresponding plane is perpendicular to the spatial polyline segment between the nodes (xi-1, yi-1, zi-1) and (xi, yi, zi).

The path determining polyline must have its beginning in the XY plane. If this condition is not fulfilled, the polyline will be moved along the Z axis automatically, until the condition is fulfilled.

sweep

Syntax

SWEEP n, m, alpha, scale, mask, u1, v1, s1, ... , un, vn, sn, x1, y1, z1, ... ,xm, ym, zm

Parameters

n (integer): number of polyline nodes

m (integer): number of path curve nodes

alpha: incremental rotation of the polylined contour from one node to the next one in its own plane

scale: incremental scale factor of the polylined contour from one node to the next one

mask: controls the existence of the bottom, top and side surfaces (see below)

ui, vi (decimal): X and Y coordinates of the polyline nodes

xi, yi, zi: X, Y and Z coordinates of the path curve nodes

parameter restrictions: n > 1, m > 1, z1 < z2

Masking

mask = j1 + 2*j2 + 4*j3

with j1, j2, j3 may be 0 or 1
j1 (1): bottom surface is present
j2 (2): top surface is present
j3 (4): side surfaces are present

Remarks

Usable since script version 1.1 (Allplan 2012-1).



Allplan

(C) ALLPLAN GmbH

Privacy policy