[{"data":1,"prerenderedAt":971},["ShallowReactive",2],{"navigation_docs":3,"-specialized-documents-creating-3d-graphics":351,"-specialized-documents-creating-3d-graphics-surround":966},[4,31,45,83,109,147,197,215,253,291,329],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting Started","i-lucide-play","\u002Fgetting-started","01.getting-started",[10,14,18,22,26],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","01.getting-started\u002F01.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fgetting-started\u002Finstallation","01.getting-started\u002F02.installation",{"title":19,"path":20,"stem":21},"Installing Extra Packages","\u002Fgetting-started\u002Finstalling-extra-packages","01.getting-started\u002F03.installing-extra-packages",{"title":23,"path":24,"stem":25},"Basics","\u002Fgetting-started\u002Fbasics","01.getting-started\u002F04.basics",{"title":27,"path":28,"stem":29},"How to Get Help","\u002Fgetting-started\u002Fhow-to-get-help","01.getting-started\u002F05.how-to-get-help",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"AI Integration","i-lucide-bot","\u002Fai-integration","02.ai-integration",[37,41],{"title":38,"path":39,"stem":40},"Model Context Protocol (MCP)","\u002Fai-integration\u002Fmcp","02.ai-integration\u002F01.mcp",{"title":42,"path":43,"stem":44},"Agent Skills","\u002Fai-integration\u002Fskills","02.ai-integration\u002F02.skills",{"title":46,"icon":47,"path":48,"stem":49,"children":50,"page":30},"Document Fundamentals","i-lucide-file-text","\u002Fdocument-fundamentals","03.document-fundamentals",[51,55,59,63,67,71,75,79],{"title":52,"path":53,"stem":54},"Document Structure","\u002Fdocument-fundamentals\u002Fdocument-structure","03.document-fundamentals\u002F01.document-structure",{"title":56,"path":57,"stem":58},"Text Formatting","\u002Fdocument-fundamentals\u002Ftext-formatting","03.document-fundamentals\u002F02.text-formatting",{"title":60,"path":61,"stem":62},"Paragraph Formatting","\u002Fdocument-fundamentals\u002Fparagraph-formatting","03.document-fundamentals\u002F03.paragraph-formatting",{"title":64,"path":65,"stem":66},"Fonts","\u002Fdocument-fundamentals\u002Ffonts","03.document-fundamentals\u002F04.fonts",{"title":68,"path":69,"stem":70},"Colors","\u002Fdocument-fundamentals\u002Fcolors","03.document-fundamentals\u002F05.colors",{"title":72,"path":73,"stem":74},"List Structures","\u002Fdocument-fundamentals\u002Flist-structures","03.document-fundamentals\u002F06.list-structures",{"title":76,"path":77,"stem":78},"Special Characters","\u002Fdocument-fundamentals\u002Fspecial-characters","03.document-fundamentals\u002F07.special-characters",{"title":80,"path":81,"stem":82},"Internationalization","\u002Fdocument-fundamentals\u002Finternationalization","03.document-fundamentals\u002F08.internationalization",{"title":84,"icon":85,"path":86,"stem":87,"children":88,"page":30},"Page Design","i-lucide-layout","\u002Fpage-design","04.page-design",[89,93,97,101,105],{"title":90,"path":91,"stem":92},"Page Layout","\u002Fpage-design\u002Fpage-layout","04.page-design\u002F01.page-layout",{"title":94,"path":95,"stem":96},"Page Headers and Footers","\u002Fpage-design\u002Fcustomizing-page-headers-and-footers","04.page-design\u002F02.customizing-page-headers-and-footers",{"title":98,"path":99,"stem":100},"Title Creation","\u002Fpage-design\u002Ftitle-creation","04.page-design\u002F03.title-creation",{"title":102,"path":103,"stem":104},"Footnotes and Margin Notes","\u002Fpage-design\u002Ffootnotes-and-margin-notes","04.page-design\u002F04.footnotes-and-margin-notes",{"title":106,"path":107,"stem":108},"Rotations","\u002Fpage-design\u002Frotations","04.page-design\u002F05.rotations",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":30},"Tables and Graphics","i-lucide-table","\u002Ftables-and-graphics","05.tables-and-graphics",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Tables","\u002Ftables-and-graphics\u002Ftables","05.tables-and-graphics\u002F01.tables",{"title":120,"path":121,"stem":122},"Floats, Figures and Captions","\u002Ftables-and-graphics\u002Ffloats-figures-and-captions","05.tables-and-graphics\u002F02.floats-figures-and-captions",{"title":124,"path":125,"stem":126},"Importing Graphics","\u002Ftables-and-graphics\u002Fimporting-graphics","05.tables-and-graphics\u002F03.importing-graphics",{"title":128,"path":129,"stem":130},"Introducing Procedural Graphics","\u002Ftables-and-graphics\u002Fintroducing-procedural-graphics","05.tables-and-graphics\u002F04.introducing-procedural-graphics",{"title":132,"path":133,"stem":134},"PGF\u002FTikZ","\u002Ftables-and-graphics\u002Fpgf-tikz","05.tables-and-graphics\u002F05.pgf-tikz",{"title":136,"path":137,"stem":138},"PSTricks","\u002Ftables-and-graphics\u002Fpstricks","05.tables-and-graphics\u002F06.pstricks",{"title":140,"path":141,"stem":142},"MetaPost","\u002Ftables-and-graphics\u002Fmetapost","05.tables-and-graphics\u002F07.metapost",{"title":144,"path":145,"stem":146},"Picture","\u002Ftables-and-graphics\u002Fpicture","05.tables-and-graphics\u002F08.picture",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":30},"Technical Writing","i-lucide-flask-conical","\u002Ftechnical-writing","06.technical-writing",[153,157,161,165,169,173,177,181,185,189,193],{"title":154,"path":155,"stem":156},"Mathematics","\u002Ftechnical-writing\u002Fmathematics","06.technical-writing\u002F01.mathematics",{"title":158,"path":159,"stem":160},"Advanced Mathematics","\u002Ftechnical-writing\u002Fadvanced-mathematics","06.technical-writing\u002F02.advanced-mathematics",{"title":162,"path":163,"stem":164},"Theorems","\u002Ftechnical-writing\u002Ftheorems","06.technical-writing\u002F03.theorems",{"title":166,"path":167,"stem":168},"Algorithms","\u002Ftechnical-writing\u002Falgorithms","06.technical-writing\u002F04.algorithms",{"title":170,"path":171,"stem":172},"Source Code Listings","\u002Ftechnical-writing\u002Fsource-code-listings","06.technical-writing\u002F05.source-code-listings",{"title":174,"path":175,"stem":176},"Chemical Graphics","\u002Ftechnical-writing\u002Fchemical-graphics","06.technical-writing\u002F06.chemical-graphics",{"title":178,"path":179,"stem":180},"Linguistics","\u002Ftechnical-writing\u002Flinguistics","06.technical-writing\u002F07.linguistics",{"title":182,"path":183,"stem":184},"Bibliography Management","\u002Ftechnical-writing\u002Fbibliography-management","06.technical-writing\u002F08.bibliography-management",{"title":186,"path":187,"stem":188},"More Bibliographies","\u002Ftechnical-writing\u002Fmore-bibliographies","06.technical-writing\u002F09.more-bibliographies",{"title":190,"path":191,"stem":192},"Indexing","\u002Ftechnical-writing\u002Findices","06.technical-writing\u002F10.indices",{"title":194,"path":195,"stem":196},"Glossary","\u002Ftechnical-writing\u002Fglossary","06.technical-writing\u002F11.glossary",{"title":198,"icon":199,"path":200,"stem":201,"children":202,"page":30},"Cross-References and Links","i-lucide-link","\u002Fcross-references","07.cross-references",[203,207,211],{"title":204,"path":205,"stem":206},"Labels and Cross Referencing","\u002Fcross-references\u002Flabels-and-cross-referencing","07.cross-references\u002F01.labels-and-cross-referencing",{"title":208,"path":209,"stem":210},"Hyperlinks","\u002Fcross-references\u002Fhyperlinks","07.cross-references\u002F02.hyperlinks",{"title":212,"path":213,"stem":214},"Initials","\u002Fcross-references\u002Finitials","07.cross-references\u002F03.initials",{"title":216,"icon":217,"path":218,"stem":219,"children":220,"page":30},"Specialized Documents","i-lucide-file-badge","\u002Fspecialized-documents","08.specialized-documents",[221,225,229,233,237,241,245,249],{"title":222,"path":223,"stem":224},"Scientific Reports","\u002Fspecialized-documents\u002Fscientific-reports","08.specialized-documents\u002F01.scientific-reports",{"title":226,"path":227,"stem":228},"Letters","\u002Fspecialized-documents\u002Fletters","08.specialized-documents\u002F02.letters",{"title":230,"path":231,"stem":232},"Presentations","\u002Fspecialized-documents\u002Fpresentations","08.specialized-documents\u002F03.presentations",{"title":234,"path":235,"stem":236},"Teacher's Corner","\u002Fspecialized-documents\u002Fteachers-corner","08.specialized-documents\u002F04.teachers-corner",{"title":238,"path":239,"stem":240},"Curriculum Vitae","\u002Fspecialized-documents\u002Fcurriculum-vitae","08.specialized-documents\u002F05.curriculum-vitae",{"title":242,"path":243,"stem":244},"Academic Journals","\u002Fspecialized-documents\u002Facademic-journals","08.specialized-documents\u002F06.academic-journals",{"title":246,"path":247,"stem":248},"Xy-pic","\u002Fspecialized-documents\u002Fxy-pic","08.specialized-documents\u002F07.xy-pic",{"title":250,"path":251,"stem":252},"Creating 3D Graphics","\u002Fspecialized-documents\u002Fcreating-3d-graphics","08.specialized-documents\u002F08.creating-3d-graphics",{"title":254,"icon":255,"path":256,"stem":257,"children":258,"page":30},"Programming LaTeX","i-lucide-code","\u002Fprogramming","09.programming",[259,263,267,271,275,279,283,287],{"title":260,"path":261,"stem":262},"Macros","\u002Fprogramming\u002Fmacros","09.programming\u002F01.macros",{"title":264,"path":265,"stem":266},"Plain TeX","\u002Fprogramming\u002Fplain-tex","09.programming\u002F02.plain-tex",{"title":268,"path":269,"stem":270},"Creating Packages","\u002Fprogramming\u002Fcreating-packages","09.programming\u002F03.creating-packages",{"title":272,"path":273,"stem":274},"Creating Package Documentation","\u002Fprogramming\u002Fcreating-package-documentation","09.programming\u002F04.creating-package-documentation",{"title":276,"path":277,"stem":278},"Themes","\u002Fprogramming\u002Fthemes","09.programming\u002F05.themes",{"title":280,"path":281,"stem":282},"Modular Documents","\u002Fprogramming\u002Fmodular-documents","09.programming\u002F06.modular-documents",{"title":284,"path":285,"stem":286},"Collaborative Writing of LaTeX Documents","\u002Fprogramming\u002Fcollaborative-writing","09.programming\u002F07.collaborative-writing",{"title":288,"path":289,"stem":290},"Export To Other Formats","\u002Fprogramming\u002Fexport-to-other-formats","09.programming\u002F08.export-to-other-formats",{"title":292,"icon":293,"path":294,"stem":295,"children":296,"page":30},"Reference and Help","i-lucide-book-open","\u002Freference","10.reference",[297,301,305,309,313,317,321,325],{"title":298,"path":299,"stem":300},"FAQ","\u002Freference\u002Ffaq","10.reference\u002F01.faq",{"title":302,"path":303,"stem":304},"Tips and Tricks","\u002Freference\u002Ftips-and-tricks","10.reference\u002F02.tips-and-tricks",{"title":306,"path":307,"stem":308},"Errors and Warnings","\u002Freference\u002Ferrors-and-warnings","10.reference\u002F03.errors-and-warnings",{"title":310,"path":311,"stem":312},"Lengths","\u002Freference\u002Flengths","10.reference\u002F04.lengths",{"title":314,"path":315,"stem":316},"Counters","\u002Freference\u002Fcounters","10.reference\u002F05.counters",{"title":318,"path":319,"stem":320},"Boxes","\u002Freference\u002Fboxes","10.reference\u002F06.boxes",{"title":322,"path":323,"stem":324},"Rules and Struts","\u002Freference\u002Frules-and-struts","10.reference\u002F07.rules-and-struts",{"title":326,"path":327,"stem":328},"Command Glossary","\u002Freference\u002Fcommand-glossary","10.reference\u002F08.command-glossary",{"title":330,"icon":331,"path":332,"stem":333,"children":334,"page":30},"Appendices","i-lucide-bookmark","\u002Fappendices","11.appendices",[335,339,343,347],{"title":336,"path":337,"stem":338},"Package Reference","\u002Fappendices\u002Fpackage-reference","11.appendices\u002F01.package-reference",{"title":340,"path":341,"stem":342},"Sample LaTeX Documents","\u002Fappendices\u002Fsample-latex-documents","11.appendices\u002F02.sample-latex-documents",{"title":344,"path":345,"stem":346},"Links","\u002Fappendices\u002Flinks","11.appendices\u002F03.links",{"title":348,"path":349,"stem":350},"Authors","\u002Fappendices\u002Fauthors","11.appendices\u002F04.authors",{"id":352,"title":250,"body":353,"description":960,"extension":961,"links":962,"meta":963,"navigation":397,"path":251,"seo":964,"stem":252,"__hash__":965},"docs\u002F08.specialized-documents\u002F08.creating-3d-graphics.md",{"type":354,"value":355,"toc":946},"minimark",[356,360,365,368,465,470,499,503,510,549,553,605,609,634,640,647,656,660,663,735,738,769,773,805,809,909,913,942],[357,358,359],"p",{},"While LaTeX excels at 2D graphics, creating 3D graphics requires specialized packages. Each approach has different strengths for different use cases.",[361,362,364],"h2",{"id":363},"pgftikz-basic-3d","PGF\u002FTikZ Basic 3D",[357,366,367],{},"TikZ provides basic 3D drawing capabilities through coordinate transformations. While not true 3D rendering, it works well for simple 3D diagrams.",[369,370,375],"pre",{"className":371,"code":372,"language":373,"meta":374,"style":374},"language-latex shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\\usepackage{tikz}\n\\usetikzlibrary{3d}\n\n\\begin{tikzpicture}[x={(1cm,0cm)}, y={(0cm,1cm)}, z={(0cm,0.5cm)}]\n  % Draw a cube\n  \\draw[fill=blue!20] (0,0,0) -- (1,0,0) -- (1,1,0) -- (0,1,0) -- cycle;\n  \\draw[fill=blue!40] (1,0,0) -- (1,0,1) -- (1,1,1) -- (1,1,0) -- cycle;\n  \\draw[fill=blue!30] (0,0,0) -- (1,0,0) -- (1,0,1) -- (0,0,1) -- cycle;\n  \n  % Draw axes\n  \\draw[->] (0,0,0) -- (1.5,0,0) node[below] {$x$};\n  \\draw[->] (0,0,0) -- (0,1.5,0) node[left] {$y$};\n  \\draw[->] (0,0,0) -- (0,0,1.5) node[above] {$z$};\n\\end{tikzpicture}\n","latex","",[376,377,378,386,392,399,405,411,417,423,429,435,441,447,453,459],"code",{"__ignoreMap":374},[379,380,383],"span",{"class":381,"line":382},"line",1,[379,384,385],{},"\\usepackage{tikz}\n",[379,387,389],{"class":381,"line":388},2,[379,390,391],{},"\\usetikzlibrary{3d}\n",[379,393,395],{"class":381,"line":394},3,[379,396,398],{"emptyLinePlaceholder":397},true,"\n",[379,400,402],{"class":381,"line":401},4,[379,403,404],{},"\\begin{tikzpicture}[x={(1cm,0cm)}, y={(0cm,1cm)}, z={(0cm,0.5cm)}]\n",[379,406,408],{"class":381,"line":407},5,[379,409,410],{},"  % Draw a cube\n",[379,412,414],{"class":381,"line":413},6,[379,415,416],{},"  \\draw[fill=blue!20] (0,0,0) -- (1,0,0) -- (1,1,0) -- (0,1,0) -- cycle;\n",[379,418,420],{"class":381,"line":419},7,[379,421,422],{},"  \\draw[fill=blue!40] (1,0,0) -- (1,0,1) -- (1,1,1) -- (1,1,0) -- cycle;\n",[379,424,426],{"class":381,"line":425},8,[379,427,428],{},"  \\draw[fill=blue!30] (0,0,0) -- (1,0,0) -- (1,0,1) -- (0,0,1) -- cycle;\n",[379,430,432],{"class":381,"line":431},9,[379,433,434],{},"  \n",[379,436,438],{"class":381,"line":437},10,[379,439,440],{},"  % Draw axes\n",[379,442,444],{"class":381,"line":443},11,[379,445,446],{},"  \\draw[->] (0,0,0) -- (1.5,0,0) node[below] {$x$};\n",[379,448,450],{"class":381,"line":449},12,[379,451,452],{},"  \\draw[->] (0,0,0) -- (0,1.5,0) node[left] {$y$};\n",[379,454,456],{"class":381,"line":455},13,[379,457,458],{},"  \\draw[->] (0,0,0) -- (0,0,1.5) node[above] {$z$};\n",[379,460,462],{"class":381,"line":461},14,[379,463,464],{},"\\end{tikzpicture}\n",[466,467,469],"h3",{"id":468},"tikz-3d-coordinate-system","TikZ 3D Coordinate System",[369,471,473],{"className":371,"code":472,"language":373,"meta":374,"style":374},"\\begin{tikzpicture}[x={(1cm,0cm)}, y={(0cm,1cm)}, z={(0.5cm,-0.3cm)}]\n  % Different perspective angles\n  \\draw[thick] (0,0,0) -- (2,0,0) -- (2,2,0) -- (0,2,0) -- cycle;\n  \\draw[thick] (0,0,0) -- (0,0,2);\n\\end{tikzpicture}\n",[376,474,475,480,485,490,495],{"__ignoreMap":374},[379,476,477],{"class":381,"line":382},[379,478,479],{},"\\begin{tikzpicture}[x={(1cm,0cm)}, y={(0cm,1cm)}, z={(0.5cm,-0.3cm)}]\n",[379,481,482],{"class":381,"line":388},[379,483,484],{},"  % Different perspective angles\n",[379,486,487],{"class":381,"line":394},[379,488,489],{},"  \\draw[thick] (0,0,0) -- (2,0,0) -- (2,2,0) -- (0,2,0) -- cycle;\n",[379,491,492],{"class":381,"line":401},[379,493,494],{},"  \\draw[thick] (0,0,0) -- (0,0,2);\n",[379,496,497],{"class":381,"line":407},[379,498,464],{},[361,500,502],{"id":501},"pst-solides3d-true-3d-rendering","pst-solides3d (True 3D Rendering)",[357,504,505,506,509],{},"The ",[376,507,508],{},"pst-solides3d"," package provides true 3D rendering with surface visibility, hidden line removal, and lighting.",[369,511,513],{"className":371,"code":512,"language":373,"meta":374,"style":374},"\\usepackage{pst-solides3d}\n\n\\begin{document}\n\\begin{pspicture}(-2,-2)(2,2)\n  \\psSolid[object=cylinder, r=1, h=2, hue=0 1]\n\\end{pspicture}\n\\end{document}\n",[376,514,515,520,524,529,534,539,544],{"__ignoreMap":374},[379,516,517],{"class":381,"line":382},[379,518,519],{},"\\usepackage{pst-solides3d}\n",[379,521,522],{"class":381,"line":388},[379,523,398],{"emptyLinePlaceholder":397},[379,525,526],{"class":381,"line":394},[379,527,528],{},"\\begin{document}\n",[379,530,531],{"class":381,"line":401},[379,532,533],{},"\\begin{pspicture}(-2,-2)(2,2)\n",[379,535,536],{"class":381,"line":407},[379,537,538],{},"  \\psSolid[object=cylinder, r=1, h=2, hue=0 1]\n",[379,540,541],{"class":381,"line":413},[379,542,543],{},"\\end{pspicture}\n",[379,545,546],{"class":381,"line":419},[379,547,548],{},"\\end{document}\n",[466,550,552],{"id":551},"_3d-objects","3D Objects",[369,554,556],{"className":371,"code":555,"language":373,"meta":374,"style":374},"\\begin{pspicture}(-3,-3)(3,3)\n  % Sphere\n  \\psSolid[object=sphere, r=1, hue=0 1](0,0,0)\n  \n  % Cube\n  \\psSolid[object=cube, a=1.5, hue=0 1](2,0,0)\n  \n  % Cone\n  \\psSolid[object=cone, r=1, h=2, hue=0 1](-2,0,0)\n\\end{pspicture}\n",[376,557,558,563,568,573,577,582,587,591,596,601],{"__ignoreMap":374},[379,559,560],{"class":381,"line":382},[379,561,562],{},"\\begin{pspicture}(-3,-3)(3,3)\n",[379,564,565],{"class":381,"line":388},[379,566,567],{},"  % Sphere\n",[379,569,570],{"class":381,"line":394},[379,571,572],{},"  \\psSolid[object=sphere, r=1, hue=0 1](0,0,0)\n",[379,574,575],{"class":381,"line":401},[379,576,434],{},[379,578,579],{"class":381,"line":407},[379,580,581],{},"  % Cube\n",[379,583,584],{"class":381,"line":413},[379,585,586],{},"  \\psSolid[object=cube, a=1.5, hue=0 1](2,0,0)\n",[379,588,589],{"class":381,"line":419},[379,590,434],{},[379,592,593],{"class":381,"line":425},[379,594,595],{},"  % Cone\n",[379,597,598],{"class":381,"line":431},[379,599,600],{},"  \\psSolid[object=cone, r=1, h=2, hue=0 1](-2,0,0)\n",[379,602,603],{"class":381,"line":437},[379,604,543],{},[466,606,608],{"id":607},"custom-surfaces","Custom Surfaces",[369,610,612],{"className":371,"code":611,"language":373,"meta":374,"style":374},"\\psSolid[object=function,\n  x\u002Fy\u002Fz F 2 index cos mul 3 index sin mul,\n  r 1,\n  hue 0 1]\n",[376,613,614,619,624,629],{"__ignoreMap":374},[379,615,616],{"class":381,"line":382},[379,617,618],{},"\\psSolid[object=function,\n",[379,620,621],{"class":381,"line":388},[379,622,623],{},"  x\u002Fy\u002Fz F 2 index cos mul 3 index sin mul,\n",[379,625,626],{"class":381,"line":394},[379,627,628],{},"  r 1,\n",[379,630,631],{"class":381,"line":401},[379,632,633],{},"  hue 0 1]\n",[357,635,636,637],{},"Compile with: ",[376,638,639],{},"dvips filename.tex && ps2pdf filename.ps",[357,641,642,643,646],{},"Or use ",[376,644,645],{},"auto-pst-pdf"," for pdflatex compatibility:",[369,648,650],{"className":371,"code":649,"language":373,"meta":374,"style":374},"\\usepackage{auto-pst-pdf}\n",[376,651,652],{"__ignoreMap":374},[379,653,654],{"class":381,"line":382},[379,655,649],{},[361,657,659],{"id":658},"asymptote","Asymptote",[357,661,662],{},"Asymptote is a powerful vector graphics language with true 3D support, designed to work seamlessly with LaTeX.",[369,664,666],{"className":371,"code":665,"language":373,"meta":374,"style":374},"\\documentclass{article}\n\\usepackage{asymptote}\n\n\\begin{document}\n\\begin{asy}\nimport three;\nsize(200);\ncurrentprojection=perspective(6,3,2);\ndraw(unitsphere,blue+opacity(0.5));\ndraw(O--X,red,Arrow3);\ndraw(O--Y,green,Arrow3);\ndraw(O--Z,blue,Arrow3);\n\\end{asy}\n\\end{document}\n",[376,667,668,673,678,682,686,691,696,701,706,711,716,721,726,731],{"__ignoreMap":374},[379,669,670],{"class":381,"line":382},[379,671,672],{},"\\documentclass{article}\n",[379,674,675],{"class":381,"line":388},[379,676,677],{},"\\usepackage{asymptote}\n",[379,679,680],{"class":381,"line":394},[379,681,398],{"emptyLinePlaceholder":397},[379,683,684],{"class":381,"line":401},[379,685,528],{},[379,687,688],{"class":381,"line":407},[379,689,690],{},"\\begin{asy}\n",[379,692,693],{"class":381,"line":413},[379,694,695],{},"import three;\n",[379,697,698],{"class":381,"line":419},[379,699,700],{},"size(200);\n",[379,702,703],{"class":381,"line":425},[379,704,705],{},"currentprojection=perspective(6,3,2);\n",[379,707,708],{"class":381,"line":431},[379,709,710],{},"draw(unitsphere,blue+opacity(0.5));\n",[379,712,713],{"class":381,"line":437},[379,714,715],{},"draw(O--X,red,Arrow3);\n",[379,717,718],{"class":381,"line":443},[379,719,720],{},"draw(O--Y,green,Arrow3);\n",[379,722,723],{"class":381,"line":449},[379,724,725],{},"draw(O--Z,blue,Arrow3);\n",[379,727,728],{"class":381,"line":455},[379,729,730],{},"\\end{asy}\n",[379,732,733],{"class":381,"line":461},[379,734,548],{},[357,736,737],{},"Compile with:",[369,739,743],{"className":740,"code":741,"language":742,"meta":374,"style":374},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pdflatex filename.tex\nasy filename\npdflatex filename.tex\n","bash",[376,744,745,755,763],{"__ignoreMap":374},[379,746,747,751],{"class":381,"line":382},[379,748,750],{"class":749},"sBMFI","pdflatex",[379,752,754],{"class":753},"sfazB"," filename.tex\n",[379,756,757,760],{"class":381,"line":388},[379,758,759],{"class":749},"asy",[379,761,762],{"class":753}," filename\n",[379,764,765,767],{"class":381,"line":394},[379,766,750],{"class":749},[379,768,754],{"class":753},[466,770,772],{"id":771},"asymptote-3d-surface","Asymptote 3D Surface",[369,774,776],{"className":371,"code":775,"language":373,"meta":374,"style":374},"\\begin{asy}\nimport three;\nsize(200,0);\nreal f(pair z) {return cos(z.x)*sin(z.y);}\ndraw(surface(f,(-pi,-pi),(pi,pi),nx=20),blue+opacity(0.7));\n\\end{asy}\n",[376,777,778,782,786,791,796,801],{"__ignoreMap":374},[379,779,780],{"class":381,"line":382},[379,781,690],{},[379,783,784],{"class":381,"line":388},[379,785,695],{},[379,787,788],{"class":381,"line":394},[379,789,790],{},"size(200,0);\n",[379,792,793],{"class":381,"line":401},[379,794,795],{},"real f(pair z) {return cos(z.x)*sin(z.y);}\n",[379,797,798],{"class":381,"line":407},[379,799,800],{},"draw(surface(f,(-pi,-pi),(pi,pi),nx=20),blue+opacity(0.7));\n",[379,802,803],{"class":381,"line":413},[379,804,730],{},[361,806,808],{"id":807},"comparison-table","Comparison Table",[810,811,812,829],"table",{},[813,814,815],"thead",{},[816,817,818,822,825,827],"tr",{},[819,820,821],"th",{},"Feature",[819,823,824],{},"TikZ 3D",[819,826,508],{},[819,828,659],{},[830,831,832,846,857,869,882,895],"tbody",{},[816,833,834,838,841,844],{},[835,836,837],"td",{},"True 3D rendering",[835,839,840],{},"No",[835,842,843],{},"Yes",[835,845,843],{},[816,847,848,851,853,855],{},[835,849,850],{},"Hidden surface removal",[835,852,840],{},[835,854,843],{},[835,856,843],{},[816,858,859,862,865,867],{},[835,860,861],{},"Lighting\u002Fshading",[835,863,864],{},"Limited",[835,866,843],{},[835,868,843],{},[816,870,871,874,877,880],{},[835,872,873],{},"Ease of use",[835,875,876],{},"Easy",[835,878,879],{},"Medium",[835,881,879],{},[816,883,884,887,889,892],{},[835,885,886],{},"Compilation",[835,888,750],{},[835,890,891],{},"dvips\u002Fps2pdf",[835,893,894],{},"pdflatex+asy",[816,896,897,900,903,906],{},[835,898,899],{},"Best for",[835,901,902],{},"Diagrams",[835,904,905],{},"CAD-like objects",[835,907,908],{},"Scientific visualization",[361,910,912],{"id":911},"best-practices","Best Practices",[914,915,916,924,930,936],"ol",{},[917,918,919,923],"li",{},[920,921,922],"strong",{},"Choose the right tool",": Use TikZ for simple 3D diagrams, pst-solides3d for CAD-like objects, Asymptote for complex scientific visualizations.",[917,925,926,929],{},[920,927,928],{},"Consider compilation",": PSTricks-based packages need dvips; Asymptote needs two pdflatex passes with asy in between.",[917,931,932,935],{},[920,933,934],{},"Optimize file size",": Complex 3D surfaces can produce large files. Reduce resolution where possible.",[917,937,938,941],{},[920,939,940],{},"Test rendering",": Always verify that hidden surfaces are correctly handled in your final output.",[943,944,945],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":374,"searchDepth":388,"depth":388,"links":947},[948,951,955,958,959],{"id":363,"depth":388,"text":364,"children":949},[950],{"id":468,"depth":394,"text":469},{"id":501,"depth":388,"text":502,"children":952},[953,954],{"id":551,"depth":394,"text":552},{"id":607,"depth":394,"text":608},{"id":658,"depth":388,"text":659,"children":956},[957],{"id":771,"depth":394,"text":772},{"id":807,"depth":388,"text":808},{"id":911,"depth":388,"text":912},"Learn how to create three-dimensional graphics in LaTeX documents using TikZ, pst-solides3d, and Asymptote.","md",null,{},{"title":250,"description":960},"u71XXc3vRSm6vWU7V8qw2G0CkZypUXTSkOVtQ8qRZtg",[967,969],{"title":246,"path":247,"stem":248,"description":968,"children":-1},"Learn to create matrix-based diagrams, arrows, curves, and commutative diagrams in LaTeX with Xy-pic.",{"title":260,"path":261,"stem":262,"description":970,"children":-1},"Learn how to create new commands and environments in LaTeX, use conditionals, loops, and other programming features.",1785155512718]