import bpy
from .mesh import Mesh


class Sphere:

    def __init__(self, name, loc, scale, color, material):
        m = Mesh(name)
        m.spheres([loc], [scale], [color], subdivisions=2)
        m.obj.data.materials.append(material)
        for f in m.obj.data.polygons:
            f.use_smooth = True
        self.obj = m.obj

390cd045d5aa0aeeab429768dfe1f0d2047be609
<mask token>

<mask token>


class Sphere:
    <mask token>

<mask token>


class Sphere:

    def __init__(self, name, loc, scale, color, material):
        m = Mesh(name)
        m.spheres([loc], [scale], [color], subdivisions=2)
        m.obj.data.materials.append(material)
        for f in m.obj.data.polygons:
            f.use_smooth = True
        self.obj = m.obj

import bpy
from .mesh import Mesh


class Sphere:

    def __init__(self, name, loc, scale, color, material):
        m = Mesh(name)
        m.spheres([loc], [scale], [color], subdivisions=2)
        m.obj.data.materials.append(material)
        for f in m.obj.data.polygons:
            f.use_smooth = True
        self.obj = m.obj
