File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments