SetEndPoints Method
The SetEndPoints method sets all the end points for the SegmentShape object in one operation.
This method has the following syntax:
SegmentShape.SetEndPoints(Point1X = integer, Point2X = integer,
Point1Y = integer, Point2Y = integer)
When you want to set all the end points at once, using the SetEndPoints method is much more efficient than setting the individual attributes directly. The four parameters have the same names and meanings as the corresponding attributes of the SegmentShape. OpenROAD assumes a default value of zero for any parameter that you do not specify.
For an example of the use of SetEndPoints method, see the discussion of dynamic programming in the Programming Guide.
Last modified date: 12/20/2023