Open aweltsch opened 5 years ago
@aweltsch Thank you for your feedback. I'll check the bug.
Should this also work for rotate_extrude? I'm new to OpenSCAD, only ever played with linear_extrude. I forked this repo and it looks like the fix would be very simple, going to create a PR. I am guessing that rotate_extrude has the same problem as linear_extrude.
class Linear_Extrude(_Transformation):
def _validate_append(self, obj):
from .shapes_2d import Shape2dObject
if not isinstance(obj, (Shape2dObject, Transformation)):
raise TypeError('Appended object must be a instance of Shape2dObject or Transformation.')
class Rotate_Extrude(_Transformation):
def _validate_append(self, obj):
from .shapes_2d import Shape2dObject
if not isinstance(obj, (Shape2dObject, Transformation)):
raise TypeError('Appended object must be a instance of Shape2dObject.')
As you can see, there is a check that is run to make sure it's the right instance, but this happens for rotate_extrude too.
Hi thank you for creating this library.
I discovered a bug in the logic related to linear extrusion. Trying to execute the following code results in an exception. I am using version 0.3.2
This results in an exception (which seems to be related to #5)
I would expect that the library can generate openscad output like this: