Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122924446
par-tronque-en.tex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jul 22, 23:33
Size
991 B
Mime Type
text/x-tex
Expires
Thu, Jul 24, 23:33 (2 d)
Engine
blob
Format
Raw Data
Handle
27577672
Attached To
R232 fabrepos2
par-tronque-en.tex
View Options
\section
{
Truncate a solid's vertices
}
The option
\Lkeyword
{
trunc
}
allows us to
\Index
{
truncate
}
a solid's vertices either
globally or individually. This option uses the key
\Lkeyword
{
trunccoeff
}
(value
$
0
.
25
$
by default) which indicates the ratio
$
k
$
used for the
\Index
{
truncation
}
(
$
0
<k
\leq
0
.
5
$
).
%
\begin
{
itemize
}
\item
\texttt
{
\Lkeyword
{
trunc
}
=
\Lkeyval
{
all
}}
truncates all the vertices;
\item
\texttt
{
\Lkeyword
{
trunc
}
=0 1 2 3
}
truncates the vertices 0, 1, 2 and 3.
\end
{
itemize
}
%
\begin
{
LTXexample
}
[width=6cm]
\psset
{
viewpoint=50 50 30 rtp2xyz,Decran=25,lightsrc=viewpoint
}
\begin
{
pspicture
}
(-3,-2)(2,2)
\psSolid
[
action=draw,
object=cube,
RotZ=30,
trunccoeff=.2,
trunc=all]
%
\end
{
pspicture
}
\end
{
LTXexample
}
\begin
{
LTXexample
}
[width=6cm]
\psset
{
viewpoint=50 50 30 rtp2xyz,Decran=25,lightsrc=viewpoint
}
\begin
{
pspicture
}
(-3,-2)(2,2)
\psSolid
[action=draw,
object=cube,
RotZ=30,
trunccoeff=.2,
trunc=0 1 2 3]
%
\end
{
pspicture
}
\end
{
LTXexample
}
\endinput
Event Timeline
Log In to Comment