https://github.com/schiele/stl2ldraw
convert stl files to LDraw dat files
https://github.com/schiele/stl2ldraw
Last synced: 3 months ago
JSON representation
convert stl files to LDraw dat files
- Host: GitHub
- URL: https://github.com/schiele/stl2ldraw
- Owner: schiele
- License: gpl-3.0
- Created: 2024-03-18T17:27:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-24T21:39:40.000Z (over 2 years ago)
- Last Synced: 2024-03-25T12:07:29.070Z (over 2 years ago)
- Language: C
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stl2ldraw
This is a utility to convert stl files to LDraw dat files.
This is still a prototype implementation with incomplete error
handling and other technical debt asking for further refactoring.
But in the end this was a weekend hack so far that actually works.
## Features
- Reads binary and ascii STL files.
- Merges very close vertexes that would not produce visual
differences but might cause non-manifold structures.
- Warns about incorrect normal vectors in the STL files and corrects
them.
- Warns about detected non-manifold structures but does not correct
them:
- degenerated faces (faces spanning no area, meaning all points on
one line)
- open edges
- ambiguous edges
- Merges adjacent triangles on the same plane to convex
quadrilaterals.
- Generates lines for sharp edges (more than 25 degrees angle) and
open edges.
- Generates optional lines for soft convex edges (less than 25 degrees
angle). For concave edges, they are not generated since they would
never be visible by their concave nature anyway.