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

kevfquinn co at kevquinn.com
Tue May 21 13:10:52 EDT 2019


I'm expecting the square to scale to a line, on the understanding that the
source code is an "ideal" mathematical expression of the shape.

In other words I'm expecting it to be identical to:

  linear_extrude(height=10.0)
  polygon([[-5,0],[5,0],[0,10]]);

(bar the rotation).


DanS 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@

> > 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 .openscad

>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>>
> 
> _______________________________________________
> OpenSCAD mailing list

> Discuss at .openscad

> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org





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



More information about the Discuss mailing list