tingr:setsloperule


(tingr:setsloperule  grading  refEntity  slope  offset)

Defines the grading TinGrading entity to use the refEntity as contour, slope angle and offset distance.

Arguments

grading  (ename or vla-object) the TinGrading entity
refEntity  (ename or vla-object) the reference entity to define the grading (any curve entity)
slope  (number)  the slope angle
offset  (number)  the slope offset

Return

T or NIL

Example

(setq grading (tingr:createTinGrading '(0 0 0) '(100 100 100) 100))
(tin:addPoints grading '((10 80 5) (50 50 10) (10 10 2) (80 20 7) (70 60 3) (40 70 10) (25 25 6) (55 55 2) (75 45 5)))

(setq refEntity (entlast))
(tingr:setSlopeRule grading refEntity 0.5 2.0)

Remarks

after creating the grading entity, before it is fully parameterized (see tingr:setSlopeRule and tingr:setSurfaceRule), there might be harmless warning message sat BricsCAD commandline



©  Bricsys NV. All rights reserved.