Mirror Paths

Discussion in 'Cadence' started by Alec, Jul 18, 2009.

  1. Alec

    Alec Guest

    All,

    using the following to create a path from an enterPath()
    and am wanting to create a copy of this path mirrored
    to the adjacent left or right of the created path,
    when using the dbCopyFig as shown below does not do this

    pth1 = dbCreatePath(cv list("metal2" "drawing") lpts 12)
    pth2 = dbCopyFig( pth1,nil, list(0:0 "MY" 1.0))
     
    Alec, Jul 18, 2009
    #1
  2. Alec

    Sylvain Guest

    Is it because of the reference point (0:0) ?

    Sylvain
     
    Sylvain, Jul 18, 2009
    #2
  3. Alec

    I-F AB Guest

    Hi,
    You might want to take a look at the reference point as suggested.
    Instead of:
    where caar(lpts) shows the x-coordinate of the starting of the path,
    and the 12 is the width offset.
    Of course, this is assuming your path starts with a vertical line
    (depending on -> lpts).
    Else, you might want to use cadar(lpts).

    Best regards,
    I-FAB
     
    I-F AB, Jul 20, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.