<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">Am 30.04.2018 um 11:41 schrieb Maxime
      Chupin:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJPNWxAX1aDBjX+RQE7PhW1FNBabmxomZiMHro9cUmpTymXsWg@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div><br>
              </div>
              Is it possible to define sommets for un "object=new" from
              points defined by \psPoint command ?<br>
            </div>
            I would like to draw a non regular tetrahedron, and label
            the edges.<br>
          </div>
          A very convenient way would be <br>
        </div>
        <br>
        \psPoint(...){A}<br clear="all">
        <div>
          <div>
            <div>
              <div>
                <div>\psPoint(...){B}<br clear="all">
                  \psPoint(...){C}<br clear="all">
                  \psPoint(...){D}<br clear="all">
                  <div>
                    <div>
                      <div>
                        <div>
                          <div><br>
                          </div>
                          <div>and <br>
                            <br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  \psSolid[object=new, sommets=                      <wbr>                              <wbr>          
                  <br>
                </div>
                <div>(A) (B) (C) (D), ...<br>
                  <br>
                </div>
                <div>Is there a way to do that?<br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    No, that is not possible with the current code. The nodes are saved
    <br>
    with its 2D coordinates.<br>
    <br>
    Howver, with a modification of the internal macros you can<br>
    save the points on PS level twith the 3d coordinates:<br>
    <br>
    <br>
    \documentclass[pstricks]{standalone}<br>
    \usepackage{pst-solides3d}<br>
    \pagestyle{empty}<br>
    \makeatletter<br>
    \def\psPoint@i(#1,#2,#3)#4{{% coordonnees cartesiennes<br>
            %  \begin@SpecialObj<br>
            \pnode(!<br>
            \tx@optionssolides<br>
            SolidesDict begin<br>
            /#4 {#1 #2 #3} def<br>
            #4<br>
            3dto2d cm_1 exch cm_1 exch<br>
            end){#4}%<br>
            %  \end@SpecialObj<br>
        }\ignorespaces%<br>
    }<br>
    \makeatother<br>
    <br>
    \begin{document}<br>
    \begin{pspicture}(-4,-3)(4,3)<br>
        \psPoint(-1,0,0){A}<br>
        \psPoint(1,0,0){B}<br>
        \psPoint(0,1,0){C}<br>
        \psPoint(0.2,0,0.7){D}<br>
    \psSolid[object=new, sommets= A B C D,num=all,show=all, action=draw]<br>
    \axesIIID(-1.5,0,0)(1.5,1.5,1)<br>
    \end{pspicture}<br>
        <br>
    \end{document}<br>
    <br>
    <br>
    Herbert<br>
    <br>
  </body>
</html>