Jump to content
Sign in to follow this  
vreddy

Finding a closed loop free edges

Recommended Posts

Yes, there is not direct but simple way

It is like this

*createmarkpanel elems 1 "Select elements:"
hm_blockerrormessages 1
catch {*findloops elems 1 0}
hm_blockerrormessages 0
if {[hm_entityinfo exist comps ^loops]} {
     #if you use hm14 or newers:
     *createmark elems 1 "by comp name" ^loops
     set FreeEdgeLoops [hm_findconnectedpatches elems 1]
     #if you use hm13 or olders:
     upgrade => version14 
     #just joke! try isolate only component ^loops, and gather its elems "by attached"
}

 

Rahul R, Merula and Toan Nguyen like this

Share this post


Link to post
Share on other sites

Hi tinh ,


 

*findloops elems 1 0   -> is not creating component named ^loops

 

It will work only for shell elements ??? (not for 1D)

 

Thank's for your reply.

 

Share this post


Link to post
Share on other sites

Yes it works with shell Vreddy

Dont create free edges by *findedges

Use *findloops will create just loops

If you still want to use ^edges, try

*createmark elems 1 "by comp name" ^edges

set Loops [hm_findconnectedpatches elems 1]

 

But sometimes, free edges are not loops (example if you have a flat plate with a rib on it)

Rahul R likes this

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...