1
0
Эх сурвалжийг харах

fixed 2-manifold issue with logo by splitting one of the polygons

Fernando Pablo Lopez-Lezcano 10 жил өмнө
parent
commit
357524d3bf
1 өөрчлөгдсөн 12 нэмэгдсэн , 8 устгасан
  1. 12 8
      CCRMA_logo.scad

+ 12 - 8
CCRMA_logo.scad

@@ -16,9 +16,14 @@ module poly_path_ccRMA(h)
 {
   scale([25.4/90, -25.4/90, 1]) union()
   {
+    translate([55, 0, 0]) {
     linear_extrude(height=h)
-      polygon([[37.263500,-7.055252],[17.206100,26.404052],[-7.490800,26.417052],[-23.607400,4.154152],[-23.620400,26.391852],[-33.611100,26.391852],[-33.611100,-26.442452],[-13.516900,-26.426452],[-13.116300,-26.385452],[-11.626500,-26.189052],[-8.808700,-25.454152],[-6.170600,-24.257552],[-2.706313,-21.670002],[-0.040700,-18.302752],[1.436600,-15.017589],[2.132100,-11.443152],[2.170100,-10.980352],[2.170100,-10.253452],[2.170100,-9.526652],[2.132100,-9.051152],[1.754275,-6.613576],[1.001000,-4.268848],[0.838900,-3.868248],[0.542100,-3.267148],[0.245400,-2.666048],[-0.039000,-2.190448],[-2.716100,1.188952],[-3.175500,1.636552],[-3.601200,1.991052],[-6.674688,4.043265],[-10.065200,5.359652],[-10.400600,5.459652],[-10.431600,5.478652],[-2.524100,16.388352],[11.673000,16.401352],[37.271700,-26.303452],[47.041200,-26.316452],[47.054200,7.192052],[67.147300,-26.290052],[67.191300,-26.341052],[77.038500,-26.341052],[77.038500,16.526452],[91.010500,16.526452],[91.010500,-26.316052],[100.988700,-26.315652],[138.300300,26.482952],[67.173000,26.522952],[67.160000,-7.091552],[47.065800,26.431852],[47.027800,26.516852],[37.275000,26.517152],[37.262000,-7.054752]]);
-  }
+        // had to break this into two polygons to avoid an invalid two-manifold error
+        polygon([[-15.081100,-7.095502],[-35.138500,26.363802],[-59.835400,26.376802],[-75.952000,4.113902],[-75.965000,26.351602],[-85.955700,26.351602],[-85.955700,-26.482702],[-65.861500,-26.466702],[-65.460900,-26.425702],[-63.971100,-26.229302],[-61.153300,-25.494402],[-58.515200,-24.297802],[-55.050912,-21.710252],[-52.385300,-18.343002],[-50.908000,-15.057839],[-50.212500,-11.483402],[-50.174500,-11.020602],[-50.174500,-10.293702],[-50.174500,-9.566902],[-50.212500,-9.091402],[-50.590325,-6.653826],[-51.343600,-4.309098],[-51.505700,-3.908498],[-51.802500,-3.307398],[-52.099200,-2.706298],[-52.383600,-2.230698],[-55.060700,1.148702],[-55.520100,1.596302],[-55.945800,1.950802],[-59.019287,4.003015],[-62.409800,5.319402],[-62.745200,5.419402],[-62.776200,5.438402],[-54.868700,16.348102],[-40.671600,16.361102],[-15.072900,-26.343702]]);
+        linear_extrude(height=h)
+        polygon([[-15.072900,-26.343702],[-5.303400,-26.356702],[-5.290400,7.151802],[14.802700,-26.330302],[14.846700,-26.381302],[24.693900,-26.381302],[24.693900,16.486202],[38.665900,16.486202],[38.665900,-26.356302],[48.644100,-26.355902],[85.955700,26.442702],[14.828400,26.482702],[14.815400,-7.131802],[-5.278800,26.391602],[-5.316800,26.476602],[-15.069600,26.476902],[-15.082600,-7.095002]]);
+        }
+    }
 }
 
 module poly_path_cCrma(h)
@@ -50,11 +55,10 @@ module poly_path_wave(h)
 
 module ccrma_logo(h)
 {
-
-poly_path_Ccrma(h);
-poly_path_cCrma(h);
-poly_path_ccRMA(h);
-poly_path_wave(h);
+   poly_path_Ccrma(h);
+   poly_path_cCrma(h);
+   poly_path_ccRMA(h);
+   poly_path_wave(h + 0.15);
 }
 
-*ccrma_logo(5);
+*ccrma_logo(1.75);