discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Wish: explicitly negative volume components

PW
Piotr Wyderski
Sun, Dec 10, 2017 10:25 AM

Where is the problem in using a difference() operation, which was indeed
introduced to get along without negation?

There is absolutely no problem, especially since I stopped using OpenSCAD.

Best regards,
Piotr Wyderski

2017-12-08 18:00 GMT+01:00 Parkinbot rudolf@parkinbot.com:

Piotr Wyderski wrote

The real power comes from the ability to combine both positive and
negative
volumes within a single module.

module ball_hole() {

union { negative() sphere(r=1, center=true);
            cube(0.1, center=true);
}

}

I would say, the real power comes from using the appropriate Boolean
operation:

module ball_hole()
difference { cube(0.1, center=true); sphere(r=1, center=true);  }

A negative object will exend to infinite. It can't be rendered and will
obviously create a bag full of problems if used as operand in the Boolean
operations difference() and union(), while just intersection is save.
Where is the problem in using a difference() operation, which was indeed
introduced to get along without negation?

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

> Where is the problem in using a difference() operation, which was indeed > introduced to get along *without* negation? There is absolutely no problem, especially since I stopped using OpenSCAD. Best regards, Piotr Wyderski 2017-12-08 18:00 GMT+01:00 Parkinbot <rudolf@parkinbot.com>: > Piotr Wyderski wrote > > The real power comes from the ability to combine both positive and > > negative > > volumes within a single module. > > > > module ball_hole() { > > > > union { negative() sphere(r=1, center=true); > > cube(0.1, center=true); > > } > > } > > I would say, the real power comes from using the appropriate Boolean > operation: > > > > module ball_hole() > > difference { cube(0.1, center=true); sphere(r=1, center=true); } > > A negative object will exend to infinite. It can't be rendered and will > obviously create a bag full of problems if used as operand in the Boolean > operations difference() and union(), while just intersection is save. > Where is the problem in using a difference() operation, which was indeed > introduced to get along *without* negation? > > > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
DM
doug moen
Sun, Dec 10, 2017 2:27 PM

Piotr, what are you using instead of openscad?

On Sunday, 10 December 2017, Piotr Wyderski piotr.wyderski@gmail.com
wrote:

Where is the problem in using a difference() operation, which was indeed
introduced to get along without negation?

There is absolutely no problem, especially since I stopped using OpenSCAD.

 Best regards,
 Piotr Wyderski

2017-12-08 18:00 GMT+01:00 Parkinbot rudolf@parkinbot.com:

Piotr Wyderski wrote

The real power comes from the ability to combine both positive and
negative
volumes within a single module.

module ball_hole() {

union { negative() sphere(r=1, center=true);
            cube(0.1, center=true);
}

}

I would say, the real power comes from using the appropriate Boolean
operation:

module ball_hole()
difference { cube(0.1, center=true); sphere(r=1, center=true);  }

A negative object will exend to infinite. It can't be rendered and will
obviously create a bag full of problems if used as operand in the Boolean
operations difference() and union(), while just intersection is save.
Where is the problem in using a difference() operation, which was indeed
introduced to get along without negation?

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Piotr, what are you using instead of openscad? On Sunday, 10 December 2017, Piotr Wyderski <piotr.wyderski@gmail.com> wrote: > > Where is the problem in using a difference() operation, which was indeed > > introduced to get along *without* negation? > > There is absolutely no problem, especially since I stopped using OpenSCAD. > > Best regards, > Piotr Wyderski > > 2017-12-08 18:00 GMT+01:00 Parkinbot <rudolf@parkinbot.com>: > >> Piotr Wyderski wrote >> > The real power comes from the ability to combine both positive and >> > negative >> > volumes within a single module. >> > >> > module ball_hole() { >> > >> > union { negative() sphere(r=1, center=true); >> > cube(0.1, center=true); >> > } >> > } >> >> I would say, the real power comes from using the appropriate Boolean >> operation: >> >> >> > module ball_hole() >> > difference { cube(0.1, center=true); sphere(r=1, center=true); } >> >> A negative object will exend to infinite. It can't be rendered and will >> obviously create a bag full of problems if used as operand in the Boolean >> operations difference() and union(), while just intersection is save. >> Where is the problem in using a difference() operation, which was indeed >> introduced to get along *without* negation? >> >> >> >> >> >> -- >> Sent from: http://forum.openscad.org/ >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > >