Tinc:createboundarybypoints

提供:GizmoLabs - だいたい CAD LISP なサイト
構文
(Tinc:createboundarybypoints ename type Points )


機能
TinSurfaceエンティティのポイントを使用するタイプの境界制約を作成する。 整数識別子またはNILを返す。


引数
  • ename : TinSurface エンティティのename。
  • type : 作成される境界制約の型を表す整数 bcTinShow=0、bcTinHide=1、bcTinOuter=2)
  • Points : 境界の輪郭を定義する 2D/3D の点リスト。


戻り値
ID, 制約の識別子、または操作に失敗した場合はNIL


  • メモ
    • 境界制約の型については、型定数を参照。


サンプル
(vl-load-tin)
(setq tin (tin:createTin '(0 0 0) '(100 100 100) 1000))
(setq points '((20 20)(60 20)(60 60)(20 60)))
(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) ))

(setq constraint (tinc:createBoundaryByPoints tin 2 points))
(setq constraint (tinc:createBoundaryByPoints tin 1  points))
(setq constraint (tinc:createBoundaryByPoints tin 0  points))


関連事項