MoI discussion forum
MoI discussion forum

Full Version: Trim command behavior options

Show messages:  1-6  7-26  27-29

From: pressure (PEER)
20 May 2023   [#27] In reply to [#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

Image Attachments:
Rick_trim.gif 


From: Rick
21 May 2023   [#28] In reply to [#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
From: Matadem
28 May 2023   [#29]
This quicktrim script just saved me allot of time. :D

Show messages:  1-6  7-26  27-29