GithubHelp home page GithubHelp logo

nascentmaker / scadi Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 493 KB

SCAD Inliner: Roll up OpenSCAD includes into the main file for easy sharing.

Home Page: https://nascentmaker.com/py/scadi

License: MIT License

Python 94.04% Ruby 5.75% OpenSCAD 0.21%

scadi's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @NascentMaker
  • ๐Ÿ‘€ Iโ€™m interested in 3D-printing, Python, C++, Manjaro+Sway, LoRa, drones, ethical hacking.
  • ๐ŸŒฑ Iโ€™m currently learning logic analyzers, PCB design, OpenSCAD, and 3D printing.
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on Arduino and Raspberry Pi and anything written in Python.

scadi's People

Contributors

dependabot[bot] avatar pre-commit-ci[bot] avatar tbjers avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

scadi's Issues

OpenSCAD fails to open inlined file that uses the BOSL2 library

Describe the bug

When opening an inlined model that uses a larger library like BOSL2, OpenSCAD produces an error:

ERROR: Recursion detected calling function 'is_num' in file inline-hex-grid-test.scad, line 40782
TRACE: called by 'is_finite' in file inline-hex-grid-test.scad, line 23609
TRACE: called by 'is_vector' in file inline-hex-grid-test.scad, line 8223
TRACE: called by 'attachable' in file inline-hex-grid-test.scad, line 9789
TRACE: called by 'cube' in file inline-hex-grid-test.scad, line 6036
TRACE: called by '_cube' in file inline-hex-grid-test.scad, line 9790
TRACE: called by 'children' in file inline-hex-grid-test.scad, line 8250
TRACE: called by 'children' in file inline-hex-grid-test.scad, line 6034
TRACE: called by 'if' in file inline-hex-grid-test.scad, line 6034
TRACE: called by '_color' in file inline-hex-grid-test.scad, line 8250
TRACE: called by 'if' in file inline-hex-grid-test.scad, line 8249
TRACE: called by 'multmatrix' in file inline-hex-grid-test.scad, line 8242
TRACE: called by 'attachable' in file inline-hex-grid-test.scad, line 9789
Geometries in cache: 1
Geometry cache size in bytes: 0
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Total rendering time: 0:00:00.000

To Reproduce

Steps to reproduce the behavior:

  1. Enter command arguments scadi inline hex-grid-test.scad
  2. Run openscad -o inline-hex-grid-test.stl inline-hex-grid-test.scad
  3. See the error

Expected behavior

OpenSCAD should export an STL without errors.

Proposed solution

  • Add revarbat/BOSL2 as a submodule in tests/samples
  • Add hex-grid.scad to tests/samples
  • Create end-to-end tests using OpenSCAD
  • Add installation of OpenSCAD to CI/CD pipeline

Doesn't seem to work with libraries in the user library directory on windows

Describe the bug

The tool fails to inline libraries that are in the SCAD user library directory (C:\Users<user>\Documents\OpenSCAD\libraries)

To Reproduce

Steps to reproduce the behavior:

  1. install BOLS in user scad library
  2. create an scad file with the only line "include <BOSL2/std.scad>;"
  3. run scadi
  4. inlined file is empty

Additional context

It does successfully inline files that are in the same directory as the target file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.