Project this triangle on surface of a sphereHow to display a duck or marmot swallowed by a darkholeClipping more complicated shapes in TikZtransform shape nonlinear=true vs. accessing coordinatesLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Why do I get an extra white page before my TikZ picture?TikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?

1, 2, 4, 8, 16, ... 33?

Is it possible to constructively prove that every quaternion has a square root?

Is this a Sherman, and if so what model?

The quicker I go up, the sooner I’ll go down - Riddle

Do we know the situation in Britain before Sealion (summer 1940)?

Why is there not a feasible solution for a MIP?

Idiom for "I came, I saw, I ate" (or drank)

My 15 year old son is gay. How do I express my feelings about this?

Find missing number in the transformation

Which museums have artworks of all four Ninja Turtles' namesakes?

Examples of "unsuccessful" theories with afterlives

Is it possible to encode a message in such a way that can only be read by someone or something capable of seeing into the very near future?

Is it a good idea to leave minor world details to the reader's imagination?

Social leper versus social leopard

Why is the missed-approach course for the "RNAV (GNSS) - A" approach to runway 28 at ENSB shaped all funny?

What are these pixel-level discolored specks? How can I fix it?

Writing a letter of recommendation for a mediocre student

Transforming 2D points on to a regular grid or lattice

The 100 soldier problem

Going to France with limited French for a day

What are the benefits and disadvantages if a creature has multiple tails, e.g., Kyuubi or Nekomata?

I reverse the source code, you negate the input!

Is it really necessary to have a four hour meeting in Sprint planning?

Is it true that, "just ten trading days represent 63 per cent of the returns of the past 50 years"?



Project this triangle on surface of a sphere


How to display a duck or marmot swallowed by a darkholeClipping more complicated shapes in TikZtransform shape nonlinear=true vs. accessing coordinatesLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Why do I get an extra white page before my TikZ picture?TikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I have the following triangle in TikZ MWE:



documentclass[tikz]standalone
usepackagepgfplots,mathtools
usetikzlibraryhapes,decorations.pathreplacing
usetikzlibrarypatterns
definecolorRoyalAzurergb0.0, 0.22, 0.66

begindocument

begintikzpicture
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;
endtikzpicture

enddocument


that generates:



Triangle



I would like to project this triangle to the surface of a sphere, much like this figure:



Bloch sphere



How can I do this?










share|improve this question
























  • Somewhat related: tex.stackexchange.com/questions/408245/…

    – John Kormylo
    Apr 15 at 15:12

















2















I have the following triangle in TikZ MWE:



documentclass[tikz]standalone
usepackagepgfplots,mathtools
usetikzlibraryhapes,decorations.pathreplacing
usetikzlibrarypatterns
definecolorRoyalAzurergb0.0, 0.22, 0.66

begindocument

begintikzpicture
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;
endtikzpicture

enddocument


that generates:



Triangle



I would like to project this triangle to the surface of a sphere, much like this figure:



Bloch sphere



How can I do this?










share|improve this question
























  • Somewhat related: tex.stackexchange.com/questions/408245/…

    – John Kormylo
    Apr 15 at 15:12













2












2








2


1






I have the following triangle in TikZ MWE:



documentclass[tikz]standalone
usepackagepgfplots,mathtools
usetikzlibraryhapes,decorations.pathreplacing
usetikzlibrarypatterns
definecolorRoyalAzurergb0.0, 0.22, 0.66

begindocument

begintikzpicture
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;
endtikzpicture

enddocument


that generates:



Triangle



I would like to project this triangle to the surface of a sphere, much like this figure:



Bloch sphere



How can I do this?










share|improve this question














I have the following triangle in TikZ MWE:



documentclass[tikz]standalone
usepackagepgfplots,mathtools
usetikzlibraryhapes,decorations.pathreplacing
usetikzlibrarypatterns
definecolorRoyalAzurergb0.0, 0.22, 0.66

begindocument

