Jump to content

Recommended Posts

Posted (edited)

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
Posted

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

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...