본문 바로가기
<해석프로그램>/하이퍼매쉬 자동화

[하이퍼매쉬 자동화] node에서 추출한 points 를 이용하여 surface 생성

by bigpicture 2020. 9. 14.
반응형

[하이퍼매쉬 자동화] node에서 추출한 points 를 이용하여 surface 생성


surface를 생성할 때, node 를 선택하여 생성할 수도 있고 points 를 선택하여 생성할 수도 있다. node를 선택할 경우 node path 로만 선택이 가능해 기능이 제한적이다.


따라서 surface 가 생성되기 원하는 node를 이용하여 point 를 생성하고, 다시 이 point를 이용하여 surface 를 생성하는 방법을 만들어 보았다. 


먼저 node를 이용하여 point를 생성한다. 이때 생성된 point는 current component의 surface 에 들어가게 된다. 


*createmark nodes 1 "on plane" 0 0 $min 0 0 1 0.1 1 0

set mylist [hm_getmark nodes 1]

set length [llength $mylist]

set zlist ""

for {set i 0} {$i<$length} {incr i} {


*createpoint [hm_getvalue nodes id=[lindex $mylist $i] dataname=x] [hm_getvalue nodes id=[lindex $mylist $i] dataname=y] [hm_getvalue nodes id=[lindex $mylist $i] dataname=z] 0


}


이제 위 point를 이용하여 surface를 생성한다. 


*createmark points 1 "on plane" 0 0 -2 0 0 1 0.1 1 0

*surfacesplinefrompoints points 1 1


반응형

댓글