tinc:createbreaklinebypoints


(tinc:createBreaklineByPoints  ename  type  points  elevType)

Creates a breakline constraint of type using points and elevType for the 'ename' (ename) TinSurface; returns ID identifier (integer) or NIL.

Arguments

ename  (ename) the TinSurface entity
type  (integer 0...1) type of the breakline constraint to be created (bcTinBreaklineNomal 0, bcTinNonDestructive 1)
points  (list of 2d/3d points) list of points, defining the breakline contour
elevType  (integer 1...3, bcTinElevationMin 1, bcTinElevationMax 2, bcTinElevationMid 3) defines the elevation type for the breakline constraint

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:createBreaklineByPoints tin bcTinBreaklineNomal points bcTinElevationMid))
(setq constraint (tinc:createBreaklineByPoints tin bcTinNonDestructive points  bcTinElevationMid))

(setq constraint (tinc:createBreaklineByPoints tin bcTinBreaklineNomal points bcTinElevationMin))
(setq constraint (tinc:createBreaklineByPoints tin bcTinNonDestructive points  bcTinElevationMin))

Remarks

for the breakline constraint type, see Type Constants



©  Bricsys NV. All rights reserved.