Tin:getpointscount

提供:GizmoLabs - だいたい CAD LISP なサイト
構文
(Tin:getpointscount tinEname visibleOnly )


機能
tinEname TinSurface エンティティの定義で使用される all または visibleOnly ポイントの数を返す。


引数
  • tinEname : (ename または vla-object) 問い合わせる TinSurface エンティティ
  • visibleOnly : すべての定義点を数える(NIL)か,見える点だけを数える(T)かを指定する。


戻り値
点の数



サンプル

(vl-load-tin)
(setq tin (tin:createTin '(0 0 0) '(100 100 100) 1000))
(tin:addpoints tin '((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) ))

(tin:getPointsCount tin T)
9

(tin:getPointsCount tin NIL)
9

関連事項