Graphics, Figures & TablesRing around Sphere

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Sundial
Posts: 57
Joined: Thu Apr 19, 2012 7:28 pm

Ring around Sphere

Post by Sundial »

Hi,

as shown in attachment, the globe represents Earth scheme surrounded by the track of a satellite, whose two positions (marked with spots) are connected to Earth's center.

Consider this Asymptote code.

Code: Select all

size(100); 
import solids; 
currentprojection=orthographic(3,2,0.5);
revolution sphere=sphere(1); 
draw(surface(sphere),blue+opacity(0.2));
No troubles arise to plot the sphere, but to complete the figure I need that someone help me.

Thank you in advance
Attachments
orbitsat.png
orbitsat.png (35.42 KiB) Viewed 3874 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Sundial
Posts: 57
Joined: Thu Apr 19, 2012 7:28 pm

Ring around Sphere

Post by Sundial »

Please, Administrators, be noticed that the interesting feature "open in writelax" doesn't work with Asymptote. My previous code should be amended as follows:

Code: Select all

\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{asymptote}  %  tikz replaced
\begin{document}
\begin{asy}            % added
size(100); 
import solids; 
currentprojection=orthographic(3,2,0.5);
revolution sphere=sphere(1); 
draw(surface(sphere),blue+opacity(0.2));
\end{asy}              % added
\end{document}
but performed in two steps outside this form, unfortunately.
pdflatex name
asy name-1
Perhaps, few people use Asymptote and what I've suggested is unfair for you.
All the best
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Ring around Sphere

Post by localghost »

Sundial wrote:Please, Administrators, be noticed that the interesting feature "open in writelax" doesn't work with Asymptote. […]
This is not a problem of the forum here but one of writeLaTeX itself. So you better contact the operators and make corresponding feature suggestions.


Thorsten
Sundial
Posts: 57
Joined: Thu Apr 19, 2012 7:28 pm

Re: Ring around Sphere

Post by Sundial »

Thanks, Thorsten! I'll contact them, soon.
Post Reply