[pstricks] Re : problem with pst-3d: rm=0 1

Manuel Luque mluque5130 at aol.com
Wed Jan 11 10:58:51 CET 2012


 Dear Carlo

1) Use the numfaces = all to determine the faces to remove.

\documentclass{article}
\usepackage{pst-solides3d}

\begin{document}
\begin{center}
\begin{pspicture}(-5,-6)(8,7)
\psset{viewpoint=50 30 -60 rtp2xyz,Decran=50,lightsrc=viewpoint}
\defFunction{cone}(u,v){u v Cos mul}{u v Sin mul}{u}
\psSolid[object=cone,h=5,r=3,plansepare={[1 0 0 0]},name=ConeA,ngrid=18 60,numfaces=all](0,0,5)
\end{pspicture}
\end{center}
\end{document}

 2) insert the option rm = 0 579 from the start.


 \documentclass[11pt]{article}%             run with xelatex or latex->dvips->ps2pdf
\usepackage{pst-solides3d}
\usepackage[a4paper]{geometry}

\makeatletter
\def\lightsource{
\pstVerb{\pst at solides@viewpoint
/PhI exch def /ThetA exch def /Dist exch def
/Lx Dist ThetA cos mul PhI cos 1.0 mul mul def
/Ly Dist ThetA sin mul PhI cos mul def
/Lz Dist PhI sin mul def}%
\psset{lightsrc=Lx Ly Lz}
}
\makeatother

\begin{document}

\begin{center}
\psset{unit=1.0}
\begin{pspicture}(-5,-6)(8,7)
\pstVerb{/theta 3 5 atan def
         /tantheta 3 5 div def
         /rayon 3 tantheta mul def}%
\psset{viewpoint=50 -30 20,Decran=50}
\lightsource
\psframe[fillstyle=solid,fillcolor=gray!10](-5,-6)(8,7)%
\psSolid[object=grille,base=-4 5 -4 9,linecolor={[rgb]{0.72 0.72 0.5}}](0,0,-5)
\defFunction{cone}(u,v){u v Cos mul}{u v Sin mul}{u}
\psSolid[object=cone,h=5,r=3,plansepare={[1 0 0 0]},name=ConeA,ngrid=18 60,action=none,rm=0 579](0,0,-5)
\psSolid[object=cone,h=5,r=3,plansepare={[1 0 0 0]},name=ConeB,RotY=180,ngrid=18 60,action=none,rm=0 579](0,0,5)
\psSolid[object=load,load=ConeA1,grid,fillcolor={[rgb]{0 .5 0}},incolor={[cmyk]{.1 .1 1 .1}},hollow,opacity=0.6]
\psSolid[object=load,load=ConeB1,grid,fillcolor={[rgb]{0 .5 0}},incolor={[cmyk]{.1 .1 1 .1}},hollow,opacity=0.6]
\psSolid[object=load,load=ConeA0,RotZ=90,grid,fillcolor={[rgb]{0 .5 0}},incolor={[cmyk]{.1 .1 1 .1}},hollow,opacity=0.6](0,6,0)
\psSolid[object=load,load=ConeB0,RotZ=90,grid,fillcolor={[rgb]{0 .5 0}},incolor={[cmyk]{.1 .1 1 .1}},hollow,opacity=0.6](0,6,0)
\psSolid[object=plan,action=draw,
   definition=equation,
   args={[1 0 0 0] 90},
   base=-3 3 -5 6.5,planmarks,showBase](0,0,0)
\axesIIID[linecolor=blue](0,0,0)(5.75,4,6)
\composeSolid
\end{pspicture}
\end{center}
\end{document}

Best regards,

ML

 

-----E-mail d'origine-----
De : Carlo Alberini <carloalbe1 at yahoo.it>
A: Graphics with PSTricks <pstricks at tug.org>
Envoyé le : Mardi, 10 Janvier 2012 21:28
Sujet : [pstricks] problem with pst-3d: rm=0 1



Dear Herbert,
	I have some problems with an option of \psSolid command: rm
I don't know how are numbered the faces that I want to hollow (with the comand rm) in a solid figure.
In attachment you can find a sectioned cone (conica_degen2.tex) and in this figure I want to hollow the upper and the lower bases in order to have a figure like that you can find in the second attachment (iperbole_gen_def).


I send you also file .pdf. I am working on a your own and Manuel Luque codes.


Best regards


C


  
 
  
  Da: Herbert Voss <Herbert.Voss at fu-berlin.de>
 A: pstricks at tug.org 
 Inviato: Martedì 3 Gennaio 2012 22:51
 Oggetto: Re: [pstricks] problem with pst-solarsystem
  
Am 03.01.2012 22:30, schrieb Carlo Alberini:

> ! I can't find file 'pst-tools'.

> However for pst-tools my path is:
>
> /usr/local/texlive/2011/texmf-dist/tex/latex/graphics/pst-tools.pro
>
> and I have done many times a texhash in administrator mode.
>
> In attachment you can find .log and .tex files
>
> I use texlive 2011 on mac and pst-solarsystem shold be correctly
> installed (using Tex Live Utility).

oh, I forgot to upload the new package pst-tools which has
the missing files pst-tools.sty and pst-tools.tex, which should
go into the new directories
/usr/local/texlive/2011/texmf-dist/tex/latex/pst-tools/
/usr/local/texlive/2011/texmf-dist/tex/generic/pst-tools/

The files should be available with the next regular update.
However, if you can't wait get the filesd from here:
http://texnik.dante.de/tex/generic/pst-tools/
http://texnik.dante.de/tex/latex/pst-tools/

the file pst-tools.pro is part of the main pstricks package
and already updated by the TeXLive manager.

Herbert
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/


 
 
  
 
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20120111/2ca5d5f5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conica_degen2.tex
Type: application/x-tex
Size: 1755 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20120111/2ca5d5f5/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conica_degen2.pdf
Type: application/pdf
Size: 93422 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20120111/2ca5d5f5/attachment-0001.pdf>


More information about the PSTricks mailing list