ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
Loading...
Searching...
No Matches
zlayout.analysis.GeometryProcessor Class Reference

Public Member Functions

 __init__ (self, Rectangle world_bounds)
int add_component (self, Union[Rectangle, Polygon] geometry)
Dict analyze_layout (self, float sharp_angle_threshold=30.0, float narrow_distance_threshold=1.0)
Dict optimize_layout (self)

Public Attributes

 spatial_index = SpatialIndex(world_bounds)
 analyzer = PolygonAnalyzer(self.spatial_index)

Protected Member Functions

float _calculate_optimization_score (self, Dict analysis)

Detailed Description

High-level geometry processing and optimization.

Definition at line 306 of file analysis.py.

Constructor & Destructor Documentation

◆ __init__()

zlayout.analysis.GeometryProcessor.__init__ ( self,
Rectangle world_bounds )

Definition at line 309 of file analysis.py.

Member Function Documentation

◆ _calculate_optimization_score()

float zlayout.analysis.GeometryProcessor._calculate_optimization_score ( self,
Dict analysis )
protected
Calculate a score representing layout quality (0-100, higher is better).

Definition at line 380 of file analysis.py.

Here is the caller graph for this function:

◆ add_component()

int zlayout.analysis.GeometryProcessor.add_component ( self,
Union[Rectangle, Polygon] geometry )
Add a geometric component to the processor.

Definition at line 313 of file analysis.py.

Here is the caller graph for this function:

◆ analyze_layout()

Dict zlayout.analysis.GeometryProcessor.analyze_layout ( self,
float sharp_angle_threshold = 30.0,
float narrow_distance_threshold = 1.0 )
Perform comprehensive layout analysis.

Definition at line 322 of file analysis.py.

Here is the caller graph for this function:

◆ optimize_layout()

Dict zlayout.analysis.GeometryProcessor.optimize_layout ( self)
Suggest layout optimizations based on analysis.

Definition at line 357 of file analysis.py.

Here is the call graph for this function:

Member Data Documentation

◆ analyzer

zlayout.analysis.GeometryProcessor.analyzer = PolygonAnalyzer(self.spatial_index)

Definition at line 311 of file analysis.py.

◆ spatial_index

zlayout.analysis.GeometryProcessor.spatial_index = SpatialIndex(world_bounds)

Definition at line 310 of file analysis.py.


The documentation for this class was generated from the following file: