MCPcopy Create free account
hub / github.com/ICE27182/Python-3D-renderer / __str__

Method __str__

pyrender.py:71–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69
70
71 def __str__(self):
72 return (f"{self.name} | {self.face_count} faces | " +
73 f"Shading {'smooth' if self.shade_smooth else 'flat'} | " +
74 f"Texture: {self.hastexture} | Normal Map: {self.hasnormal_map} | " +
75 f"Shadow: {self.shadow} | Culling:{self.culling} | " +
76 f"Center: {self.center[0]:.3f} {self.center[1]:.3f} {self.center[2]:.3f} " +
77 f"Rotation {self.x_r:.3f} {self.y_r:.3f} {self.z_r:.3f}")
78
79
80 def load_obj(self, file:str, dir:str=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected