P
peter@schmelzernet.de
Sun, Jun 1, 2025 7:15 AM
Hi,
I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
Thank you very much
Peter
Hi,
I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
\
Thank you very much
Peter
SP
Sanjeev Prabhakar
Sun, Jun 1, 2025 7:30 AM
you need to create difference from the main module it seems.
Attached is the revised code
On Sun, 1 Jun 2025 at 12:45, peter--- via Discuss <
discuss@lists.openscad.org> wrote:
Hi,
I have been trying for hours to create a rectangular cut-out for a USB
connector in the enclosure wall.
I watched the tutorials, but found them very complex. I tried to
understand how the ‘difference’ and ‘minkowski’ functions work.
Unfortunately, I have to admit that I didn't understand how they work.
I looked at various examples on the Internet and tried to implement them.
Unfortunately without success. The code, I’m using is from a Github
repository.
It would be very nice if someone could tell me what I need to change in
the source code to get the rectangle cut-out. It is the red rectangle. The
source code is attached.
Thank you very much
Peter
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
you need to create difference from the main module it seems.
Attached is the revised code
On Sun, 1 Jun 2025 at 12:45, peter--- via Discuss <
discuss@lists.openscad.org> wrote:
> Hi,
>
> I have been trying for hours to create a rectangular cut-out for a USB
> connector in the enclosure wall.
>
> I watched the tutorials, but found them very complex. I tried to
> understand how the ‘difference’ and ‘minkowski’ functions work.
> Unfortunately, I have to admit that I didn't understand how they work.
>
> I looked at various examples on the Internet and tried to implement them.
> Unfortunately without success. The code, I’m using is from a Github
> repository.
>
> It would be very nice if someone could tell me what I need to change in
> the source code to get the rectangle cut-out. It is the red rectangle. The
> source code is attached.
>
>
> Thank you very much
>
> Peter
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
PS
Peter Schmelzer
Sun, Jun 1, 2025 7:35 AM
Hi Sanjeev,
awesome! Thank you so much... 😀
Best regards
Peter
Hi,
I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
Thank you very much
Peter
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org mailto:discuss-leave@lists.openscad.org
Hi Sanjeev,
awesome! Thank you so much... 😀
Best regards
Peter
> Am 01.06.2025 um 09:30 schrieb Sanjeev Prabhakar <sprabhakar2006@gmail.com>:
>
> you need to create difference from the main module it seems.
> Attached is the revised code
>
> On Sun, 1 Jun 2025 at 12:45, peter--- via Discuss <discuss@lists.openscad.org <mailto:discuss@lists.openscad.org>> wrote:
>> Hi,
>>
>> I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
>>
>> I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
>>
>> I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
>>
>> It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
>>
>>
>> Thank you very much
>>
>> Peter
>>
>>
>>
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org <mailto:discuss-leave@lists.openscad.org>
> <PCB_case_v1_rev1.scad>
P
peter@schmelzernet.de
Sun, Jun 1, 2025 7:37 AM
Hi Sanjeev,
awesome! Thank you so much.
Now I have understood how it works!
Best regards
Peter
Hi Sanjeev,
awesome! Thank you so much.
Now I have understood how it works!
Best regards
Peter
SP
Sanjeev Prabhakar
Sun, Jun 1, 2025 7:45 AM
Hi Sanjeev,
awesome! Thank you so much.
Now I have understood how it works!
Best regards
Peter
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
you are welcome
On Sun, 1 Jun 2025 at 13:07, peter--- via Discuss <
discuss@lists.openscad.org> wrote:
> Hi Sanjeev,
>
> awesome! Thank you so much.
>
> Now I have understood how it works!
>
>
> Best regards
>
> Peter
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
GH
gene heskett
Sun, Jun 1, 2025 9:55 AM
On 6/1/25 03:15, peter--- via Discuss wrote:
Hi,
I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
Do you understand "scope" The first "statement" defines a shape,
subsequent lines in the same scope within a {} pair are statements
following the same rules but defining what is to be subtracted from the
initial statement. For that initial shape, complex structures can be
built by putting them in a union() after the difference() statement.
I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
Thank you very much
Peter
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
On 6/1/25 03:15, peter--- via Discuss wrote:
> Hi,
>
> I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
>
> I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
Do you understand "scope" The first "statement" defines a shape,
subsequent lines in the same scope within a {} pair are statements
following the same rules but defining what is to be subtracted from the
initial statement. For that initial shape, complex structures can be
built by putting them in a union() after the difference() statement.
>
> I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
>
> It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
>
> \
> Thank you very much
>
> Peter
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
M
mikeonenine@web.de
Sun, Jun 1, 2025 1:05 PM
Hi Sanjeev,
awesome! Thank you so much.
Now I have understood how it works!
Best regards
Peter
I would round the corners of the hole to avoid cracking:
Replace
//cube([5,13,5]);
with
rotate([0, 90, 0])
linear_extrude(5)
offset(1)
square([5,13]);
peter@schmelzernet.de wrote:
> Hi Sanjeev,
>
> awesome! Thank you so much.
>
> Now I have understood how it works!
>
> Best regards
>
> Peter
I would round the corners of the hole to avoid cracking:
Replace
`//cube([5,13,5]);`
with
`rotate([0, 90, 0])`
`linear_extrude(5)`
`offset(1)`
`square([5,13]);`
PS
Peter Schmelzer
Sun, Jun 1, 2025 1:25 PM
Understood, thank you very much!
Hi,
I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
Do you understand "scope" The first "statement" defines a shape, subsequent lines in the same scope within a {} pair are statements following the same rules but defining what is to be subtracted from the initial statement. For that initial shape, complex structures can be built by putting them in a union() after the difference() statement.
I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
Thank you very much
Peter
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Cheers, Gene Heskett, CET.
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Understood, thank you very much!
> Am 01.06.2025 um 11:55 schrieb gene heskett via Discuss <discuss@lists.openscad.org>:
>
> On 6/1/25 03:15, peter--- via Discuss wrote:
>> Hi,
>>
>> I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
>>
>> I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
> Do you understand "scope" The first "statement" defines a shape, subsequent lines in the same scope within a {} pair are statements following the same rules but defining what is to be subtracted from the initial statement. For that initial shape, complex structures can be built by putting them in a union() after the difference() statement.
>>
>> I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
>>
>> It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
>>
>> \
>> Thank you very much
>>
>> Peter
>>
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org
>
> Cheers, Gene Heskett, CET.
> --
> "There are four boxes to be used in defense of liberty:
> soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author, 1940)
> If we desire respect for the law, we must first make the law respectable.
> - Louis D. Brandeis
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
HW
Harvey white
Sun, Jun 1, 2025 3:18 PM
There are some tricks to make life easier:
I use a structure:
difference()
{
union()
{
// define things here as base object
}
union()
{
// define things here as objects to be subtracted from base object
}
}
The way difference works is that the first object (union, here, and
anything in that union) is the base, everything else gets subtracted
from it. the second union contains objects to be subtracted.
Generally, you'll have a difficult time positioning those objects,
orientation, position, etc. The trick is to comment out the
difference(). That simply gives you the base object and the objects to
be subtracted as objects. I generally color them all red for
visibility. You can easily see where everything is. Uncommenting the
difference() shows you the effect.
Harvey
On 6/1/2025 3:15 AM, peter--- via Discuss wrote:
Hi,
I have been trying for hours to create a rectangular cut-out for a USB
connector in the enclosure wall.
I watched the tutorials, but found them very complex. I tried to
understand how the ‘difference’ and ‘minkowski’ functions work.
Unfortunately, I have to admit that I didn't understand how they work.
I looked at various examples on the Internet and tried to implement
them. Unfortunately without success. The code, I’m using is from a
Github repository.
It would be very nice if someone could tell me what I need to change
in the source code to get the rectangle cut-out. It is the red
rectangle. The source code is attached.
Thank you very much
Peter
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
There are some tricks to make life easier:
I use a structure:
difference()
{
union()
{
// define things here as base object
}
union()
{
// define things here as objects to be subtracted from base object
}
}
The way difference works is that the first object (union, here, and
anything in that union) is the base, everything else gets subtracted
from it. the second union contains objects to be subtracted.
Generally, you'll have a difficult time positioning those objects,
orientation, position, etc. The trick is to comment out the
difference(). That simply gives you the base object and the objects to
be subtracted as objects. I generally color them all red for
visibility. You can easily see where everything is. Uncommenting the
difference() shows you the effect.
Harvey
On 6/1/2025 3:15 AM, peter--- via Discuss wrote:
>
> Hi,
>
> I have been trying for hours to create a rectangular cut-out for a USB
> connector in the enclosure wall.
>
> I watched the tutorials, but found them very complex. I tried to
> understand how the ‘difference’ and ‘minkowski’ functions work.
> Unfortunately, I have to admit that I didn't understand how they work.
>
> I looked at various examples on the Internet and tried to implement
> them. Unfortunately without success. The code, I’m using is from a
> Github repository.
>
> It would be very nice if someone could tell me what I need to change
> in the source code to get the rectangle cut-out. It is the red
> rectangle. The source code is attached.
>
>
> Thank you very much
>
> Peter
>
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org
PS
Peter Schmelzer
Sun, Jun 1, 2025 3:50 PM
Hi Harvey,
great idea. Thanks. I'll follow your suggestion in the future.
BR Peter
Am 01.06.2025 um 17:18 schrieb Harvey white via Discuss discuss@lists.openscad.org:
There are some tricks to make life easier:
I use a structure:
difference()
{
union()
{
// define things here as base object
}
union()
{
// define things here as objects to be subtracted from base object
}
}
The way difference works is that the first object (union, here, and anything in that union) is the base, everything else gets subtracted from it. the second union contains objects to be subtracted.
Generally, you'll have a difficult time positioning those objects, orientation, position, etc. The trick is to comment out the difference(). That simply gives you the base object and the objects to be subtracted as objects. I generally color them all red for visibility. You can easily see where everything is. Uncommenting the difference() shows you the effect.
Harvey
On 6/1/2025 3:15 AM, peter--- via Discuss wrote:
Hi,
I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
Thank you very much
Peter
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Hi Harvey,
great idea. Thanks. I'll follow your suggestion in the future.
BR Peter
> Am 01.06.2025 um 17:18 schrieb Harvey white via Discuss <discuss@lists.openscad.org>:
>
> There are some tricks to make life easier:
>
> I use a structure:
>
> difference()
>
> {
>
> union()
>
> {
>
> // define things here as base object
>
> }
>
> union()
>
> {
>
> // define things here as objects to be subtracted from base object
>
> }
>
> }
>
>
> The way difference works is that the first object (union, here, and anything in that union) is the base, everything else gets subtracted from it. the second union contains objects to be subtracted.
>
> Generally, you'll have a difficult time positioning those objects, orientation, position, etc. The trick is to comment out the difference(). That simply gives you the base object and the objects to be subtracted as objects. I generally color them all red for visibility. You can easily see where everything is. Uncommenting the difference() shows you the effect.
>
> Harvey
>
>
> On 6/1/2025 3:15 AM, peter--- via Discuss wrote:
>>
>> Hi,
>>
>> I have been trying for hours to create a rectangular cut-out for a USB connector in the enclosure wall.
>>
>> I watched the tutorials, but found them very complex. I tried to understand how the ‘difference’ and ‘minkowski’ functions work. Unfortunately, I have to admit that I didn't understand how they work.
>>
>> I looked at various examples on the Internet and tried to implement them. Unfortunately without success. The code, I’m using is from a Github repository.
>>
>> It would be very nice if someone could tell me what I need to change in the source code to get the rectangle cut-out. It is the red rectangle. The source code is attached.
>>
>>
>> Thank you very much
>>
>> Peter
>>
>>
>>
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> To unsubscribe send an email to discuss-leave@lists.openscad.org
> _______________________________________________
> OpenSCAD mailing list
> To unsubscribe send an email to discuss-leave@lists.openscad.org