Module pyxyz.material

Material class definition

Expand source code
"""Material class definition"""

class Material:
    """Material class.
    Describe the properties of the mesh being drawn. Currently it only supports a
    Color and a line width.
    """
    def __init__(self, Color, name="UnknownMaterial"):
        """
        Arguments:

            Color {Color} -- Color of the line

            name {str} -- Name of the material, defaults to 'UnknownMaterial'
        """
        self.Color = Color
        """{Color} Color of the lines on the mesh"""
        self.name = name
        """{str} Name of this material"""
        self.line_width = 2
        """{int} Width of the lines on the mesh"""

Classes

class Material (Color, name='UnknownMaterial')

Material class. Describe the properties of the mesh being drawn. Currently it only supports a Color and a line width.

Arguments

Color {Color} – Color of the line

name {str} – Name of the material, defaults to 'UnknownMaterial'

Expand source code
class Material:
    """Material class.
    Describe the properties of the mesh being drawn. Currently it only supports a
    Color and a line width.
    """
    def __init__(self, Color, name="UnknownMaterial"):
        """
        Arguments:

            Color {Color} -- Color of the line

            name {str} -- Name of the material, defaults to 'UnknownMaterial'
        """
        self.Color = Color
        """{Color} Color of the lines on the mesh"""
        self.name = name
        """{str} Name of this material"""
        self.line_width = 2
        """{int} Width of the lines on the mesh"""

Instance variables

var Color

{Color} Color of the lines on the mesh

var line_width

{int} Width of the lines on the mesh

var name

{str} Name of this material