GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Nexusnui/3DToLD: 3DToLD is a program for converting various 3D file formats to (LDraw) DAT files.

BranchesTags
Open more actions menu

Latest commit

 

History

484 Commits
484 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE
 
 
3D_icon
3D_icon
 
 
ThreeDToLD
ThreeDToLD
 
 
build-stuff
build-stuff
 
 
colorpicker
colorpicker
 
 
3DToLD_Banner.png
3DToLD_Banner.png
 
 
3DToLD_Banner.xcf
3DToLD_Banner.xcf
 
 
AkiruDualColor.png
AkiruDualColor.png
 
 
InnoSetupScript.iss
InnoSetupScript.iss
 
 
LICENSE
LICENSE
 
 
MANUALINSTALL.md
MANUALINSTALL.md
 
 
README.md
README.md
 
 
app_windows.spec
app_windows.spec
 
 
app_windows_portable.spec
app_windows_portable.spec
 
 
graphical_userinterface.gif
graphical_userinterface.gif
 
 
setup.py
setup.py
 
 

Repository files navigation

Image of Custom Part

This is a graphical Python program for converting various 3D file formats(stl,3mf,obj,stp, etc.) to the LDraw file format (.dat).
The converted files can be used with LDview, Bricklink Studio/Partdesigner and other compatible software.

The Graphical Userinterface: Screenshot of the GUI

After loading the source file the output file and part name are set to the same name(with .dat extension).
If defined and found units will be converted to millimeters. For best compatibility the units of the model should be in millimeters.
The default colour("16") will be used if the model contains no colour data, otherwise direct colors are used. In the official LDraw Colour Definition Reference you find all the available colour codes or check out the SetDB Color Guide. They can also be selected through the menu opened with the select button next to colour fields. The main_colour("16") is the colour that can be changed by other editors like Bricklink Studio. It is advised to use LDraw colours and not direct/html colours unless they are unavailable. You can also select a html colour through the menu.

You can create multicolour parts by loading either a coloured/textured or multipart model. Some notes about compatibility of multicolour/-part 3D file formats:

  • coloured multipart 3mf files are supported, but not multimaterial painting created in Slicer(Bambu, Prusa)
  • textures are converted to surface colours
  • not all file formats and the features are fully tested
  • there are some modes of step files trimesh can not load

If a model has multiple objects, they are saved in a "s" folder, if you only want one file uncheck "Multiple Objects".

This version has no commandline interface, that was one available in the previous versions(but I do not recommend using them).

Run/Install:

Currently there is only a installer for Windows Version(x86) and package installable through pipx/pip.
Under Releases you find an installer and portable version for Windows and the package for pipx/pip. If have an antivirus software installed it might warn you, when running the installer.
To avoid the problems with an antivirus or for installation on Linux, Mac and possibly Windows on Arm(untested) follow the manual installation guide, which explains the installation with pipx.

Supported filetypes:

  • types that should work:
    • *.stl *.3mf *.obj *.off *.ply *.gltf *.glb *.xaml *.stp *.step *.dae
  • type that might work (they do not since the update to trimesh >4.7.0):
    • *.brep *.igs *.iges *.bdf *.msh *.inp *.diff *.mesh
  • +more types if trimesh can load them

Filetypes that get tested are: *.stl, *.3mf, *.obj and *.ply
I cannot guaranty that all possible variations/features of these filetypes work.

Known "Issues":

  • The preview may not show objects properly if they are larger the 20 meters(for what could you need a piece that big anyway?).
  • On MacOS: Terminal window in the background, since pipx uses it to run a virtual environment

Prior to release 1.6.0 this software was called "Convert To LDraw" (the repo will be renamed too).
This was originally a fork of a python script of Hazen Babcock.
The code that was used from that script was completely rewritten for the 1.0 release of this software.
This application was also renamed from "stlToDat" to "Convert To LDraw" to reflect the added capabilities of the new version. The repository was unlinked as a fork of "stlToDat" for the release of version 1.3.0, as it is a standalone project.

This uses a modified version of the PyQt Color Picker by nlfmt(Tom F).

About

3DToLD is a program for converting various 3D file formats to (LDraw) DAT files.

Topics

bricklink-studioldrawlego

Resources

Readme
License
Activity

Stars

26 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.