We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f4937 commit 10cb802Copy full SHA for 10cb802
declaracad/occ/impl/occ_shape.py
@@ -385,13 +385,13 @@ def get_transform(self) -> gp_Trsf:
385
t.SetTranslation(gp_Vec(op.x, op.y, op.z))
386
elif isinstance(op, Rotate):
387
t.SetRotation(
388
- gp_Ax1(gp_Pnt(*op.point), gp_Dir(*op.direction)), op.angle
+ gp_Ax1(gp_Pnt(*op.position), gp_Dir(*op.direction)), op.angle
389
)
390
elif isinstance(op, Mirror):
391
Ax = gp_Ax2 if op.plane else gp_Ax1
392
- t.SetMirror(Ax(gp_Pnt(*op.point), gp_Dir(op.x, op.y, op.z)))
+ t.SetMirror(Ax(gp_Pnt(*op.position), gp_Dir(op.x, op.y, op.z)))
393
elif isinstance(op, Scale):
394
- t.SetScale(gp_Pnt(*op.point), op.s)
+ t.SetScale(gp_Pnt(*op.position), op.s)
395
result.Multiply(t)
396
return result
397
0 commit comments