pseudoku / PseudoMakeMeKeyCapProfiles

Parametric Key Caps
GNU General Public License v3.0
648 stars 100 forks source link

Model not generated #1

Open BenRoe opened 5 years ago

BenRoe commented 5 years ago

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 commented 4 years ago

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

BenRoe commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 2 years ago

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 commented 6 months ago

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

allymparker commented 3 months ago

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/