Percentage

class pmeshlab.Percentage
__init__(self: pmeshlab.Percentage, arg0: float) → None

Constructor of the Percentage class. Takes as input a float value between 0 and 100 (default: 0) and initializes the percentage. Raises a InvalidPercentageException if the value is not between 0 and 100.

set_value(self: pmeshlab.Percentage, arg0: float) → None

Sets the value of the percentage. Raises a InvalidPercentageException if the value is not between 0 and 100.

value(self: pmeshlab.Percentage) → float

Returns the value of the percentage [0-100].