tinc:createwallbypoints


(tinc:createWallByPoints  ename  type  points  side  height)

Creates a wall constraint of type using points and height and side for the ename TinSurface; returns ID identifier (integer) or NIL.

Arguments

ename  (ename) the TinSurface entity
type  (integer 0...1) type of the wall constraint to be created (bcTinWallNomal 0, bcTinWallProjected 1)
points  (list of 2d/3d points) list of points, defining the wall contour
side  (integer 0...1, bcTinWallLeft 0, bcTinWallRight 1) 
height  (number) the wall height

Return

(integer) ID, identifier of the constraint, or NIL if the operation fails

Example

(setq points '((30 30)(50 30)(50 50)(30 50)))
(setq constraint (tinc:createWallByPoints tin bcTinWallNomal     points bcTinWallLeft  5.0))
(setq constraint (tinc:createWallByPoints tin bcTinWallProjected points bcTinWallRight 10.0))

Remarks

for the wall constraint type and the side enum, see Type Constants



©  Bricsys NV. All rights reserved.