discuss@lists.openscad.org

OpenSCAD general discussion

View all threads

Need help creating a design similar with the pictures

SV
sorin vatasoiu
Mon, May 9, 2022 12:31 AM

Hi,

I'm trying to simulate this knob. I can handle everything but the circular side with a channel on it.
I can do the flat circular side with the channel, but I cannot figure out how to do the halt side that has an inclination.the code I have for the side part it is:
 $fn = 360;  outsideChannelFlat(); //channelProfile(); 
 module outsideChannelFlat(){     rotate_extrude(angle = 180, convexity = 2) {       translate([57.5/2,0,0])       channelProfile();     } }  module channelProfile(){     difference(){      square([7.2,16.5],center = false);     translate([7.2/2,16.5,0])     circle($fn = 180,  r = 4.5/2);     } }
Any help with the inclined part it is welcomed.
Thank you,
Sorin

Hi, I'm trying to simulate this knob. I can handle everything but the circular side with a channel on it. I can do the flat circular side with the channel, but I cannot figure out how to do the halt side that has an inclination.the code I have for the side part it is:  $fn = 360;  outsideChannelFlat(); //channelProfile();   module outsideChannelFlat(){     rotate_extrude(angle = 180, convexity = 2) {       translate([57.5/2,0,0])       channelProfile();     } }  module channelProfile(){     difference(){      square([7.2,16.5],center = false);     translate([7.2/2,16.5,0])     circle($fn = 180,  r = 4.5/2);     } } Any help with the inclined part it is welcomed. Thank you, Sorin