MoI discussion forum
MoI discussion forum

Full Version: Make2D - merge overlapping lines

From: Franz
19 May 2020   [#1]
Hello everybody

I like to use the function "make2d" to project two-dimensional drawings from 3D bodies in the different views.
This often results in lines lying on top of each other.
Is there a way how to merge overlapping lines, which are similar up to a certain tolerance, to one line?

An hour later:
Now I have found out that 2 curves lying exactly on top of each other can be merged with the "booleanmerge" command.
The calculation time depends on the resolution setting. However, if the two curves do not have the same length, for example, the merge will not work.
Here something else would be required.

Thanks for a hint.
Franz
From: Michael Gibson
19 May 2020   [#2] In reply to [#1]
Hi Franz, there is a "RemoveDuplicates" command which might help for that:
http://moi3d.com/3.0/docs/moi_command_reference10.htm#removeduplicates
quote:

Currently only works on curves, removes other curves that are duplicates within a specified tolerance (curve endpoints must be in tolerance too).

The RemoveDuplicates command does not currently have a button in the UI, it must be set up on a keyboard shortcut (under Options > Shortcut keys) or have its command name typed in (press Tab first to enter a command name) to launch it.


Removing overlaps that do not have the same length is a lot more difficult.

- Michael
From: Franz
19 May 2020   [#3] In reply to [#2]
Hi Michael!

Thanks for the really quick answer.
I should have read the moi command reference more carefully...

Best regards
Franz