Trim command behavior options
 1  2-21  22-29

Previous
Next
 From:  Michael Gibson
10959.22 In reply to 10959.21 
Hi Pilou,

re:
> And the Trimer works only on curves and not on Lines ?

It works on lInes, but only if the line is being cut up into some pieces. It currently won't remove a line where the line only touches other things at its endpoints instead of being cut somewhere inside the line.

It will be able to do that in the next v5 beta release, it needs an adjustment in the Trim command factory to also target those cases.

- 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)
10959.23 In reply to 10959.22 
Thx for the Infos!
---
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
Next
 From:  Marc (TELLIER)
10959.24 
Nice feature !

It could be interesting this kind of "draw to select" feature could apply on the regular selection behavior.
Perhaps with a modifier key ?

Marc
  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:  Rick
10959.25 
I'm happy to report that my initial post wasn't the result of hallucination- there is a way to streamline trimming but it uses the EXTEND command instead of TRIM- sounds kooky, but it works. Click on a line you want to trim on the side you want to keep, call the EXTEND command and click on the line you want to trim to and the excess line is gone- click away to clear the selection and trim again- the EXTEND command remains active. This is the behavior I originally asked about but couldn't recreate since I was using the wrong command. This method sometimes fails if the line to trim to offers a possibility to actually extend, but most of the time I'm trimming to a line that doesn't have an EXTEND option- can't explain why it trims correctly to a line through a circle, but I don't know what's going on in the code. After trimming this way for while it becomes really efficient- I make 2D drawings using MAKE2D and often have hundreds of lines the run on too far and trimming with EXTEND makes cleaning up a drawing much faster- for me at least.
Rick
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)
10959.26 
Tricky!
---
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
Next
 From:  pressure (PEER)
10959.27 In reply to 10959.25 
Hi Rick,

That's some interesting undocumented functionality you discovered! It also looks like both curves can be trimmed in one go with "mutual extend" by selecting both curves, calling Extend, and clicking Done.

Re:
> the EXTEND command remains active

Do you mean that you're tapping Enter on the keyboard to repeat the Extend command? I don't see the Extend command remaining active, but I can repeat it by tapping Enter like for all other commands.

I went back and read your posts from a few months ago and am thinking there might be a better way though...

Re:
> I wish I could capture the model at the point where all of the
> intersecting lines are broken into separate segments and just run
> around the model deleting all of the segments I want to trim, but I
> can't do anything once the beachball and point insertion process
> starts. It's so close to amazing- if I could forget about swiping and
> get MOI to temporarily insert a point that breaks every line at an
> intersection I could delete the offending line segments in no time.

You can do exactly that already with Trim by doing a "mutual trim" where you select everything, run Trim, and then click Done.

http://moi3d.com/4.0/docs/moi_command_reference4.htm#trim



But, like you ran into with the QuickTrim plugin, there might be some spinning beach ball for a little while. I just tried doing mutual trim on a drawing with 4700 curves and that took about 23 seconds to insert the temporary break points. But, doing 1200 of those curves only took 2 seconds.

Since mutual trimming bogs down with large numbers of curves it's probably a good idea to work on one section of a drawing at a time like Michael suggested. An easy way to do that is by selecting all the curves that cross an area using a right-to-left area selection box and then run Trim. Fragments to remove can be selected in groups with left-to-right area selection.

Re:
> Calling a Trim command and having it trim a selected line to
> intersections without clicking the cutting line and the segment to be
> deleted would be ideal, maybe with the option to delete or keep the new
> segment.

A plugin could be made along these lines, but what would the advantage be vs mutual trim? It could get around the performance issues when there are thousands of curves, but working on one area of a drawing at a time also does that.

Re:
> often have hundreds of lines the run on too far

Are you talking about problems with hidden line generation where a line that's visible but that disappears behind a solid object doesn't end exactly where it should? Are you running V5 beta Apr-13-2023? Michael made some pretty significant improvements to hidden line generation in the recent betas. Still not perfect especially on threads, but might save you quite a bit of work if you're not already using it.

Also, turning up the Resolution of make2d might help minimize the length of the line overshoots. The default is 25, but cranking it up to like 200 will make the overshoots a little shorter. Resolution of 200 requires having about 10 GB of RAM available.

- Peer

EDITED: 17 Nov 2024 by PEER

  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:  Rick
10959.28 In reply to 10959.27 
Peer,
I can't thank you enough for pointing out what was right in front of me all along- the TRIM/MUTUAL option is exactly what I wanted- breaking a group of lines at every intersection. I regenerated some MAKE2D files, and cleaning them up is much easier- thanks again.
Rick
  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:  Matadem
10959.29 
This quicktrim script just saved me allot of time. :D
  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  2-21  22-29