+ Reply to Thread
Results 1 to 1 of 1

Thread: Mirror

  1. #1

    Mirror

    Hi guys,
    I am having troubles trying to mirror objects. If use the isolated code on a TOP view in rhino it works fine. But if I run it on a front view it flips the mirror.
    Python Code:
      import rhinoscriptsyntax as rs
       
      ECAA2 = []
       
      mirrorSp = rs.CurveStartPoint(GridAA_MirrorLine)
      mirrorEp = rs.CurveEndPoint(GridAA_MirrorLine)
       
      for i, crv in enumerate(EdgeCurvesAA_1):
          ECAA_mirror = rs.MirrorObject(crv, mirrorSp, mirrorEp, True)
          ECAA2.append(ECAA_mirror)
       
      EdgeCurvesAA_2 = ECAA2
    I tried to fix the problem with matrix transform, but the same problem occurs:
    Python Code:
      import rhinoscriptsyntax as rs
       
      ECAA2 = []
       
      GridAA_MirrorPlane_N = rs.PlaneEquation(GridAA_MirrorPlane)
      GridAA_MirrorPlane_Or = rs.EvaluatePlane(GridAA_MirrorPlane, (0,0))
       
      xform = rs.XformMirror(GridAA_MirrorPlane_Or, (GridAA_MirrorPlane_N[0], GridAA_MirrorPlane_N[1], GridAA_MirrorPlane_N[2]))
       
      for i, crv in enumerate(EdgeCurvesAA_1):
          ECAA_mirror = rs.TransformObjects( crv, xform, True )
          ECAA2.append(ECAA_mirror)
       
      EdgeCurvesAA_2 = ECAA2
    any ideas of what I am doing wrong?

    Many thanks,
    buzz
    Last edited by Steve Baer; 07-23-2012 at 06:15 PM. Reason: fixed syntax highlighting

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts