boundare edges scripts
 1-13  14-33  34-39

Previous
Next
 From:  Michael Gibson
5922.34 In reply to 5922.32 
> Or as I can see this command works on solids too, not only on separated surfaces.

Yes ShrinkTrimmedSrf works ok on solids or joined surfaces also, not only on individual surfaces.

- 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
Next
 From:  Andrei Samardac
5922.35 In reply to 5922.34 
Yes you are right, I missed this fact.
  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:  milkywaif
5922.36 In reply to 5922.6 
Hi Michael,

This script is not working for me. I'm trying to select edge boundary of selected faces but my object does not have any naked edges.
Can you please help me? Thanks in advance.

This is what I'm trying to do:
Attachments:

  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
5922.37 In reply to 5922.36 
Hi milkywaif,

> This script is not working for me. I'm trying to select edge boundary of selected faces
> but my object does not have any naked edges.

Yeah that script was specifically designed to target naked edges only because that's what was requested, so if your object does not have naked edges in it, that's normal that particular script will not work with it.

It looks like you want to switch selection from faces to edges but not select edges that were joined between 2 selected faces.

Try this:

script: /* switch selection from selected faces to edges on those faces adjacent to unselected faces */ var gd = moi.geometryDatabase; var seledges = moi.geometryDatabase.createObjectList(); var faces = gd.getSelectedObjects().getFaces(); for ( var i = 0; i < faces.length; ++i ) { var edges = faces.item(i).getEdges(); for ( var j = 0; j < edges.length; ++j ) { var edge = edges.item(j); var allselected = true; var facesofedge = edge.getFacesOfEdge(); for ( var k = 0; k < facesofedge.length; ++k ) { if ( !facesofedge.item(k).selected ) { allselected = false; } } if ( !allselected || facesofedge.length == 1 ) { seledges.addObject( edge ); } } } gd.deselectAll(); seledges.setProperty( 'selected', true );

- 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
Next
 From:  Frenchy Pilou (PILOU)
5922.38 In reply to 5922.37 
Such poetry of the code!
You are in great form! :)
  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:  milkywaif
5922.39 
Yes, this is exactly what I need. Thank you very much!!!
  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:  1-13  14-33  34-39