From e2611ab48242675d7271fdb42bc4d13fdf9c4579 Mon Sep 17 00:00:00 2001
From: Michael Sippel <micha@fragmental.art>
Date: Mon, 7 Oct 2024 22:15:22 +0200
Subject: [PATCH] add modules per material

---
 handlebar_grip.scad | 59 ++++++++++++++++++++++++---------------------
 1 file changed, 31 insertions(+), 28 deletions(-)

diff --git a/handlebar_grip.scad b/handlebar_grip.scad
index e384dbf..be4ffc7 100644
--- a/handlebar_grip.scad
+++ b/handlebar_grip.scad
@@ -33,7 +33,7 @@ module cap() {
 }
 
 module handle_shape(l=0) {
-   //cylinder(h=l, d=DIAM+2*3, $fn=64);
+    cylinder(h=l, d=DIAM+2*3, $fn=64);
 
     difference()
     {
@@ -109,35 +109,38 @@ for( y = [0:10] ) {
 }
 
 
-color([0.8,0.8,0.8])
-difference() {
-    handle();
-    
-    intersection() {
-    hexshape(100);
-        translate([ 0,0, 5 ])
-        cylinder(d=DIAM+100, h=LEN-2);
-    }
-}
-
-
-/*
-color([0.2,0.47,0.8])
-{
+module part_TPU() {
+    color([0.8,0.8,0.8])
     difference() {
-        translate([0,0,LEN+5])
-        cylinder(d=DIAM, h=5);
         handle();
+    
+        intersection() {
+            hexshape(100);
+            translate([ 0,0, 5 ])
+            cylinder(d=DIAM+100, h=LEN-2);
+        }
     }
-intersection() {
-    hexshape(100);
-    
-    scale([0.95, 0.95, 1])
-    handle_shape();
-    
-    translate([ 0,0, 5 ])
-    cylinder(d=DIAM+1000, h=LEN-2);
-}
 }
 
-*/
\ No newline at end of file
+module part_Glow() {
+    color([0.2,0.47,0.8])
+    {
+        difference() {
+            translate([0,0,LEN+5])
+            cylinder(d=DIAM, h=5);
+            handle();
+        }
+    }
+
+    intersection() {
+        hexshape(100);
+    
+        scale([0.95, 0.95, 1])
+        handle_shape();
+    
+        translate([ 0,0, 5 ])
+        cylinder(d=DIAM+1000, h=LEN-2);
+    }
+}
+
+part_Glow();
\ No newline at end of file