3D Volume in TIKZDrawing 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
Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?
Why wasn't the Night King naked in S08E03?
Can I use a fetch land to shuffle my deck while the opponent has Ashiok, Dream Render in play?
Are Finitely generated modules over a ring also finitely generated over a subring containing the identity?
Introducing Gladys, an intrepid globetrotter
Are there any of the Children of the Forest left, or are they extinct?
29er Road Tire?
How can I support myself financially as a 17 year old with a loan?
Shutter speed -vs- effective image stabilisation
Where is the documentation for this ex command?
Wrong answer from DSolve when solving a differential equation
How long would it take for people to notice a mass disappearance?
3D Volume in TIKZ
Do I add my skill check modifier to the roll of 15 granted by Glibness?
Why did the Apollo 13 crew extend the LM landing gear?
IP addresses from public IP block in my LAN
What exactly are the `size issues' preventing formation of presheaves being a left adjoint to some forgetful functor?
Can my company stop me from working overtime?
What was the first story to feature the plot "the monsters were human all along"?
Word for Food that's Gone 'Bad', but is Still Edible?
Upside-Down Pyramid Addition...REVERSED!
Something that can be activated/enabled
Why is "breaking the mould" positively connoted?
Where can I go to avoid planes overhead?
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
usepackagetikz-3dplot
begindocument
tdplotsetmaincoords60110
begintikzpicture[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;
endtikzpicture
enddocument
add a comment |
To help you get started:
documentclassarticle
usepackagetikz
begindocument
begintikzpicture[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);
endtikzpicture
enddocument
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
usepackagetikz-3dplot
begindocument
tdplotsetmaincoords60110
begintikzpicture[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;
endtikzpicture
enddocument
add a comment |
The tikz-3dplot
package allows you to draw things in 3d and perform orthographic projections.
documentclass[tikz,border=3.14mm]standalone
usepackagetikz-3dplot
begindocument
tdplotsetmaincoords60110
begintikzpicture[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;
endtikzpicture
enddocument
add a comment |
The tikz-3dplot
package allows you to draw things in 3d and perform orthographic projections.
documentclass[tikz,border=3.14mm]standalone
usepackagetikz-3dplot
begindocument
tdplotsetmaincoords60110
begintikzpicture[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;
endtikzpicture
enddocument
The tikz-3dplot
package allows you to draw things in 3d and perform orthographic projections.
documentclass[tikz,border=3.14mm]standalone
usepackagetikz-3dplot
begindocument
tdplotsetmaincoords60110
begintikzpicture[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;
endtikzpicture
enddocument
answered 1 hour ago
marmotmarmot
123k6160301
123k6160301
add a comment |
add a comment |
To help you get started:
documentclassarticle
usepackagetikz
begindocument
begintikzpicture[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);
endtikzpicture
enddocument
add a comment |
To help you get started:
documentclassarticle
usepackagetikz
begindocument
begintikzpicture[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);
endtikzpicture
enddocument
add a comment |
To help you get started:
documentclassarticle
usepackagetikz
begindocument
begintikzpicture[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);
endtikzpicture
enddocument
To help you get started:
documentclassarticle
usepackagetikz
begindocument
begintikzpicture[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);
endtikzpicture
enddocument
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