Jarema Posted April 16, 2017 Posted April 16, 2017 (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/: Edited April 16, 2017 by Jarema Quote
Philo Posted April 16, 2017 Posted April 16, 2017 Could you provide some practical examples (input/output files + command line) so that we can start from this? Quote
Jarema Posted April 16, 2017 Author Posted April 16, 2017 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. Quote
Calabar Posted April 16, 2017 Posted April 16, 2017 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.