discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: chat-gpt

JA
jeremy ardley
Thu, Apr 6, 2023 11:09 AM

However, chatGPT has little knowledge of operscad

Quote:

in openscad give me the steps to create an m6 Hex head bolt length 25mm

Answer:

bolt_length = 25;
thread_diameter = 6;
thread_pitch = 1;
head_height = 4;
head_diameter = 10;

module hex_head(height, diameter) {
    cylinder(h = height, r1 = diameter/2, r2 = diameter/2, $fn=6);
}

module threaded_shaft(length, diameter) {
    cylinder(h = length, r = diameter/2, $fn=100);
}

translate([0, 0, bolt_length])
    hex_head(head_height, head_diameter);

threaded_shaft(bolt_length, thread_diameter);

Sadly it's missed out on the M6 thread etc

On 6/4/23 18:54, jeremy ardley via Discuss wrote:


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
Kind Regards,

Jeremy Ardley

Ph: 0419 903 492 (+61 419 903 492)
Ph: 08 6280 0008 (+61 8 6280 0008)
TZ: Western Australia UTC+8

However, chatGPT has little knowledge of operscad Quote: in openscad give me the steps to create an m6 Hex head bolt length 25mm Answer: >>>>>>>>>>>>>>>>> bolt_length = 25; thread_diameter = 6; thread_pitch = 1; head_height = 4; head_diameter = 10; module hex_head(height, diameter) {     cylinder(h = height, r1 = diameter/2, r2 = diameter/2, $fn=6); } module threaded_shaft(length, diameter) {     cylinder(h = length, r = diameter/2, $fn=100); } translate([0, 0, bolt_length])     hex_head(head_height, head_diameter); threaded_shaft(bolt_length, thread_diameter); >>>>>>>>>>>>>>>>> Sadly it's missed out on the M6 thread etc On 6/4/23 18:54, jeremy ardley via Discuss wrote: > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org -- Kind Regards, Jeremy Ardley Ph: 0419 903 492 (+61 419 903 492) Ph: 08 6280 0008 (+61 8 6280 0008) TZ: Western Australia UTC+8