mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Fix error after refactor, added comments
This commit is contained in:
parent
1ebf947ff2
commit
1df9066340
3 changed files with 12 additions and 7 deletions
|
@ -31,10 +31,9 @@ class ShapeArray:
|
|||
arr = cls.arrayFromPolygon(shape, flip_vertices)
|
||||
return cls(arr, offset_x, offset_y)
|
||||
|
||||
## Return an offset and hull ShapeArray from a scenenode.
|
||||
## Return an offset and hull ShapeArray from a scene node.
|
||||
@classmethod
|
||||
def fromNode(cls, node, min_offset, scale = 0.5):
|
||||
# hacky way to undo transformation
|
||||
transform = node._transformation
|
||||
transform_x = transform._data[0][3]
|
||||
transform_y = transform._data[2][3]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue