revarbat / BOSL

The Belfry OpenScad Library - A library of tools, shapes, and helpers to make OpenScad easier to use.
https://github.com/revarbat/BOSL/wiki
BSD 2-Clause "Simplified" License
557 stars 62 forks source link

Number do not show #94

Open sonichy opened 1 year ago

sonichy commented 1 year ago
include <BOSL/constants.scad>
use <BOSL/debug.scad>

verts = [[0,-3,0], [-2,-3,0], [0,-3,3], [-2,0,0], [0,0,3], [0,0,0]];
faces = [[1,3,2], [2,3,4], [0,2,4], [4,5,0], [0,1,3], [0,3,5], [0,1,2], [3,4,5]];
debug_vertices(vertices=verts, faces=faces, size=2) {
 polyhedron(points = verts, faces = faces);
}
Parsing design (AST generation)...
Compiling design (CSG Tree generation)...
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 121](https://github.com/revarbat/BOSL/issues/121,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 122](https://github.com/revarbat/BOSL/issues/122,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 123](https://github.com/revarbat/BOSL/issues/123,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 125](https://github.com/revarbat/BOSL/issues/125,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'vector_angle' in file BOSL/debug.scad, line 126](https://github.com/revarbat/BOSL/issues/126,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: atan2() parameter could not be converted in file BOSL/debug.scad, line 127](https://github.com/revarbat/BOSL/issues/127,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: undefined operation (number - undefined) in file debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Problem converting rotate(a=undef) parameter in file BOSL/debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'zrot' in file BOSL/debug.scad, line 130](https://github.com/revarbat/BOSL/issues/130,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 121](https://github.com/revarbat/BOSL/issues/121,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 122](https://github.com/revarbat/BOSL/issues/122,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 123](https://github.com/revarbat/BOSL/issues/123,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 125](https://github.com/revarbat/BOSL/issues/125,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'vector_angle' in file BOSL/debug.scad, line 126](https://github.com/revarbat/BOSL/issues/126,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: atan2() parameter could not be converted in file BOSL/debug.scad, line 127](https://github.com/revarbat/BOSL/issues/127,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: undefined operation (number - undefined) in file debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Problem converting rotate(a=undef) parameter in file BOSL/debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'zrot' in file BOSL/debug.scad, line 130](https://github.com/revarbat/BOSL/issues/130,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 121](https://github.com/revarbat/BOSL/issues/121,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 122](https://github.com/revarbat/BOSL/issues/122,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 123](https://github.com/revarbat/BOSL/issues/123,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 125](https://github.com/revarbat/BOSL/issues/125,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'vector_angle' in file BOSL/debug.scad, line 126](https://github.com/revarbat/BOSL/issues/126,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: atan2() parameter could not be converted in file BOSL/debug.scad, line 127](https://github.com/revarbat/BOSL/issues/127,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: undefined operation (number - undefined) in file debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Problem converting rotate(a=undef) parameter in file BOSL/debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'zrot' in file BOSL/debug.scad, line 130](https://github.com/revarbat/BOSL/issues/130,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 121](https://github.com/revarbat/BOSL/issues/121,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 122](https://github.com/revarbat/BOSL/issues/122,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 123](https://github.com/revarbat/BOSL/issues/123,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 125](https://github.com/revarbat/BOSL/issues/125,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'vector_angle' in file BOSL/debug.scad, line 126](https://github.com/revarbat/BOSL/issues/126,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: atan2() parameter could not be converted in file BOSL/debug.scad, line 127](https://github.com/revarbat/BOSL/issues/127,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: undefined operation (number - undefined) in file debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Problem converting rotate(a=undef) parameter in file BOSL/debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'zrot' in file BOSL/debug.scad, line 130](https://github.com/revarbat/BOSL/issues/130,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 121](https://github.com/revarbat/BOSL/issues/121,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 122](https://github.com/revarbat/BOSL/issues/122,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 123](https://github.com/revarbat/BOSL/issues/123,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 125](https://github.com/revarbat/BOSL/issues/125,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'vector_angle' in file BOSL/debug.scad, line 126](https://github.com/revarbat/BOSL/issues/126,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: atan2() parameter could not be converted in file BOSL/debug.scad, line 127](https://github.com/revarbat/BOSL/issues/127,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: undefined operation (number - undefined) in file debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Problem converting rotate(a=undef) parameter in file BOSL/debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'zrot' in file BOSL/debug.scad, line 130](https://github.com/revarbat/BOSL/issues/130,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 121](https://github.com/revarbat/BOSL/issues/121,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 122](https://github.com/revarbat/BOSL/issues/122,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 123](https://github.com/revarbat/BOSL/issues/123,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 125](https://github.com/revarbat/BOSL/issues/125,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'vector_angle' in file BOSL/debug.scad, line 126](https://github.com/revarbat/BOSL/issues/126,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: atan2() parameter could not be converted in file BOSL/debug.scad, line 127](https://github.com/revarbat/BOSL/issues/127,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: undefined operation (number - undefined) in file debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Problem converting rotate(a=undef) parameter in file BOSL/debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'zrot' in file BOSL/debug.scad, line 130](https://github.com/revarbat/BOSL/issues/130,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 121](https://github.com/revarbat/BOSL/issues/121,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 122](https://github.com/revarbat/BOSL/issues/122,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 123](https://github.com/revarbat/BOSL/issues/123,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 125](https://github.com/revarbat/BOSL/issues/125,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'vector_angle' in file BOSL/debug.scad, line 126](https://github.com/revarbat/BOSL/issues/126,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: atan2() parameter could not be converted in file BOSL/debug.scad, line 127](https://github.com/revarbat/BOSL/issues/127,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: undefined operation (number - undefined) in file debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Problem converting rotate(a=undef) parameter in file BOSL/debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'zrot' in file BOSL/debug.scad, line 130](https://github.com/revarbat/BOSL/issues/130,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 121](https://github.com/revarbat/BOSL/issues/121,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 122](https://github.com/revarbat/BOSL/issues/122,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 123](https://github.com/revarbat/BOSL/issues/123,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'normalize' in file BOSL/debug.scad, line 125](https://github.com/revarbat/BOSL/issues/125,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown function 'vector_angle' in file BOSL/debug.scad, line 126](https://github.com/revarbat/BOSL/issues/126,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: atan2() parameter could not be converted in file BOSL/debug.scad, line 127](https://github.com/revarbat/BOSL/issues/127,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: undefined operation (number - undefined) in file debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Problem converting rotate(a=undef) parameter in file BOSL/debug.scad, line 129](https://github.com/revarbat/BOSL/issues/129,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'zrot' in file BOSL/debug.scad, line 130](https://github.com/revarbat/BOSL/issues/130,E:/HY/OpenSCAD/BOSL/debug.scad) 
ECHO: vertices = [[0, -3, 0], [-2, -3, 0], [0, -3, 3], [-2, 0, 0], [0, 0, 3], [0, 0, 0]]
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
ECHO: faces = [[1, 3, 2], [2, 3, 4], [0, 2, 4], [4, 5, 0], [0, 1, 3], [0, 3, 5], [0, 1, 2], [3, 4, 5]]
Compiling design (CSG Products generation)...
Geometries in cache: 59
Geometry cache size in bytes: 366040
CGAL Polyhedrons in cache: 7
CGAL cache size in bytes: 7948208
Compiling design (CSG Products normalization)...
Normalized tree has 7 elements!
Compile and preview finished.
Total rendering time: 0:00:00.234
Saved design 'E:/OpenSCAD/1.scad'.
Loaded design 'E:/OpenSCAD/1.scad'.
Compiling design (CSG Tree generation)...
[WARNING: variable faces not specified as parameter in file 1.scad, line 6](https://github.com/revarbat/BOSL/issues/6,E:/OpenSCAD/1.scad) 
ECHO: vertices = [[0, -3, 0], [-2, -3, 0], [0, -3, 3], [-2, 0, 0], [0, 0, 3], [0, 0, 0]]
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
[WARNING: Ignoring unknown module 'up' in file BOSL/debug.scad, line 70](https://github.com/revarbat/BOSL/issues/70,E:/HY/OpenSCAD/BOSL/debug.scad) 
Compiling design (CSG Products generation)...
Geometries in cache: 59
Geometry cache size in bytes: 366040
CGAL Polyhedrons in cache: 7
CGAL cache size in bytes: 7948208
Compiling design (CSG Products normalization)...
Normalized tree has 7 elements!
Compile and preview finished.
Total rendering time: 0:00:00.045