Jump to content
Sign in to follow this  
Harish

Get the points on the surface selected using TCL/Tk script

Recommended Posts

Hello,

 

How to get the point list on the boundary of a selected surface?

 

My goal is to get the distance between the points and set the element density accordingly.

Share this post


Link to post
Share on other sites
1 hour ago, tinh said:

Hi

You can do like this

*createmark points 1 "by surface" $surfID

set PointList [hm_getmark points 1]

 

Thank you for the reply. It worked for me. But  how to get the surface id of the surface currently selected? 

Share this post


Link to post
Share on other sites

Hi

Use 

set surfIDs [ hm_getmark surfs 1]

*createmark points 1 "by surface" {*}$surfIDs

set PointList [hm_getmark points 1]

Or 

*createmark points 1 "by surface on mark" 1

set PointList [hm_getmark points 1]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...