FABulous.geometry_generator.geometry_gen ======================================== .. py:module:: FABulous.geometry_generator.geometry_gen .. autoapi-nested-parse:: Classes for geometry generation. Classes ------- .. py:class:: GeometryGenerator(fabric) Class to handle the generation of the geometry for a fabric. .. attribute:: fabric The fabric object passed from the CSV definition files :type: Fabric .. attribute:: fabricGeometry The generated geometry object :type: FabricGeometry .. attribute:: Initialize a `GeometryGenerator` instance. .. attribute:: :type: param fabric: The fabric object from CSV definition files .. attribute:: :type: type fabric: Fabric **Methods:** .. py:method:: generateGeometry(padding = 8) Start the geometry generation for the given fabric. Creates a `FabricGeometry` object that contains the complete geometric layout of the fabric including all tiles, switch matrices, BELs, and interconnect wiring. :param padding: Padding used throughout the geometry, by default 8 :type padding: int, optional .. py:method:: saveToCSV(fileName) Save the generated geometry into a file specified by the given file name. Exports the complete fabric geometry data to a CSV file that can be imported into FABulator for visualization and analysis. :param fileName: The name of the CSV file to create :type fileName: str :raises AttributeError: If generateGeometry() has not been called yet