mathmaker.lib.tools.generators package¶
Submodules¶
mathmaker.lib.tools.generators.anglessets module¶
-
class
mathmaker.lib.tools.generators.anglessets.
AnglesSetGenerator
[source]¶ Bases:
mathmaker.lib.tools.generators.Generator
-
generate
(codename=None, variant=None, labels=None, name=None, **kwargs)[source]¶ Parameters: codename – the distcode, describing the type of anglesset and the measures distribution, grouped by equal measures batches, like 1_1_1, 3_2 etc. The letter ‘r’ may be suffixed to the distcode, then it concerns a series of variants containing one right angle. :type codename: str :param variant: the variant number :type variant: int :param labels: the labels to set, in the form of a list of couples (nb_of_measures, measure). This list will be checked at start. :type labels: list (of couples) :param name: the series of letters to use to name the AnglesSet’s Points :type name: str (or None, then it will be set automatically)
-
mathmaker.lib.tools.generators.shapes module¶
-
class
mathmaker.lib.tools.generators.shapes.
ShapeGenerator
[source]¶ Bases:
mathmaker.lib.tools.generators.Generator
-
generate
(codename=None, variant=None, labels=None, name=None, **kwargs)[source]¶ Parameters: codename – a str describing the type of polygon and the sides lengths, grouped by equal sides batches, like triangle_1_1_1, pentagon_3_2 etc. :type codename: str :param variant: the variant number :type variant: int :param labels: the labels to set, in the form of a list of couples (nb_of_sides, length). This list will be checked at start. :type labels: list (of couples) :param name: the name of the Polygon :type name: str (or None, then it will be set automatically) :param label_vertices: whether or not label the Polygon’s vertices :type label_vertices: bool :param thickness: the thickness of the Polygon’s sides :type thickness: any correct thickness value (None, or see tikz possible values) :param length_unit: the length unit of the sides labels :type length_unit: None or correct str unit name, or a mathmakerlib.calculus.Unit instance
-
mathmaker.lib.tools.generators.solids module¶
-
class
mathmaker.lib.tools.generators.solids.
SolidGenerator
[source]¶ Bases:
mathmaker.lib.tools.generators.Generator
-
generate
(codename=None, variant=None, labels=None, name=None, **kwargs)[source]¶ Possible kwargs: direction, thickness, label_vertices
Parameters: - codename (str) – the type of solid (rightcuboid…)
- variant (int) – the variant number
- labels – the labels to set, in the form of a list that can be
used by the setup_labels() method of the solid. :type labels: list :param name: the series of letters to use to name the Solid :type name: str (or None, then it will be set automatically)
-