Home Forums Nazca How to use flip method.

This topic contains 2 replies, has 2 voices, and was last updated by  Wanshu 2 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5391

    Wanshu
    Participant

    Dear Nazca team,

     

    I have a problem with drawing a cell B which is symmetrical about the x-axis (or y-axis) with cell A.

    I was trying with the flip(), but I got a central symmetry cell at the end.

    #5395

    Xaveer
    Moderator

    Dear Wanshu,

    Here is one way to achieve what you want:

    import nazca as nd
    
    with nd.Cell(name='Cell') as C:
        nd.strt(10).put(0)
        nd.taper(length=10, width1=1, width2=5).put()
        nd.bend(angle=90).put()
    
    C.put(0, 0, 0)
    C.put(-10, -10, 0, flip=True)
    
    nd.export_gds()

    There is also a flop argument that flips backwards.

    Xaveer

    #5396

    Wanshu
    Participant

    Dear Xaveer,

     

    Thanks! That is exactly what I want.

     

    Wanshu

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.