tinc:createwallbyentity


(tinc:createWallByEntity  ename  type  ent  side  height)

Creates a wall constraint of type using ent as wall defining entity with 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)
ent  (ename) specifies the wall entity (any curve type)
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 constraint (tinc:createWallByEntity tin bcTinWallNomal     (entlast) bcTinWallLeft  5.0))
(setq constraint (tinc:createWallByEntity tin bcTinWallProjected (entlast) bcTinWallRight 10.0))

Remarks

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



©  Bricsys NV. All rights reserved.