thomascorrie / Miscellany

A collection of miscellaneous nodes for Dynamo
GNU Lesser General Public License v3.0
16 stars 3 forks source link

Handle 0 dimensions in PackingService #13

Open thomascorrie opened 6 years ago

thomascorrie commented 6 years ago

Feeding a Container with a dimension of 0 into any of the PackingService nodes will result in an error:

Warning: PackingService.PackContainer operation failed. 
One or more errors occurred.

Items with a 0 dimension fail too. Revise nodes to handle error with more explanation.

Vanman989 commented 6 years ago

Could you input X and Y if your using 2D and Z defaults to 1 if your not inputting anything? Then you can still sort things to get location points. Not sure the 1 actually effects anything in "2D" packing.