[docs]def__init__(self,a:float,centre:Vector3=Vector3(0,0,0),stl_resolution:int=2,verbosity:int=1,name:str=None,)->None:""" Parameters ----------- a : float The cube side half-length. centre : Vector3, optional The centre point of the cube. The default is Vector3(0,0,0). """self.a=aself.centre=centresuper().__init__(stl_resolution=stl_resolution,verbosity=verbosity,name=name)
[docs]def__init__(self,r:float,centre:Vector3=Vector3(0,0,0),stl_resolution:int=2,verbosity:int=1,name:str=None,)->None:""" Parameters ----------- r : float The radius of the sphere. centre : Vector3 The centre point of the sphere. The default is Vector3(0,0,0). """self.r=rself.centre=centresuper().__init__(stl_resolution=stl_resolution,verbosity=verbosity,name=name)