Tool to combine/reduce the number of parts?


Tool to combine/reduce the number of parts?
#1
I am creating a large mosaic image. Unfortunately, the largest plate in MLCAD's generator is 2x4, and the largest in LDDMC is 2x2. So this large mosaic has many many small parts. Is there a tool that can, say, combine two 2x4 plates to create one 4x4 plate, etc.? Thank you.

Mike
Reply
RE: Tool to combine/reduce the number of parts?
#2
(2020-02-06, 20:04)Michael Horvath Wrote: I am creating a large mosaic image. Unfortunately, the largest plate in MLCAD's generator is 2x4, and the largest in LDDMC is 2x2. So this large mosaic has many many small parts. Is there a tool that can, say, combine two 2x4 plates to create one 4x4 plate, etc.? Thank you.

Mike
In LDDMC under "Settings" -> "Export" you can set it to substitute parts according to your "part_types.txt" file. Enabling this will cause the generated LDraw file to use larger plates when possible.

If you really want to just build with 4x4 plates, then I can add that as an option to "construction techniques" as well.

You can also create the mosaic with 1x1 plates and simply use 4x4 plates when building. It all depends on your use case.
Reply
RE: Tool to combine/reduce the number of parts?
#3
(2020-02-06, 23:37)Lasse Deleuran Wrote: In LDDMC under "Settings" -> "Export" you can set it to substitute parts according to your "part_types.txt" file. Enabling this will cause the generated LDraw file to use larger plates when possible.

If you really want to just build with 4x4 plates, then I can add that as an option to "construction techniques" as well.

You can also create the mosaic with 1x1 plates and simply use 4x4 plates when building. It all depends on your use case.

Wow, I did not know LDDMC was configurable! I will take a look at "part_types.txt", thanks. What I really want is for the program to always use the largest plates possible.
Reply
RE: Tool to combine/reduce the number of parts?
#4
(2020-02-07, 11:45)Michael Horvath Wrote: Wow, I did not know LDDMC was configurable! I will take a look at "part_types.txt", thanks. What I really want is for the program to always use the largest plates possible.

LDDMC tries to maximize the size of the parts used. However. Placing one very large part might force the use of a larger number of smaller parts, so this is not an easy problem to solve. LDDMC uses a heuristic where it always tries to cover the mosaic in the largest parts first, then the second largest, and so on. It is not guaranteed that it will always choose the optimal placement, or largest plates as you put it. For the nitty-gritty details, the source code for the heuristic is found here: https://github.com/LasseD/brickgraphics/...mizer.java
Reply
RE: Tool to combine/reduce the number of parts?
#5
(2020-02-07, 12:39)Lasse Deleuran Wrote: LDDMC tries to maximize the size of the parts used. However. Placing one very large part might force the use of a larger number of smaller parts, so this is not an easy problem to solve. LDDMC uses a heuristic where it always tries to cover the mosaic in the largest parts first, then the second largest, and so on. It is not guaranteed that it will always choose the optimal placement, or largest plates as you put it. For the nitty-gritty details, the source code for the heuristic is found here: https://github.com/LasseD/brickgraphics/...mizer.java

Good to know, thank you!
Reply
RE: Tool to combine/reduce the number of parts?
#6
(2020-02-06, 23:37)Lasse Deleuran Wrote: In LDDMC under "Settings" -> "Export" you can set it to substitute parts according to your "part_types.txt" file. Enabling this will cause the generated LDraw file to use larger plates when possible.

In which folder is "part_types.txt" supposed to go? What is the syntax inside this file? Could you provide an example? Thanks.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 3 Guest(s)