SELECT CONTENTS by boundary

Next
 From:  AlexPolo
11230.1 
Hi is there a script that can select the contents an area contained by the 2 or more boundary curves.
something like this.



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:  Grendel
11230.2 In reply to 11230.1 
Not that I am aware of...I have wanted a circular selection tool which looks like would work in this example also using a circular selection to hide the external items, then repeat and invert to get the internal ones.

https://moi3d.com/forum/messages.php?webtag=MOI&msg=3306.1&highlight=yes
  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
11230.3 In reply to 11230.1 
Hi Alex, there is a SelectIntersected script here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8088.5

That only targets solids though, not curves. Is it close to what you need 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
Next
 From:  AlexPolo
11230.4 
Thanks Michael same function but yes curve selection instead of solids is this possible?
  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
11230.5 In reply to 11230.4 
Hi Alex, please try this attached version, it should work on both solids and curves.

Select the boundary curves first before running it.

- Michael

EDIT: Updated to not try to process hidden/locked objects.

EDITED: 23 Oct 2023 by MICHAEL GIBSON

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:  Frenchy Pilou (PILOU)
11230.6 In reply to 11230.5 
Seems don't working for curves !
Works fine for solids & planes surfaces!
  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:  MO (MO_TE)
11230.7 In reply to 11230.5 
Thank you Michael. Another useful script.
It works nicely.
I studied your script. As a thought, what if we use the sketch tool as outline?
I think you can change this to add a pseudo lasso selection tool.
Or possibly circle and polygon selection tools?
something like this:

if ( outlines.length == 0 )
{
save current CPlane
getViewportUnderMouse
if(viewport == 3D) : Align CPlane with 3D view
start "sketch" factory.
Ask the user to draw a curve
when sketch finished : if (curve is open) : close it
use this curve as "Outline"
outlines = "sketch" factory result
}
continue ...
when finished or canceled : restore CPlane
  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
11230.8 In reply to 11230.6 
Hi Pilou,

re:
> Seems don't working for curves !

It's working ok for curves for me, can you please post the .3dm file with the curves that are not working for you?

- 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:  Michael Gibson
11230.9 In reply to 11230.6 
Hi Pilou, thanks for sending me the file. It’s not working there because one of the curves is not planar. For it to work all the curves must be in the same plane.

- 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)
11230.10 In reply to 11230.9 
ok! :)
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  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:  AlexPolo
11230.11 
once again - AMAZING
many thanks 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
 

Reply to All Reply to All