Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model not generated #1

Open
BenRoe opened this issue Aug 7, 2019 · 8 comments
Open

Model not generated #1

BenRoe opened this issue Aug 7, 2019 · 8 comments

Comments

@BenRoe
Copy link

BenRoe commented Aug 7, 2019

Hello,
i am a openscad newbie. If i open the DES_ChocChordCaps.scadfile, i get a lot of warnings and the model is not generated.
I installed this scad-utils libraries.

Parsing design (AST generation)...
Saved backup file: /Users/Jon/Documents/OpenSCAD/backups/DES_ChocChordCaps-backup-xJL27550.scad
Compiling design (CSG Tree generation)...
WARNING: variable crossSection not specified as parameter, in file DES_ChocChordCaps.scad, line 12
WARNING: variable Legends not specified as parameter, in file DES_ChocChordCaps.scad, line 12
WARNING: len() parameter could not be converted, in file scad-utils/trajectory.scad, line 7
WARNING: len() parameter could not be converted, in file scad-utils/trajectory.scad, line 7
WARNING: len() parameter could not be converted, in file scad-utils/trajectory.scad, line 7
WARNING: len() parameter could not be converted, in file scad-utils/trajectory.scad, line 7
WARNING: len() parameter could not be converted, in file scad-utils/trajectory.scad, line 7
WARNING: Ignoring unknown function 'to_3d', in file skin.scad, line 11.
WARNING: len() parameter could not be converted, in file skin.scad, line 37
WARNING: len() parameter could not be converted, in file skin.scad, line 67
WARNING: len() parameter could not be converted, in file skin.scad, line 37
ERROR: Recursion detected calling function 'len' in file skin.scad, line 59
TRACE: called by 'max_element', in file skin.scad, line 52.
TRACE: called by 'distribute_extra_vertex', in file skin.scad, line 52.
TRACE: called by 'distribute_extra_vertex', in file skin.scad, line 52.
TRACE: called by 'distribute_extra_vertex', in file skin.scad, line 52.
TRACE: called by 'distribute_extra_vertex', in file skin.scad, line 52.
TRACE: called by 'distribute_extra_vertex', in file skin.scad, line 52.
Compiling design (CSG Products generation)...
Geometries in cache: 1
Geometry cache size in bytes: 0
CGAL Polyhedrons in cache: 0
CGAL cache size in bytes: 0
Compiling design (CSG Products normalization)...
Normalized CSG tree has 0 elements
Compile and preview finished.
Total rendering time: 0 hours, 0 minutes, 1 seconds

@pseudoku
Copy link
Owner

pseudoku commented Aug 25, 2019

You will also need to install comprehension-demo. and move around some files to corresponding folders.

@BenRoe
Copy link
Author

BenRoe commented Aug 28, 2019

Added the mention scad files to my library folder ‎⁨HDD⁩ ▸ ⁨Benutzer⁩ ▸ ⁨Ben⁩ ▸ ⁨Documents⁩ ▸ ⁨OpenSCAD⁩ ▸ libraries

Changed the library path in the code:

use <morphology.scad> //for cheaper minwoski 
use <transformations.scad>
use <shapes.scad>
use <trajectory.scad>
use <trajectory_path.scad>
use <sweep.scad>
use <skin.scad>  

and get this error.
ERROR: Recursion detected calling function 'len' in file skin.scad, line 59

@pseudoku
Copy link
Owner

Are you still getting WARNING: Ignoring unknown function 'to_3d', in file skin.scad, line 11? Recursion failure reproducible by incorrectly defining path call in skin.scad: use <scad-utils/transformations.scad>. You can move the library or fix the call at skin.scad.

This is my fault for keeping disorderly lib path. I'll fix it comes next push thereby breaking things for the rest of user. Sorry.

@kelsh
Copy link

kelsh commented Sep 24, 2019

Thanks, i have similar problems. I am new to scad. The error I get is:
ERROR: Recursion detected calling function 'len' in file skin.scad, line 59
I also get a fairly large number of warnings in the console.
I believe i have the path correct to the transformations library.

Forgive my ignorance, but is there an alternative format that could be exported to?

@pseudoku
Copy link
Owner

Added the library.zip in the repository, please give it try and see if that fixes the issue and let me know if error continues to persist. Thank you.

@uqs
Copy link

uqs commented Mar 6, 2022

The problem still persists for me, with either the provided libraries.zip or downloading the head version of scad-utils on OpenSCAD 2021.01 I get lots of errors:

Loaded design 'PseudoMakeMeKeyCapProfiles/MX_DES_Convex.scad'.
Used file cache size: 12 files
Compiling design (CSG Tree generation)...
[WARNING: undefined operation (-undefined) in file trajectory.scad, line 15](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/15,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad) 
[WARNING: len() parameter could not be converted in file ../../../home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad, line 7](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/7,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad) 
[WARNING: undefined operation (undefined > number) in file trajectory.scad, line 7](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/7,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad) 
[WARNING: len() parameter could not be converted in file ../../../home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad, line 7](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/7,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad) 
[WARNING: undefined operation (undefined > number) in file trajectory.scad, line 7](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/7,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad) 
[WARNING: undefined operation (-undefined) in file trajectory.scad, line 14](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/14,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad) 
[WARNING: len() parameter could not be converted in file ../../../home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad, line 7](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/7,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad) 
[WARNING: undefined operation (undefined > number) in file trajectory.scad, line 7](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/7,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad) 
[WARNING: len() parameter could not be converted in file ../../../home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad, line 7](https://github.com/pseudoku/PseudoMakeMeKeyCapProfiles/issues/7,/home/.../.local/share/OpenSCAD/libraries/scad-utils/trajectory.scad)
...

@dohn-joh
Copy link

dohn-joh commented Feb 7, 2024

@uqs @BenRoe @kelsh Did you ever figure out how to fix this? I'm also getting >200 warnings, all related to trajectory.scad.

@allymparker
Copy link

allymparker commented May 14, 2024

Anyone wanting to solve this problem either needs to:

  1. Download the latest version of scad-utils from the openscad repo rather than using the zip in this repo, or;
  2. Download a 2019 version of OpenSCAD from https://files.openscad.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants