@@ -267,7 +267,9 @@ def get_data_3d(self):
267
267
@artist .allow_rasterization
268
268
def draw (self , renderer ):
269
269
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 )
271
273
self .set_data (xs , ys )
272
274
super ().draw (renderer )
273
275
self .stale = False
@@ -458,8 +460,9 @@ def get_path(self):
458
460
def do_3d_projection (self ):
459
461
s = self ._segment3d
460
462
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 )
463
466
self ._path2d = mpath .Path (np .column_stack ([vxs , vys ]))
464
467
return min (vzs )
465
468
@@ -505,8 +508,9 @@ def set_3d_properties(self, path, zs=0, zdir='z'):
505
508
def do_3d_projection (self ):
506
509
s = self ._segment3d
507
510
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 )
510
514
self ._path2d = mpath .Path (np .column_stack ([vxs , vys ]), self ._code3d )
511
515
return min (vzs )
512
516
@@ -611,8 +615,9 @@ def set_3d_properties(self, zs, zdir):
611
615
612
616
def do_3d_projection (self ):
613
617
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 )
616
621
self ._vzs = vzs
617
622
super ().set_offsets (np .column_stack ([vxs , vys ]))
618
623
@@ -752,8 +757,9 @@ def set_depthshade(self, depthshade):
752
757
753
758
def do_3d_projection (self ):
754
759
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 )
757
763
# Sort the points based on z coordinates
758
764
# Performance optimization: Create a sorted index array and reorder
759
765
# points and point properties according to the index array
0 commit comments