mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2025-09-13 23:59:49 +00:00
cleanup, fix inverted dishes with sculpted sides, add oem key profile
This commit is contained in:
parent
7e9e2f0e1e
commit
72173cffc8
9 changed files with 115708 additions and 7473 deletions
|
@ -3,8 +3,6 @@
|
|||
// same syntax and semantics as built-in sphere, so should be a drop-in replacement
|
||||
// it's a bit slow for large numbers of facets
|
||||
module geodesic_sphere(r=-1, d=-1) {
|
||||
|
||||
echo(r);
|
||||
// if neither parameter specified, radius is taken to be 1
|
||||
rad = r > 0 ? r : d > 0 ? d/2 : 1;
|
||||
|
||||
|
@ -92,7 +90,6 @@ module geodesic_sphere(r=-1, d=-1) {
|
|||
// actually a chord and not circumference but let's say it's close enough
|
||||
// subdivision factor should be rad*2*tan(edge_subtend/2)/$fs
|
||||
side_levels = ceil(log(rad*2*tan(edge_subtend/2)/$fs)/log(2));
|
||||
echo(side_levels);
|
||||
|
||||
// subdivision level based on $fn: (fragments around circumference, not total facets)
|
||||
// icosahedron circumference around equator is about 5 (level 1 is exactly 10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue