Home > Community > Forums > Custom IC SKILL > geClosePolygon() does not work correctly

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 geClosePolygon() does not work correctly 

Last post Tue, Oct 20 2009 4:15 AM by Andrew Beckett. 1 replies.
Started by sparksu 20 Oct 2009 02:17 AM. Topic has 1 replies and 777 views
Page 1 of 1 (2 items)
Sort Posts:
  • Tue, Oct 20 2009 2:17 AM

    • sparksu
    • Top 500 Contributor
    • Joined on Thu, May 14 2009
    • Beijing, China
    • Posts 17
    • Points 295
    geClosePolygon() does not work correctly Reply

    I encountered a problem while using utility function "geClosePolygon()".

    It is documented in "skdfref.pdf" :

    **********************************************

             geClosePolygon(

                        d_cellViewId

                        l_points

                        t_snapMode

              ) =>  t/nil

    *********************************************

    But my codes did not work as it was described in file "skdfref.pdf".

    geClosePolygon(deGetCellView() list(0:0 10:0 10:10) nil) => argument #3 should be a string.

    geClosePolygon(deGetCellView() list(0:0 10:0 10:10) "orthogonal") => ((10.0 10.0) (0.0 10.0) (0.0 0.0)) 

    geClosePolygon returns a list instead of t/nil.

     

    My software version is 5.10.41.500.598.

    And my document title is:

        Cadence Design Framework II SKILL Function Reference

        product version 6.31

        July 2007

    • Post Points: 20
  • Tue, Oct 20 2009 4:15 AM

    Re: geClosePolygon() does not work correctly Reply

    You should contact Cadence Customer Support to report bugs - that is the correct avenue for getting things fixed.

    As far as I can tell, the documentation is wrong - it should say that the third argument needs to be the snap mode (e.g. "anyAngle", "diagonal" etc) and not nil as in the example. The return value should be the resulting list of points for the closed polygon - it doesn't actually create the shape.

    However, I don't think it actually works correctly from my experiments - it does not appear to be trying to ensure an orthogonal polygon, and when I used anyAngle with certain point lists, I end up with a list of two points, which is clearly incorrect.

    That said, I can't think of any case where I'd actually want to use this function!

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by sparksu at 20 Oct 2009 02:17 AM. Topic has 1 replies.