KTUGFaq

KTUG FAQ

로그인:
비밀번호:
가입
Man's horizons are bounded by his vision.
FrontPage › Asymptote


inspired by MetaPost, with a much cleaner, powerful C++-like programming syntax and floating-point numerics;

Sample

%% pdflatex -> asy -> pdflatex
%%
\documentclass[12pt]{article}

\usepackage{kotex}
\usepackage{asymptote}

\begin{document}

(별로 안) 간단한 3D 예제.

\begin{center}
\begin{asy}[height=8cm,attach=false]
// sinc.asy
import graph3;
import contour;

currentprojection=orthographic(1,-2,1);
currentlight=(1,-1,0.5);

size(12cm,0);

real sinc(pair z) {
  real r=2pi*abs(z);
  return r != 0 ? sin(r)/r : 1;
}

draw(lift(sinc,contour(sinc,(-2,-2),(2,2),new real[] {0})),red);
draw(surface(sinc,(-2,-2),(2,2),Spline),lightgray+opacity(0.5));

xaxis3("$x$",Bounds,InTicks);
yaxis3("$y$",Bounds,InTicks(beginlabel=false));
zaxis3("$z$",Bounds,InTicks);
\end{asy}
\end{center}

\end{document}


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-09-18 00:34:10
Processing time 0.0279 sec