「Tin:gettrianglescount」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成:「{{BCAD_LISP_CIVIL}} ; 構文 : (Tin:gettrianglescount ''tinEname'' ''visibleOnly'' ) ; 機能 : tinEname TinSurface エンティティの定義で使用される all…」)
(相違点なし)

2022年10月5日 (水) 07:25時点における版

構文
(Tin:gettrianglescount 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:gettrianglescount tin T)
10

(tin:gettrianglescount tin NIL)
20

関連事項