[OpenSCAD] WARNING: Scaling a 2D object with 0 - removing object

Dan Shriver tabbydan at gmail.com
Tue May 21 12:10:37 EDT 2019


I get the warning in my old version of OpenScad too.  But it also renders a
wedge (suggesting the warning, at least in my version, happens every time
there is multiplication by zero; but that it does not necessarily really
remove the object).  If both arguments are zero it renders a pyramid.


On Tue, May 21, 2019 at 11:38 AM A. Craig West <acraigwest at gmail.com> wrote:

> That is a totally valid case in a linear extrude. If you apply this to a
> square, you will get a wedge as a result
>
> On Tue, 21 May 2019, 11:29 Dan Shriver, <tabbydan at gmail.com> wrote:
>
>> your first number in "scale" is zero.  So it is doing a multiplication by
>> zero on that.  Not sure what you are expecting
>>
>> On Tue, May 21, 2019 at 10:22 AM kevfquinn <co at kevquinn.com> wrote:
>>
>>> I get the warning, "Scaling a 2D object with 0 - removing object" when
>>> first
>>> running code like this:
>>>
>>>   linear_extrude(height=10,scale=[0.0,1.0])
>>>   square([10.0,10.0],center=true);
>>>
>>> As far as I can tell, it's correctly generating what I'm expecting and
>>> doesn't look like it has removed anything, but am I missing something?
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://forum.openscad.org/
>>>
>>> _______________________________________________
>>> OpenSCAD mailing list
>>> Discuss at lists.openscad.org
>>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>>>
>> _______________________________________________
>> OpenSCAD mailing list
>> Discuss at lists.openscad.org
>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190521/5d56fc57/attachment.html>


More information about the Discuss mailing list