@@ -267,7 +267,9 @@ def get_data_3d(self):
267267 @artist .allow_rasterization
268268 def draw (self , renderer ):
269269 xs3d , ys3d , zs3d = self ._verts3d
270- xs , ys , zs = proj3d .proj_transform (xs3d , ys3d , zs3d , self .axes .M )
270+ xs , ys , zs , tis = proj3d ._proj_transform_clip (xs3d , ys3d , zs3d ,
271+ self .axes .M ,
272+ self .axes ._focal_length )
271273 self .set_data (xs , ys )
272274 super ().draw (renderer )
273275 self .stale = False
@@ -458,8 +460,9 @@ def get_path(self):
458460 def do_3d_projection (self ):
459461 s = self ._segment3d
460462 xs , ys , zs = zip (* s )
461- vxs , vys , vzs , vis = proj3d .proj_transform_clip (xs , ys , zs ,
462- self .axes .M )
463+ vxs , vys , vzs , vis = proj3d ._proj_transform_clip (xs , ys , zs ,
464+ self .axes .M ,
465+ self .axes ._focal_length )
463466 self ._path2d = mpath .Path (np .column_stack ([vxs , vys ]))
464467 return min (vzs )
465468
@@ -505,8 +508,9 @@ def set_3d_properties(self, path, zs=0, zdir='z'):
505508 def do_3d_projection (self ):
506509 s = self ._segment3d
507510 xs , ys , zs = zip (* s )
508- vxs , vys , vzs , vis = proj3d .proj_transform_clip (xs , ys , zs ,
509- self .axes .M )
511+ vxs , vys , vzs , vis = proj3d ._proj_transform_clip (xs , ys , zs ,
512+ self .axes .M ,
513+ self .axes ._focal_length )
510514 self ._path2d = mpath .Path (np .column_stack ([vxs , vys ]), self ._code3d )
511515 return min (vzs )
512516
@@ -611,8 +615,9 @@ def set_3d_properties(self, zs, zdir):
611615
612616 def do_3d_projection (self ):
613617 xs , ys , zs = self ._offsets3d
614- vxs , vys , vzs , vis = proj3d .proj_transform_clip (xs , ys , zs ,
615- self .axes .M )
618+ vxs , vys , vzs , vis = proj3d ._proj_transform_clip (xs , ys , zs ,
619+ self .axes .M ,
620+ self .axes ._focal_length )
616621 self ._vzs = vzs
617622 super ().set_offsets (np .column_stack ([vxs , vys ]))
618623
@@ -752,8 +757,9 @@ def set_depthshade(self, depthshade):
752757
753758 def do_3d_projection (self ):
754759 xs , ys , zs = self ._offsets3d
755- vxs , vys , vzs , vis = proj3d .proj_transform_clip (xs , ys , zs ,
756- self .axes .M )
760+ vxs , vys , vzs , vis = proj3d ._proj_transform_clip (xs , ys , zs ,
761+ self .axes .M ,
762+ self .axes ._focal_length )
757763 # Sort the points based on z coordinates
758764 # Performance optimization: Create a sorted index array and reorder
759765 # points and point properties according to the index array
0 commit comments