<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Dear all,</p>
    <p>I am a beginner when it comes to pstricks, and the main reason I
      started looking into it is the pst-optexp package. I have to
      illustrate rays passing through geometrical structures frequently,
      and getting this integrated into my latex documents sounds too
      good to be true. I am looking into modeling of reflective
      surfaces, like venetian blinds (a stack of repeated profiles), and
      started implementing them as custom components with
      \newOptexpTripole. The diffuse reflection from a rough surface in
      the manual was my starting point.</p>
    <p>I have been defining one profile as custom component. Then I am
      placing several instances of that component to build the blinds.<br>
      I need to trace rays so that a) the upper profile shades part of
      the lower profile, and b) the rays reaching the lower profile and
      getting reflected upward must stop at the upper profile. So a
      typical ray would be
      A->profile1->profile2->profile1->B. Some rays end on
      the outside of the system (A), others get transmitted to the
      inside (B). Is this actually possible with pst-optexp? At the
      moment, I use</p>
    \multido{\r=+2}{20}{%<br>
    \psset[optexp]{raytrace=true}<br>
    \drawbeam[beamangle=-45, beampos=\r](A){}{profile2}<br>
    }%end multido<br>
    <br>
    This reflects the shading (start->profile1->profile2), but
    does not show reflections from profile2.<br>
    <br>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">\drawbeam[beamangle=-45,
      beampos=\r](A){profile2}(B)</p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br>
    </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">This shows
      reflections from profile 2 correctly, but rays are simply passing
      through profile1.<br>
      <!--EndFragment--></p>
    <p>Another way would be to define several profiles as one combined
      custom component. In this case, I would need a way to define
      multiple reflections within a component.</p>
    <p>Has anyone used pst-optexp for such an application so far? I
      guess it is the drawbeam concept that is confusing me, but I am
      also not sure wether it is possible at all to have rays not simply
      sequentially passing through a chain of components, but getting
      reflected back and forth.</p>
    <p>I will try to set up an example as soon as possible, but my more
      general doubts made me ask this right now...</p>
    <p>Thank you, regards, Lars.<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>