Intersection of a sphere and a plane knowing equations












1















I am trying draw a circle is intersection of a plane has equation 2 x − 2 y + z − 15 = 0 and the equation of the sphere is ( x − 1)^2 + ( y + 1)^ 2 + ( z − 2)^ 2 − 25 = 0.
enter image description here



The plane cut the sphere is a circle with centre (3,-3,3 and radius r = 4.



I can't draw the circle. I tried



documentclass[12pt,border = 2 mm]{standalone}
usepackage{tikz}
usepackage{tikz-3dplot}
usetikzlibrary{arrows,calc,backgrounds}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords]
path
coordinate (T) at (3,-3,3)
coordinate (I) at (1,-1,2);

foreach v/position in {T/above,I/below} {
draw[fill=black] (v) circle (0.7pt) node [position=0.2mm] {$v$};
}

draw[dashed] (T) circle[radius={4}];

begin{scope}[tdplot_screen_coords, on background layer]
pgfmathsetmacro{R}{5}%
fill[ball color=purple, opacity=1.0] (I) circle (R);
end{scope}
end{tikzpicture}
end{document}


enter image description here



How can I draw the circle?










share|improve this question























  • I guess the issue is rather basic: you need to specify the plane in which the circle is in. Your plane has a nontrivial normal vector but you draw the circle in the xy plane, which is why it does not match up.

    – marmot
    32 mins ago











  • The plane has normal vector is (2,-2,1).

    – minhthien_2016
    30 mins ago











  • Yes, I know. Naively I would think that it is better to switch to a local coordinate system in which the center of the sphere is at (0,0,0) and the normal goes in the z direction, and then just rotate the view. Do your know this nice answer. It will allow you to draw the intersection in such a way that the visible stretch is distinguished from the hidden one. (If you do not like pgfplot, you could also use this answer.)

    – marmot
    27 mins ago


















1















I am trying draw a circle is intersection of a plane has equation 2 x − 2 y + z − 15 = 0 and the equation of the sphere is ( x − 1)^2 + ( y + 1)^ 2 + ( z − 2)^ 2 − 25 = 0.
enter image description here



The plane cut the sphere is a circle with centre (3,-3,3 and radius r = 4.



I can't draw the circle. I tried



documentclass[12pt,border = 2 mm]{standalone}
usepackage{tikz}
usepackage{tikz-3dplot}
usetikzlibrary{arrows,calc,backgrounds}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords]
path
coordinate (T) at (3,-3,3)
coordinate (I) at (1,-1,2);

foreach v/position in {T/above,I/below} {
draw[fill=black] (v) circle (0.7pt) node [position=0.2mm] {$v$};
}

draw[dashed] (T) circle[radius={4}];

begin{scope}[tdplot_screen_coords, on background layer]
pgfmathsetmacro{R}{5}%
fill[ball color=purple, opacity=1.0] (I) circle (R);
end{scope}
end{tikzpicture}
end{document}


enter image description here



How can I draw the circle?










share|improve this question























  • I guess the issue is rather basic: you need to specify the plane in which the circle is in. Your plane has a nontrivial normal vector but you draw the circle in the xy plane, which is why it does not match up.

    – marmot
    32 mins ago











  • The plane has normal vector is (2,-2,1).

    – minhthien_2016
    30 mins ago











  • Yes, I know. Naively I would think that it is better to switch to a local coordinate system in which the center of the sphere is at (0,0,0) and the normal goes in the z direction, and then just rotate the view. Do your know this nice answer. It will allow you to draw the intersection in such a way that the visible stretch is distinguished from the hidden one. (If you do not like pgfplot, you could also use this answer.)

    – marmot
    27 mins ago
















1












1








1








I am trying draw a circle is intersection of a plane has equation 2 x − 2 y + z − 15 = 0 and the equation of the sphere is ( x − 1)^2 + ( y + 1)^ 2 + ( z − 2)^ 2 − 25 = 0.
enter image description here



The plane cut the sphere is a circle with centre (3,-3,3 and radius r = 4.



I can't draw the circle. I tried



documentclass[12pt,border = 2 mm]{standalone}
usepackage{tikz}
usepackage{tikz-3dplot}
usetikzlibrary{arrows,calc,backgrounds}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords]
path
coordinate (T) at (3,-3,3)
coordinate (I) at (1,-1,2);

foreach v/position in {T/above,I/below} {
draw[fill=black] (v) circle (0.7pt) node [position=0.2mm] {$v$};
}

