[pstricks] barycenter3d in pst-solides3d Doesn't work

Herbert Voss Herbert.Voss at fu-berlin.de
Thu Dec 27 09:38:51 CET 2018



Am 27.12.18 um 00:12 schrieb José Jesús Rosell Escolar:

> My name is Jose Jesus and I am working in some geometric draws in 3D.
> I use pst-solides3d for that, but, when I try to get a barycenter of a 
> system, using:
> 
> \begin{pspicture}[viewpoint=202515](-3,-4)(3,4)
> \psset{solidmemory}
> \axesIIID(3,3,3)
> \psSolid[object=point,name=M, args=111]
> \psSolid[object=point,name=P, args=161]
> % \psSolid[object=point,name=Q, args=134]
> \psSolid[object=point,definition=barycentre3d,args={[M 4 P 3]},linecolor=red]
> \end{pspicture}
> 
> 
> It draws nothing.

looks like a bug in the documentation. Use args=M 4 P 3

\begin{pspicture}[solidmemory,viewpoint=20 25 15](-3,-4)(3,4)
\axesIIID(3,3,3)
\psSolid[object=point,name=M, args=1 1 1]
\psSolid[object=point,name=P, args=1 6 1]
\psSolid[object=point,definition=barycentre3d,args=M 3 P 4,linecolor=red]
\end{pspicture}


Herbert


More information about the PSTricks mailing list