3D Volume in TIKZDrawing Loops in TikZMaking a 3D colored pyramid in tikzmultiple relative positioning in...
Introducing Gladys, an intrepid globetrotter
How can I get people to remember my character's gender?
How do LIGO and VIRGO know that a gravitational wave has its origin in a neutron star or a black hole?
Does a picture or painting work with Wild Shape?
Find the cheapest shipping option based on item weight
finding a solution for this recurrence relation
3D Volume in TIKZ
Upside-Down Pyramid Addition...REVERSED!
What exactly are the `size issues' preventing formation of presheaves being a left adjoint to some forgetful functor?
Will 700 more planes a day fly because of the Heathrow expansion?
Do I add my skill check modifier to the roll of 15 granted by Glibness?
Understanding trademark infringements in a world where many dictionary words are trademarks?
Can FreeNAS zfs send to a Linux machine?
Why wasn't the Night King naked in S08E03?
What to use instead of cling film to wrap pastry
How should I tell my manager I'm not paying for an optional after work event I'm not going to?
A factorization game
Has the Hulk always been able to talk?
Manager is threatening to grade me poorly if I don't complete the project
How can internet speed be 10 times slower without a router than when using a router?
Can my 2 children 10 and 12 Travel to the USA on expired American Passports? They are US citizens
Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?
What are the advantages of luxury car brands like Acura/Lexus over their sibling non-luxury brands Honda/Toyota?
Should I dumb down my writing in a foreign country?
3D Volume in TIKZ
Drawing Loops in TikZMaking a 3D colored pyramid in tikzmultiple relative positioning in tikzRotating rectangle node in tikz without getting the right angleThree dimensional Regression Plan with ResidualsHelp with drawing tikz diagrams of worldsheet topologiestikz: fancy polyhedron in three dimensional spaceLatex Tikz - Process flow imageDraw curve in the plane by using tikzDrawing a DNA/SNP genome double helix in TikZ
I need to make the square base volume below any function in a three-dimensional space.
It can be any function.
I need help getting this job started.
The image is bad, but that's the idea.
tikz-pgf
New contributor
add a comment |
I need to make the square base volume below any function in a three-dimensional space.
It can be any function.
I need help getting this job started.
The image is bad, but that's the idea.
tikz-pgf
New contributor
3
Welcome to TeX.SE! What have you tried so far?
– Kurt
2 hours ago
add a comment |
I need to make the square base volume below any function in a three-dimensional space.
It can be any function.
I need help getting this job started.
The image is bad, but that's the idea.
tikz-pgf
New contributor
I need to make the square base volume below any function in a three-dimensional space.
It can be any function.
I need help getting this job started.
The image is bad, but that's the idea.
tikz-pgf
tikz-pgf
New contributor
New contributor
New contributor
asked 2 hours ago
Ícaro ViterbreÍcaro Viterbre
61
61
New contributor
New contributor
3
Welcome to TeX.SE! What have you tried so far?
– Kurt
2 hours ago
add a comment |
3
Welcome to TeX.SE! What have you tried so far?
– Kurt
2 hours ago
3
3
Welcome to TeX.SE! What have you tried so far?
– Kurt
2 hours ago
Welcome to TeX.SE! What have you tried so far?
– Kurt
2 hours ago
add a comment |
2 Answers
2
active
oldest
votes
The tikz-3dplot
package allows you to draw things in 3d and perform orthographic projections.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords,>=stealth,declare function={%
pfft(x)=pi+0.3*sin(deg(x));}]
draw[->] (0,0,0) coordinate (O) -- (5,0,0) coordinate(X) node[pos=1.1]{$x$};
draw[->] (O) -- (0,5,0) node[pos=1.1]{$y$};
draw[->] (O) -- (0,0,5) node[pos=1.1]{$z$};
draw[thick] plot[variable=x,domain=0.8*pi:1.1*pi,smooth] (2.2,x,{pfft(2*x)})
coordinate (T1)--
plot[variable=x,domain=1.1*pi:0.8*pi,smooth] (0.8,x,{pfft(2*x)}) coordinate
(T3)-- cycle;
draw (2.2,0.8*pi,0) coordinate (B4)-- (2.2,1.1*pi,0) coordinate (B1)
-- (0.8,1.1*pi,0) coordinate (B2) -- (0.8,0.8*pi,0) coordinate (B3) -- cycle;
path (2.2,0.8*pi,{pfft(2*0.8*pi)}) coordinate (T4)
(0.8,1.1*pi,{pfft(2*1.1*pi)}) coordinate (T2);
foreach X in {1,...,4}
{draw (BX) -- (TX);}
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=0:1.1*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=1.1*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=1.1*pi:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:1.1*pi,smooth] (0,x,{pfft(2*x)}) -- cycle;
draw plot[variable=x,domain=0:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
end{tikzpicture}
end{document}
add a comment |
To help you get started:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[x={(210:1cm)},y={(0:1cm)},z={(90:1cm)}]
draw (0,0,0) -- (3,0,0) -- (3,3,0)--(0,3,0)--cycle;
draw (3,0,0) -- (3,0,4) .. controls (3,1,3.5) and (3,2,3) .. (3,3,3) -- (3,3,0);
draw (3,3,3) .. controls (2,3,3) and (1,3,5) .. (0,3,5)--(0,3,0);
draw (0,3,5) .. controls (0,2,4) and (0,1,4) .. (0,0,4)--(0,0,0);
draw (0,0,4) -- (3,0,4);
end{tikzpicture}
end{document}
add a comment |
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
});
}
});
Ícaro Viterbre is a new contributor. Be nice, and check out our Code of Conduct.
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%2f488865%2f3d-volume-in-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The tikz-3dplot
package allows you to draw things in 3d and perform orthographic projections.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords,>=stealth,declare function={%
pfft(x)=pi+0.3*sin(deg(x));}]
draw[->] (0,0,0) coordinate (O) -- (5,0,0) coordinate(X) node[pos=1.1]{$x$};
draw[->] (O) -- (0,5,0) node[pos=1.1]{$y$};
draw[->] (O) -- (0,0,5) node[pos=1.1]{$z$};
draw[thick] plot[variable=x,domain=0.8*pi:1.1*pi,smooth] (2.2,x,{pfft(2*x)})
coordinate (T1)--
plot[variable=x,domain=1.1*pi:0.8*pi,smooth] (0.8,x,{pfft(2*x)}) coordinate
(T3)-- cycle;
draw (2.2,0.8*pi,0) coordinate (B4)-- (2.2,1.1*pi,0) coordinate (B1)
-- (0.8,1.1*pi,0) coordinate (B2) -- (0.8,0.8*pi,0) coordinate (B3) -- cycle;
path (2.2,0.8*pi,{pfft(2*0.8*pi)}) coordinate (T4)
(0.8,1.1*pi,{pfft(2*1.1*pi)}) coordinate (T2);
foreach X in {1,...,4}
{draw (BX) -- (TX);}
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=0:1.1*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=1.1*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=1.1*pi:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:1.1*pi,smooth] (0,x,{pfft(2*x)}) -- cycle;
draw plot[variable=x,domain=0:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
end{tikzpicture}
end{document}
add a comment |
The tikz-3dplot
package allows you to draw things in 3d and perform orthographic projections.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords,>=stealth,declare function={%
pfft(x)=pi+0.3*sin(deg(x));}]
draw[->] (0,0,0) coordinate (O) -- (5,0,0) coordinate(X) node[pos=1.1]{$x$};
draw[->] (O) -- (0,5,0) node[pos=1.1]{$y$};
draw[->] (O) -- (0,0,5) node[pos=1.1]{$z$};
draw[thick] plot[variable=x,domain=0.8*pi:1.1*pi,smooth] (2.2,x,{pfft(2*x)})
coordinate (T1)--
plot[variable=x,domain=1.1*pi:0.8*pi,smooth] (0.8,x,{pfft(2*x)}) coordinate
(T3)-- cycle;
draw (2.2,0.8*pi,0) coordinate (B4)-- (2.2,1.1*pi,0) coordinate (B1)
-- (0.8,1.1*pi,0) coordinate (B2) -- (0.8,0.8*pi,0) coordinate (B3) -- cycle;
path (2.2,0.8*pi,{pfft(2*0.8*pi)}) coordinate (T4)
(0.8,1.1*pi,{pfft(2*1.1*pi)}) coordinate (T2);
foreach X in {1,...,4}
{draw (BX) -- (TX);}
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=0:1.1*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=1.1*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=1.1*pi:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:1.1*pi,smooth] (0,x,{pfft(2*x)}) -- cycle;
draw plot[variable=x,domain=0:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
end{tikzpicture}
end{document}
add a comment |
The tikz-3dplot
package allows you to draw things in 3d and perform orthographic projections.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords,>=stealth,declare function={%
pfft(x)=pi+0.3*sin(deg(x));}]
draw[->] (0,0,0) coordinate (O) -- (5,0,0) coordinate(X) node[pos=1.1]{$x$};
draw[->] (O) -- (0,5,0) node[pos=1.1]{$y$};
draw[->] (O) -- (0,0,5) node[pos=1.1]{$z$};
draw[thick] plot[variable=x,domain=0.8*pi:1.1*pi,smooth] (2.2,x,{pfft(2*x)})
coordinate (T1)--
plot[variable=x,domain=1.1*pi:0.8*pi,smooth] (0.8,x,{pfft(2*x)}) coordinate
(T3)-- cycle;
draw (2.2,0.8*pi,0) coordinate (B4)-- (2.2,1.1*pi,0) coordinate (B1)
-- (0.8,1.1*pi,0) coordinate (B2) -- (0.8,0.8*pi,0) coordinate (B3) -- cycle;
path (2.2,0.8*pi,{pfft(2*0.8*pi)}) coordinate (T4)
(0.8,1.1*pi,{pfft(2*1.1*pi)}) coordinate (T2);
foreach X in {1,...,4}
{draw (BX) -- (TX);}
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=0:1.1*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=1.1*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=1.1*pi:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:1.1*pi,smooth] (0,x,{pfft(2*x)}) -- cycle;
draw plot[variable=x,domain=0:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
end{tikzpicture}
end{document}
The tikz-3dplot
package allows you to draw things in 3d and perform orthographic projections.
documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
begin{document}
tdplotsetmaincoords{60}{110}
begin{tikzpicture}[tdplot_main_coords,>=stealth,declare function={%
pfft(x)=pi+0.3*sin(deg(x));}]
draw[->] (0,0,0) coordinate (O) -- (5,0,0) coordinate(X) node[pos=1.1]{$x$};
draw[->] (O) -- (0,5,0) node[pos=1.1]{$y$};
draw[->] (O) -- (0,0,5) node[pos=1.1]{$z$};
draw[thick] plot[variable=x,domain=0.8*pi:1.1*pi,smooth] (2.2,x,{pfft(2*x)})
coordinate (T1)--
plot[variable=x,domain=1.1*pi:0.8*pi,smooth] (0.8,x,{pfft(2*x)}) coordinate
(T3)-- cycle;
draw (2.2,0.8*pi,0) coordinate (B4)-- (2.2,1.1*pi,0) coordinate (B1)
-- (0.8,1.1*pi,0) coordinate (B2) -- (0.8,0.8*pi,0) coordinate (B3) -- cycle;
path (2.2,0.8*pi,{pfft(2*0.8*pi)}) coordinate (T4)
(0.8,1.1*pi,{pfft(2*1.1*pi)}) coordinate (T2);
foreach X in {1,...,4}
{draw (BX) -- (TX);}
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=0:1.1*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=1.1*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
path[opacity=0.3,left color=blue,right color=blue,middle color=blue!20,shading
angle=72]
plot[variable=x,domain=1.1*pi:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:1.1*pi,smooth] (0,x,{pfft(2*x)}) -- cycle;
draw plot[variable=x,domain=0:2.2*pi,smooth] (3,x,{pfft(2*x)}) --
plot[variable=x,domain=2.2*pi:0,smooth] (0,x,{pfft(2*x)}) -- cycle;
end{tikzpicture}
end{document}
answered 1 hour ago
marmotmarmot
123k6160301
123k6160301
add a comment |
add a comment |
To help you get started:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[x={(210:1cm)},y={(0:1cm)},z={(90:1cm)}]
draw (0,0,0) -- (3,0,0) -- (3,3,0)--(0,3,0)--cycle;
draw (3,0,0) -- (3,0,4) .. controls (3,1,3.5) and (3,2,3) .. (3,3,3) -- (3,3,0);
draw (3,3,3) .. controls (2,3,3) and (1,3,5) .. (0,3,5)--(0,3,0);
draw (0,3,5) .. controls (0,2,4) and (0,1,4) .. (0,0,4)--(0,0,0);
draw (0,0,4) -- (3,0,4);
end{tikzpicture}
end{document}
add a comment |
To help you get started:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[x={(210:1cm)},y={(0:1cm)},z={(90:1cm)}]
draw (0,0,0) -- (3,0,0) -- (3,3,0)--(0,3,0)--cycle;
draw (3,0,0) -- (3,0,4) .. controls (3,1,3.5) and (3,2,3) .. (3,3,3) -- (3,3,0);
draw (3,3,3) .. controls (2,3,3) and (1,3,5) .. (0,3,5)--(0,3,0);
draw (0,3,5) .. controls (0,2,4) and (0,1,4) .. (0,0,4)--(0,0,0);
draw (0,0,4) -- (3,0,4);
end{tikzpicture}
end{document}
add a comment |
To help you get started:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[x={(210:1cm)},y={(0:1cm)},z={(90:1cm)}]
draw (0,0,0) -- (3,0,0) -- (3,3,0)--(0,3,0)--cycle;
draw (3,0,0) -- (3,0,4) .. controls (3,1,3.5) and (3,2,3) .. (3,3,3) -- (3,3,0);
draw (3,3,3) .. controls (2,3,3) and (1,3,5) .. (0,3,5)--(0,3,0);
draw (0,3,5) .. controls (0,2,4) and (0,1,4) .. (0,0,4)--(0,0,0);
draw (0,0,4) -- (3,0,4);
end{tikzpicture}
end{document}
To help you get started:
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[x={(210:1cm)},y={(0:1cm)},z={(90:1cm)}]
draw (0,0,0) -- (3,0,0) -- (3,3,0)--(0,3,0)--cycle;
draw (3,0,0) -- (3,0,4) .. controls (3,1,3.5) and (3,2,3) .. (3,3,3) -- (3,3,0);
draw (3,3,3) .. controls (2,3,3) and (1,3,5) .. (0,3,5)--(0,3,0);
draw (0,3,5) .. controls (0,2,4) and (0,1,4) .. (0,0,4)--(0,0,0);
draw (0,0,4) -- (3,0,4);
end{tikzpicture}
end{document}
answered 1 hour ago
JPiJPi
10.2k21551
10.2k21551
add a comment |
add a comment |
Ícaro Viterbre is a new contributor. Be nice, and check out our Code of Conduct.
Ícaro Viterbre is a new contributor. Be nice, and check out our Code of Conduct.
Ícaro Viterbre is a new contributor. Be nice, and check out our Code of Conduct.
Ícaro Viterbre is a new contributor. Be nice, and check out our Code of Conduct.
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%2f488865%2f3d-volume-in-tikz%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
3
Welcome to TeX.SE! What have you tried so far?
– Kurt
2 hours ago