[scripting] Remove that hole!
All  1-8  9-11

Previous
Next
 From:  9krausec
9671.9 
"Hi Clayton, so you mean you want to do the entire process without any user interaction at all, not even selecting an outline of the hole to remove?"

^ Yep! I was hoping I could get away with it. So far I've gotten internal holes to work the way I want them to, but these split holes made up of two faces have got me stumped. I'll look into some research papers about feature detection to see if I can decipher and apply their secrets.

After reading up on the topic here on the forum, it seems like their isn't a way to filter edge selection based in surface continuity to be able to target all "hard" edges. Would you please confirm this as the case?

Thank you for all your replies! I'm no where close to a genius, but I'll do some research on white papers as you have suggested.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9671.10 In reply to 9671.9 
Hi Clayton,

re:
> After reading up on the topic here on the forum, it seems like their isn't a way to filter
> edge selection based in surface continuity to be able to target all "hard" edges. Would
> you please confirm this as the case?

There isn't any pre-packaged way to do that but I think there is now enough surface evaluation stuff exposed to script that your script could determine this.

That would be something like test several points between edge.domainMin and edge.domainMax , call edge.evaluatePoint( t ) to get a 3d point along the edge, for each face call face.dropPoint( pt ); to get the face's uv parameter space value of the 3D point, call face.evaluateNormal( uv ) to get the normal vector and compare the normals of each face.

I'll see about adding in a more convenient way though.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  nameless
9671.11 In reply to 9671.10 
This is so interesting to me. Following this thread! :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-8  9-11