Skip to content

Commit 218d73b

Browse files
Copilotgonzalocasas
andcommitted
Update Shape.transform() docstring to reflect scale handling
Co-authored-by: gonzalocasas <933277+gonzalocasas@users.noreply.github.com>
1 parent 953c2f4 commit 218d73b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/compas/geometry/shapes/shape.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,11 @@ def to_brep(self):
347347
def transform(self, transformation):
348348
"""Transform the shape.
349349
350-
Transformations of a shape are performed by applying the transformation to the frame of the shape.
351-
Transformations of the shape with respect to its local coordinate system are not supported.
352-
For this reason, only (combinations of) translations and rotations are supported.
353-
To scale a shape, use the :meth:`Shape.scale` method.
350+
Transformations of a shape are performed by applying the transformation to the frame of the shape,
351+
and by extracting and applying any scale component to the shape's dimensional parameters.
352+
353+
The base implementation in the Shape class only transforms the frame.
354+
Subclasses override this method to also handle scale components appropriately for their geometry.
354355
355356
Parameters
356357
----------

0 commit comments

Comments
 (0)