begintikzpicture
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;
endtikzpicture

enddocument


that generates:



Triangle



I would like to project this triangle to the surface of a sphere, much like this figure:



Bloch sphere



How can I do this?







tikz-pgf tikz-styles






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 15 at 11:48









SidSid

7403 silver badges18 bronze badges




7403 silver badges18 bronze badges















  • Somewhat related: tex.stackexchange.com/questions/408245/…

    – John Kormylo
    Apr 15 at 15:12

















  • Somewhat related: tex.stackexchange.com/questions/408245/…

    – John Kormylo
    Apr 15 at 15:12
















Somewhat related: tex.stackexchange.com/questions/408245/…

– John Kormylo
Apr 15 at 15:12





Somewhat related: tex.stackexchange.com/questions/408245/…

– John Kormylo
Apr 15 at 15:12










1 Answer
1






active

oldest

votes


















4
















The angles of the triangle on the sphere are 3 times 90 degrees whereas the angles of the triangle in the plane are 60 degrees each. Therefore I do not precisely understand what is meant by "project". If it is meant that the triangle on the sphere should also have three equal angles, you could do e.g.



documentclass[tikz,border=3.14mm]standalone
usepackagetikz-3dplot
usetikzlibrarypatterns,backgrounds
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,declare function=R=pi;]
shade[tdplot_screen_coords,ball color=gray,opacity=0.5] (0,0) coordinate(O)
circle[radius=R];
draw plot[variable=x,domain=tdplotmainphi-180:tdplotmainphi,smooth]
(R*cos(x),R*sin(x),0);
draw[blue,pattern=dots,pattern color=blue]
plot[variable=x,domain=90:00,smooth] (0,-R*sin(x),R*cos(x))
coordinate (p1)
-- plot[variable=x,domain=0:90,smooth] (R*sin(x),0,R*cos(x))
coordinate (p2)
-- plot[variable=x,domain=0:90,smooth] (R*cos(x),-R*sin(x),0)
coordinate (p3);
beginscope[on background layer]
foreach X in 1,2,3
draw[dashed] (O) -- (pX);
endscope
endtikzpicture
enddocument


enter image description here



An alternative could be to use nonlinear transformations to project anything you want on a sphere. We have used this for the Christmas balls in this video (at a time in which the atmosphere were better...). However, when doing this, we run into the above-mentioned problem that the triangle has different angles on the sphere.



documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
usepgfmodulenonlineartransformations
makeatletter
% from https://tex.stackexchange.com/a/434247/121799
tikzdeclarecoordinatesystemsphere
tikz@scan@one@pointrelax(#1)
spheretransformation

%
defspheretransformation% similar to the pgfmanual section 103.4.2
pgfmathsincos@pgf@sys@tonumberpgf@x%
pgfmathsetmacrorelXthepgf@x/28.3465%
pgfmathsetmacrorelYthepgf@y/28.3465%min(max(
pgfmathsetmacromyx28.3465*Radius*cos(min(max((relY/Radius)*(180/pi),-90),90))*sin(min(max((relX/Radius)*cos(min(max((relY/Radius)*(180/pi),-90),90))*(180/pi),-90),90))
pgfmathsetmacromyy28.3465*Radius*sin(min(max((relY/Radius)*(180/pi),-90),90))%typeout(relX,relY)->(myx,myy)%
pgf@x=myx pt%
pgf@y=myy pt%

makeatother
begindocument
begintikzpicture[pics/trian/.style=code=
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;]
pgfmathsetmacroRadius4
shade[ball color=red] (0,0) circle[radius=Radius];
beginscope[xshift=-10cm]
path (0,0) pictrian;
endscope
beginscope[transform shape nonlinear=true]
pgftransformnonlinearspheretransformation
pic[local bounding box=box1] at (0,0) trian;
endscope
endtikzpicture
enddocument


enter image description here






share|improve this answer






















  • 1





    In this case, I did only want a triangle with the same angles but on the surface of the sphere. I do have other examples where I want to perform a strict projection - but you have very helpfully included an example on how to do that too! Thank you. P.s. a lot of marmots in the video :D

    – Sid
    Apr 15 at 15:07











  • For the first method you have, is it possible you could add the axes as in the image in the question?

    – Sid
    Apr 15 at 16:31











  • @Sid Done.......

    – user121799
    Apr 15 at 18:06













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484945%2fproject-this-triangle-on-surface-of-a-sphere%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4
















The angles of the triangle on the sphere are 3 times 90 degrees whereas the angles of the triangle in the plane are 60 degrees each. Therefore I do not precisely understand what is meant by "project". If it is meant that the triangle on the sphere should also have three equal angles, you could do e.g.



documentclass[tikz,border=3.14mm]standalone
usepackagetikz-3dplot
usetikzlibrarypatterns,backgrounds
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,declare function=R=pi;]
shade[tdplot_screen_coords,ball color=gray,opacity=0.5] (0,0) coordinate(O)
circle[radius=R];
draw plot[variable=x,domain=tdplotmainphi-180:tdplotmainphi,smooth]
(R*cos(x),R*sin(x),0);
draw[blue,pattern=dots,pattern color=blue]
plot[variable=x,domain=90:00,smooth] (0,-R*sin(x),R*cos(x))
coordinate (p1)
-- plot[variable=x,domain=0:90,smooth] (R*sin(x),0,R*cos(x))
coordinate (p2)
-- plot[variable=x,domain=0:90,smooth] (R*cos(x),-R*sin(x),0)
coordinate (p3);
beginscope[on background layer]
foreach X in 1,2,3
draw[dashed] (O) -- (pX);
endscope
endtikzpicture
enddocument


enter image description here



An alternative could be to use nonlinear transformations to project anything you want on a sphere. We have used this for the Christmas balls in this video (at a time in which the atmosphere were better...). However, when doing this, we run into the above-mentioned problem that the triangle has different angles on the sphere.



documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
usepgfmodulenonlineartransformations
makeatletter
% from https://tex.stackexchange.com/a/434247/121799
tikzdeclarecoordinatesystemsphere
tikz@scan@one@pointrelax(#1)
spheretransformation

%
defspheretransformation% similar to the pgfmanual section 103.4.2
pgfmathsincos@pgf@sys@tonumberpgf@x%
pgfmathsetmacrorelXthepgf@x/28.3465%
pgfmathsetmacrorelYthepgf@y/28.3465%min(max(
pgfmathsetmacromyx28.3465*Radius*cos(min(max((relY/Radius)*(180/pi),-90),90))*sin(min(max((relX/Radius)*cos(min(max((relY/Radius)*(180/pi),-90),90))*(180/pi),-90),90))
pgfmathsetmacromyy28.3465*Radius*sin(min(max((relY/Radius)*(180/pi),-90),90))%typeout(relX,relY)->(myx,myy)%
pgf@x=myx pt%
pgf@y=myy pt%

makeatother
begindocument
begintikzpicture[pics/trian/.style=code=
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;]
pgfmathsetmacroRadius4
shade[ball color=red] (0,0) circle[radius=Radius];
beginscope[xshift=-10cm]
path (0,0) pictrian;
endscope
beginscope[transform shape nonlinear=true]
pgftransformnonlinearspheretransformation
pic[local bounding box=box1] at (0,0) trian;
endscope
endtikzpicture
enddocument


enter image description here






share|improve this answer






















  • 1





    In this case, I did only want a triangle with the same angles but on the surface of the sphere. I do have other examples where I want to perform a strict projection - but you have very helpfully included an example on how to do that too! Thank you. P.s. a lot of marmots in the video :D

    – Sid
    Apr 15 at 15:07











  • For the first method you have, is it possible you could add the axes as in the image in the question?

    – Sid
    Apr 15 at 16:31











  • @Sid Done.......

    – user121799
    Apr 15 at 18:06















4
















The angles of the triangle on the sphere are 3 times 90 degrees whereas the angles of the triangle in the plane are 60 degrees each. Therefore I do not precisely understand what is meant by "project". If it is meant that the triangle on the sphere should also have three equal angles, you could do e.g.



documentclass[tikz,border=3.14mm]standalone
usepackagetikz-3dplot
usetikzlibrarypatterns,backgrounds
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,declare function=R=pi;]
shade[tdplot_screen_coords,ball color=gray,opacity=0.5] (0,0) coordinate(O)
circle[radius=R];
draw plot[variable=x,domain=tdplotmainphi-180:tdplotmainphi,smooth]
(R*cos(x),R*sin(x),0);
draw[blue,pattern=dots,pattern color=blue]
plot[variable=x,domain=90:00,smooth] (0,-R*sin(x),R*cos(x))
coordinate (p1)
-- plot[variable=x,domain=0:90,smooth] (R*sin(x),0,R*cos(x))
coordinate (p2)
-- plot[variable=x,domain=0:90,smooth] (R*cos(x),-R*sin(x),0)
coordinate (p3);
beginscope[on background layer]
foreach X in 1,2,3
draw[dashed] (O) -- (pX);
endscope
endtikzpicture
enddocument


enter image description here



An alternative could be to use nonlinear transformations to project anything you want on a sphere. We have used this for the Christmas balls in this video (at a time in which the atmosphere were better...). However, when doing this, we run into the above-mentioned problem that the triangle has different angles on the sphere.



documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
usepgfmodulenonlineartransformations
makeatletter
% from https://tex.stackexchange.com/a/434247/121799
tikzdeclarecoordinatesystemsphere
tikz@scan@one@pointrelax(#1)
spheretransformation

%
defspheretransformation% similar to the pgfmanual section 103.4.2
pgfmathsincos@pgf@sys@tonumberpgf@x%
pgfmathsetmacrorelXthepgf@x/28.3465%
pgfmathsetmacrorelYthepgf@y/28.3465%min(max(
pgfmathsetmacromyx28.3465*Radius*cos(min(max((relY/Radius)*(180/pi),-90),90))*sin(min(max((relX/Radius)*cos(min(max((relY/Radius)*(180/pi),-90),90))*(180/pi),-90),90))
pgfmathsetmacromyy28.3465*Radius*sin(min(max((relY/Radius)*(180/pi),-90),90))%typeout(relX,relY)->(myx,myy)%
pgf@x=myx pt%
pgf@y=myy pt%

makeatother
begindocument
begintikzpicture[pics/trian/.style=code=
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;]
pgfmathsetmacroRadius4
shade[ball color=red] (0,0) circle[radius=Radius];
beginscope[xshift=-10cm]
path (0,0) pictrian;
endscope
beginscope[transform shape nonlinear=true]
pgftransformnonlinearspheretransformation
pic[local bounding box=box1] at (0,0) trian;
endscope
endtikzpicture
enddocument


enter image description here






share|improve this answer






















  • 1





    In this case, I did only want a triangle with the same angles but on the surface of the sphere. I do have other examples where I want to perform a strict projection - but you have very helpfully included an example on how to do that too! Thank you. P.s. a lot of marmots in the video :D

    – Sid
    Apr 15 at 15:07











  • For the first method you have, is it possible you could add the axes as in the image in the question?

    – Sid
    Apr 15 at 16:31











  • @Sid Done.......

    – user121799
    Apr 15 at 18:06













4














4










4









The angles of the triangle on the sphere are 3 times 90 degrees whereas the angles of the triangle in the plane are 60 degrees each. Therefore I do not precisely understand what is meant by "project". If it is meant that the triangle on the sphere should also have three equal angles, you could do e.g.



documentclass[tikz,border=3.14mm]standalone
usepackagetikz-3dplot
usetikzlibrarypatterns,backgrounds
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,declare function=R=pi;]
shade[tdplot_screen_coords,ball color=gray,opacity=0.5] (0,0) coordinate(O)
circle[radius=R];
draw plot[variable=x,domain=tdplotmainphi-180:tdplotmainphi,smooth]
(R*cos(x),R*sin(x),0);
draw[blue,pattern=dots,pattern color=blue]
plot[variable=x,domain=90:00,smooth] (0,-R*sin(x),R*cos(x))
coordinate (p1)
-- plot[variable=x,domain=0:90,smooth] (R*sin(x),0,R*cos(x))
coordinate (p2)
-- plot[variable=x,domain=0:90,smooth] (R*cos(x),-R*sin(x),0)
coordinate (p3);
beginscope[on background layer]
foreach X in 1,2,3
draw[dashed] (O) -- (pX);
endscope
endtikzpicture
enddocument


enter image description here



An alternative could be to use nonlinear transformations to project anything you want on a sphere. We have used this for the Christmas balls in this video (at a time in which the atmosphere were better...). However, when doing this, we run into the above-mentioned problem that the triangle has different angles on the sphere.



documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
usepgfmodulenonlineartransformations
makeatletter
% from https://tex.stackexchange.com/a/434247/121799
tikzdeclarecoordinatesystemsphere
tikz@scan@one@pointrelax(#1)
spheretransformation

%
defspheretransformation% similar to the pgfmanual section 103.4.2
pgfmathsincos@pgf@sys@tonumberpgf@x%
pgfmathsetmacrorelXthepgf@x/28.3465%
pgfmathsetmacrorelYthepgf@y/28.3465%min(max(
pgfmathsetmacromyx28.3465*Radius*cos(min(max((relY/Radius)*(180/pi),-90),90))*sin(min(max((relX/Radius)*cos(min(max((relY/Radius)*(180/pi),-90),90))*(180/pi),-90),90))
pgfmathsetmacromyy28.3465*Radius*sin(min(max((relY/Radius)*(180/pi),-90),90))%typeout(relX,relY)->(myx,myy)%
pgf@x=myx pt%
pgf@y=myy pt%

makeatother
begindocument
begintikzpicture[pics/trian/.style=code=
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;]
pgfmathsetmacroRadius4
shade[ball color=red] (0,0) circle[radius=Radius];
beginscope[xshift=-10cm]
path (0,0) pictrian;
endscope
beginscope[transform shape nonlinear=true]
pgftransformnonlinearspheretransformation
pic[local bounding box=box1] at (0,0) trian;
endscope
endtikzpicture
enddocument


enter image description here






share|improve this answer















The angles of the triangle on the sphere are 3 times 90 degrees whereas the angles of the triangle in the plane are 60 degrees each. Therefore I do not precisely understand what is meant by "project". If it is meant that the triangle on the sphere should also have three equal angles, you could do e.g.



documentclass[tikz,border=3.14mm]standalone
usepackagetikz-3dplot
usetikzlibrarypatterns,backgrounds
begindocument
tdplotsetmaincoords7030
begintikzpicture[tdplot_main_coords,declare function=R=pi;]
shade[tdplot_screen_coords,ball color=gray,opacity=0.5] (0,0) coordinate(O)
circle[radius=R];
draw plot[variable=x,domain=tdplotmainphi-180:tdplotmainphi,smooth]
(R*cos(x),R*sin(x),0);
draw[blue,pattern=dots,pattern color=blue]
plot[variable=x,domain=90:00,smooth] (0,-R*sin(x),R*cos(x))
coordinate (p1)
-- plot[variable=x,domain=0:90,smooth] (R*sin(x),0,R*cos(x))
coordinate (p2)
-- plot[variable=x,domain=0:90,smooth] (R*cos(x),-R*sin(x),0)
coordinate (p3);
beginscope[on background layer]
foreach X in 1,2,3
draw[dashed] (O) -- (pX);
endscope
endtikzpicture
enddocument


enter image description here



An alternative could be to use nonlinear transformations to project anything you want on a sphere. We have used this for the Christmas balls in this video (at a time in which the atmosphere were better...). However, when doing this, we run into the above-mentioned problem that the triangle has different angles on the sphere.



documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypatterns
usepgfmodulenonlineartransformations
makeatletter
% from https://tex.stackexchange.com/a/434247/121799
tikzdeclarecoordinatesystemsphere
tikz@scan@one@pointrelax(#1)
spheretransformation

%
defspheretransformation% similar to the pgfmanual section 103.4.2
pgfmathsincos@pgf@sys@tonumberpgf@x%
pgfmathsetmacrorelXthepgf@x/28.3465%
pgfmathsetmacrorelYthepgf@y/28.3465%min(max(
pgfmathsetmacromyx28.3465*Radius*cos(min(max((relY/Radius)*(180/pi),-90),90))*sin(min(max((relX/Radius)*cos(min(max((relY/Radius)*(180/pi),-90),90))*(180/pi),-90),90))
pgfmathsetmacromyy28.3465*Radius*sin(min(max((relY/Radius)*(180/pi),-90),90))%typeout(relX,relY)->(myx,myy)%
pgf@x=myx pt%
pgf@y=myy pt%

makeatother
begindocument
begintikzpicture[pics/trian/.style=code=
draw[pattern color=black!50!white,pattern=dots, line width=0.6pt] (0,0) -- (2,3.4641) -- (4,0)--cycle;]
pgfmathsetmacroRadius4
shade[ball color=red] (0,0) circle[radius=Radius];
beginscope[xshift=-10cm]
path (0,0) pictrian;
endscope
beginscope[transform shape nonlinear=true]
pgftransformnonlinearspheretransformation
pic[local bounding box=box1] at (0,0) trian;
endscope
endtikzpicture
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 15 at 18:06

























answered Apr 15 at 14:21







user121799

















  • 1





    In this case, I did only want a triangle with the same angles but on the surface of the sphere. I do have other examples where I want to perform a strict projection - but you have very helpfully included an example on how to do that too! Thank you. P.s. a lot of marmots in the video :D

    – Sid
    Apr 15 at 15:07











  • For the first method you have, is it possible you could add the axes as in the image in the question?

    – Sid
    Apr 15 at 16:31











  • @Sid Done.......

    – user121799
    Apr 15 at 18:06












  • 1





    In this case, I did only want a triangle with the same angles but on the surface of the sphere. I do have other examples where I want to perform a strict projection - but you have very helpfully included an example on how to do that too! Thank you. P.s. a lot of marmots in the video :D

    – Sid
    Apr 15 at 15:07











  • For the first method you have, is it possible you could add the axes as in the image in the question?

    – Sid
    Apr 15 at 16:31











  • @Sid Done.......

    – user121799
    Apr 15 at 18:06







1




1





In this case, I did only want a triangle with the same angles but on the surface of the sphere. I do have other examples where I want to perform a strict projection - but you have very helpfully included an example on how to do that too! Thank you. P.s. a lot of marmots in the video :D

– Sid
Apr 15 at 15:07





In this case, I did only want a triangle with the same angles but on the surface of the sphere. I do have other examples where I want to perform a strict projection - but you have very helpfully included an example on how to do that too! Thank you. P.s. a lot of marmots in the video :D

– Sid
Apr 15 at 15:07













For the first method you have, is it possible you could add the axes as in the image in the question?

– Sid
Apr 15 at 16:31





For the first method you have, is it possible you could add the axes as in the image in the question?

– Sid
Apr 15 at 16:31













@Sid Done.......

– user121799
Apr 15 at 18:06





@Sid Done.......

– user121799
Apr 15 at 18:06


















draft saved

draft discarded















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484945%2fproject-this-triangle-on-surface-of-a-sphere%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?