tinc:createboundarybypoints


(tinc:createBoundaryByPoints  ename  type  points)

Creates a boundary constraint of type using points for the ename TinSurface entity; returns integer identifier or NIL.

Arguments

ename  (ename) the TinSurface entity
type  (integer 0...2) type of the boundary constraint to be created (bcTinShow 0, bcTinHide 1, bcTinOuter 2)
points  (list of 2d/3d points) list of points, defining the boundary contour

Return

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

Example

(setq points '((20 20)(60 20)(60 60)(20 60)))
(setq constraint (tinc:createBoundaryByPoints tin bcTinOuter points))
(setq constraint (tinc:createBoundaryByPoints tin bcTinHide  points))
(setq constraint (tinc:createBoundaryByPoints tin bcTinShow  points))

Remarks

for the boundary constraint type, see Type Constants



©  Bricsys NV. All rights reserved.