draw[dashed] (T) circle[radius={4}];

begin{scope}[tdplot_screen_coords, on background layer]
pgfmathsetmacro{R}{5}%
fill[ball color=purple, opacity=1.0] (I) circle (R);
end{scope}
end{tikzpicture}
end{document}


enter image description here



How can I draw the circle?










share|improve this question














I am trying draw a circle is intersection of a plane has equation 2 x − 2 y + z − 15 = 0 and the equation of the sphere is ( x − 1)^2 + ( y + 1)^ 2 + ( z − 2)^ 2 − 25 = 0.
enter image description here



The plane cut the sphere is a circle with centre (3,-3,3 and radius r = 4.



I can't draw the circle. I tried



documentclass[12pt,border = 2 mm]{standalone}
usepackage{tikz}
usepackage{tikz-3dplot}
usetikzlibrary{arrows,calc,backgrounds}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords]
path
coordinate (T) at (3,-3,3)
coordinate (I) at (1,-1,2);

foreach v/position in {T/above,I/below} {
draw[fill=black] (v) circle (0.7pt) node [position=0.2mm] {$v$};
}

draw[dashed] (T) circle[radius={4}];

begin{scope}[tdplot_screen_coords, on background layer]
pgfmathsetmacro{R}{5}%
fill[ball color=purple, opacity=1.0] (I) circle (R);
end{scope}
end{tikzpicture}
end{document}


enter image description here



How can I draw the circle?







tikz-pgf tikz-3dplot






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 41 mins ago









minhthien_2016minhthien_2016

1,3561917




1,3561917













  • I guess the issue is rather basic: you need to specify the plane in which the circle is in. Your plane has a nontrivial normal vector but you draw the circle in the xy plane, which is why it does not match up.

    – marmot
    32 mins ago











  • The plane has normal vector is (2,-2,1).

    – minhthien_2016
    30 mins ago











  • Yes, I know. Naively I would think that it is better to switch to a local coordinate system in which the center of the sphere is at (0,0,0) and the normal goes in the z direction, and then just rotate the view. Do your know this nice answer. It will allow you to draw the intersection in such a way that the visible stretch is distinguished from the hidden one. (If you do not like pgfplot, you could also use this answer.)

    – marmot
    27 mins ago





















  • I guess the issue is rather basic: you need to specify the plane in which the circle is in. Your plane has a nontrivial normal vector but you draw the circle in the xy plane, which is why it does not match up.

    – marmot
    32 mins ago











  • The plane has normal vector is (2,-2,1).

    – minhthien_2016
    30 mins ago











  • Yes, I know. Naively I would think that it is better to switch to a local coordinate system in which the center of the sphere is at (0,0,0) and the normal goes in the z direction, and then just rotate the view. Do your know this nice answer. It will allow you to draw the intersection in such a way that the visible stretch is distinguished from the hidden one. (If you do not like pgfplot, you could also use this answer.)

    – marmot
    27 mins ago



















I guess the issue is rather basic: you need to specify the plane in which the circle is in. Your plane has a nontrivial normal vector but you draw the circle in the xy plane, which is why it does not match up.

– marmot
32 mins ago





I guess the issue is rather basic: you need to specify the plane in which the circle is in. Your plane has a nontrivial normal vector but you draw the circle in the xy plane, which is why it does not match up.

– marmot
32 mins ago













The plane has normal vector is (2,-2,1).

– minhthien_2016
30 mins ago





The plane has normal vector is (2,-2,1).

– minhthien_2016
30 mins ago













Yes, I know. Naively I would think that it is better to switch to a local coordinate system in which the center of the sphere is at (0,0,0) and the normal goes in the z direction, and then just rotate the view. Do your know this nice answer. It will allow you to draw the intersection in such a way that the visible stretch is distinguished from the hidden one. (If you do not like pgfplot, you could also use this answer.)

– marmot
27 mins ago







Yes, I know. Naively I would think that it is better to switch to a local coordinate system in which the center of the sphere is at (0,0,0) and the normal goes in the z direction, and then just rotate the view. Do your know this nice answer. It will allow you to draw the intersection in such a way that the visible stretch is distinguished from the hidden one. (If you do not like pgfplot, you could also use this answer.)

– marmot
27 mins ago












0






active

oldest

votes











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/3.0/"u003ecc by-sa 3.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%2f481283%2fintersection-of-a-sphere-and-a-plane-knowing-equations%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f481283%2fintersection-of-a-sphere-and-a-plane-knowing-equations%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

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)