tingr:createtingrading


(tingr:createtingrading  minPoint  maxPoint  numPoints)

Creates and initialises a Civil TinGrading entity for the range of minPoint, maxPoint and numPoints.

Arguments

minPoint  (2d/3d point list) the approx. lower-left (minimum) point for the Grading
maxPoint  (2d/3d point list) the approx. lower-left (minimum) point for the Grading
numPoints  (integer) approx. number of points for the Grading

Return

ename of the created Grading or NIL

Example

(vl-load-tin)
(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)))

Remarks

all initialisation data are only used for an initial, internal setup of the Grading, for optimal memory management;
these parameters are not a kind of limit or restriction

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.