Recommended Posts

This is command-line tool for geometric shape manipulation and exporting as LDraw model.  Typing this in command-line:

LDShapeGenerator.exe --shape rectangular --geometry 1x2x5 --output C:\Windows\Temp\geometry-shape.ldr

You got file with content like this:

0 Rectangular
0 Name: Rectangular
0 Author: LDShapeGenerator
1 27 20.0 24.0 20.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 24.0 60.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 48.0 20.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 48.0 60.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 72.0 20.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 72.0 60.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 96.0 20.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 96.0 60.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 120.0 20.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat
1 27 20.0 120.0 60.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 3003.dat

This tool using only basic regular bricks. Thanks, to this is 100% compatible with LEGO Digital Designer, BrickLink Stud.io and other digital tools that understand LDraw format.

Repository: https://github.com/Jeremy1980/LDShapeGenerator/

Support Center -- go here if you have know more: https://github.com/Jeremy1980/LDShapeGenerator/wiki/

This is example of Cylinder; Trapezoid and three version of Rectangular prism -- 1x2x5 /look at the code above/ , 2x2x2 /knowed as cube/ , 2x5x1 /longest horizontal rectangle/:

geometry-shapes.jpg

Edited by Jarema

Share this post


Link to post
Share on other sites

Could you provide some practical examples (input/output files + command line) so that we can start from this?

Share this post


Link to post
Share on other sites

The only place for official documentation is given in the second reference. This documentation will be enriched with new content with the development of the software.

Share this post


Link to post
Share on other sites

Very interesting project!
Is there any idea to add it to the LDRAW all-in one installer?

About this topic, it would be very useful to provide, in the first post, some examples with image and related ldr file, so that users can see in a glance what this software can do.
With a presentation page, this topic can be added in the section index.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.