Using node or draw circle in tikz-3dplot
I am exploring the tikz-3dplot package for drawing objects in 3d and experienced a problem. I simply want to draw a circle and reference some of the points later, but I found there is a difference when using the draw command and using the node command:
documentclass[tikz]{standalone}
usepackage{tikz}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{70}{110}
begin{tikzpicture}[tdplot_main_coords]
draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$};
coordinate (O) at (0,0,0);
tdplotsetcoord{P}{1}{70}{40}
draw[-stealth,color=blue] (O) -- (P);
node[draw, circle, radius=0.2] (cir) at (P) {};
draw[red] (P) circle [radius=0.2];
draw (cir.south) -- (cir.north);
end{tikzpicture}%
end{document}
Why is the difference? I would like to use node as I can reference, for example, the south and north points for later use, probably projection. But using node doesn't provide the right shape (I want the red circle to be drawn with node so I can reference it). I don't understand why the node is not using the tdplot_main_coords coordinate system. Thanks.

tikz-pgf nodes tikz-3dplot
add a comment |
I am exploring the tikz-3dplot package for drawing objects in 3d and experienced a problem. I simply want to draw a circle and reference some of the points later, but I found there is a difference when using the draw command and using the node command:
documentclass[tikz]{standalone}
usepackage{tikz}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{70}{110}
begin{tikzpicture}[tdplot_main_coords]
draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$};
coordinate (O) at (0,0,0);
tdplotsetcoord{P}{1}{70}{40}
draw[-stealth,color=blue] (O) -- (P);
node[draw, circle, radius=0.2] (cir) at (P) {};
draw[red] (P) circle [radius=0.2];
draw (cir.south) -- (cir.north);
end{tikzpicture}%
end{document}
Why is the difference? I would like to use node as I can reference, for example, the south and north points for later use, probably projection. But using node doesn't provide the right shape (I want the red circle to be drawn with node so I can reference it). I don't understand why the node is not using the tdplot_main_coords coordinate system. Thanks.

tikz-pgf nodes tikz-3dplot
add a comment |
I am exploring the tikz-3dplot package for drawing objects in 3d and experienced a problem. I simply want to draw a circle and reference some of the points later, but I found there is a difference when using the draw command and using the node command:
documentclass[tikz]{standalone}
usepackage{tikz}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{70}{110}
begin{tikzpicture}[tdplot_main_coords]
draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$};
coordinate (O) at (0,0,0);
tdplotsetcoord{P}{1}{70}{40}
draw[-stealth,color=blue] (O) -- (P);
node[draw, circle, radius=0.2] (cir) at (P) {};
draw[red] (P) circle [radius=0.2];
draw (cir.south) -- (cir.north);
end{tikzpicture}%
end{document}
Why is the difference? I would like to use node as I can reference, for example, the south and north points for later use, probably projection. But using node doesn't provide the right shape (I want the red circle to be drawn with node so I can reference it). I don't understand why the node is not using the tdplot_main_coords coordinate system. Thanks.

tikz-pgf nodes tikz-3dplot
I am exploring the tikz-3dplot package for drawing objects in 3d and experienced a problem. I simply want to draw a circle and reference some of the points later, but I found there is a difference when using the draw command and using the node command:
documentclass[tikz]{standalone}
usepackage{tikz}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{70}{110}
begin{tikzpicture}[tdplot_main_coords]
draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$};
draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$};
draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$};
coordinate (O) at (0,0,0);
tdplotsetcoord{P}{1}{70}{40}
draw[-stealth,color=blue] (O) -- (P);
node[draw, circle, radius=0.2] (cir) at (P) {};
draw[red] (P) circle [radius=0.2];
draw (cir.south) -- (cir.north);
end{tikzpicture}%
end{document}
Why is the difference? I would like to use node as I can reference, for example, the south and north points for later use, probably projection. But using node doesn't provide the right shape (I want the red circle to be drawn with node so I can reference it). I don't understand why the node is not using the tdplot_main_coords coordinate system. Thanks.

tikz-pgf nodes tikz-3dplot
tikz-pgf nodes tikz-3dplot
asked 6 mins ago
bingungbingung
24619
24619
add a comment |
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476259%2fusing-node-or-draw-circle-in-tikz-3dplot%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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476259%2fusing-node-or-draw-circle-in-tikz-3dplot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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