Skip to content

Commit 63f4520

Browse files
committed
release v1.4.3b0
1 parent 26261c2 commit 63f4520

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ezdxf/entities/viewport.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ def is_top_view(self) -> bool:
630630
return view_direction.is_null or view_direction.isclose(Z_AXIS)
631631

632632
def get_view_center_point(self) -> Vec3:
633-
# TODO: Is there a flag or attribute that determines which of these points is
634-
# the center point?
633+
"""Returns the center of the VIEWPORT in modelspace."""
635634
return Vec3(self.dxf.view_center_point)
636635

637636
def get_transformation_matrix(self) -> Matrix44:
@@ -643,7 +642,7 @@ def get_transformation_matrix(self) -> Matrix44:
643642
offset: Vec3 = self.dxf.center - (msp_center_point * scale)
644643
base_point = Vec3(self.dxf.view_target_point)
645644

646-
# took account base point before rotate, because rotated views will broken
645+
# Take base point into account before applying the view twist-angle:
647646
m = Matrix44.translate(-base_point.x, -base_point.y, -base_point.z)
648647
m @= Matrix44.scale(scale)
649648

0 commit comments

Comments
 (0)