tikz add tag
5 years ago Anonymous 1123

I am tring to draw a cylinder inscribed a sphere. I tried

ScreenHunter 803.png

I feel, the picture does not correct. How can I repair it?

Top Answer
5 years ago user 3.14159

The computation of the critical angles that deterimine the points at which the solid line turns dashed, and vice versa, is identical to the one for the base of the inscribed cone. I also added a more general discussion to the 3dtools manual. of The vertical boundaries are correct, I think.

Screen Shot 2020-08-18 at 9.34.07 AM.png

4 years
Anonymous 1123 replying to user 3.14159 — Thursday, 1st Apr 2021 06:40

Can This question be answer with another way? Let me try before.

Anonymous 1123 replying to user 3.14159 — Thursday, 1st Apr 2021 06:37

Yes, I understand.

user 3.14159 replying to Anonymous 1123 — Thursday, 1st Apr 2021 06:33

It means "take the x coordinate of (-r,0) (which is -r in this case) and the y coordinate of (O)". As you can see, this works both for explicit and symbolic coordinates.

Anonymous 1123 replying to user 3.14159 — Thursday, 1st Apr 2021 06:31

What is the meaning of (-r,0|-O)?

13 hours
user 3.14159 replying to Anonymous 1123 — Wednesday, 31st Mar 2021 17:59

Yes, this is very good! Here is a variation thereof.

Screen Shot 2021-03-31 at 9.58.28 AM.png

39 minutes
Anonymous 1123 replying to user 3.14159 — Wednesday, 31st Mar 2021 17:20

I tried

36 minutes
user 3.14159 replying to Anonymous 1123 — Wednesday, 31st Mar 2021 16:44

Yes, I know, but there is no magical way to get the correct line style unless you use clips or compute the critical angles.

13 minutes
Anonymous 1123 replying to user 3.14159 — Wednesday, 31st Mar 2021 16:31

Two circles of base incorrect hidden.

13 minutes
Anonymous 1123 replying to user 3.14159 — Wednesday, 31st Mar 2021 16:18

This code

an hour
user 3.14159 replying to Anonymous 1123 — Wednesday, 31st Mar 2021 14:58

Which one?

5 hours
Anonymous 1123 — Wednesday, 31st Mar 2021 09:32

@marmot, re: your answer, Can you write another way this figure?

11 days
user 3.14159 replying to Anonymous 1123 — Saturday, 20th Mar 2021 14:41

You need the newest version of 3dtools, in which the frustum can have the two radii equal, which yields a cylinder.

8 hours
Anonymous 1123 — Saturday, 20th Mar 2021 07:00

@marmot, re: your answer, I tried to draw a sphere in cylinder like this

How can I use 3dtools to draw this?

7 months
Anonymous 1123 replying to user 3.14159 — Wednesday, 19th Aug 2020 02:02

Thank you very much.

4 hours
user 3.14159 replying to Anonymous 1123 — Tuesday, 18th Aug 2020 22:21

There is always a huge trade-off when defining these pics, and I have not yet found a solution to the problem. What I want to say is that if you look e.g. at tikz-3dplot-circleofsphere or at tkz-euclide. These are surely great packages and super useful as long as you do precisely what the package authors had in mind. But as we both know, things are less glorious if we want to do something that was not foreseen by the author, e.g. knowing what \alphacrit is explicitly. So from this perspective it is arguably better to provide the user with some general tools, and this is the main purpose of 3dtools. Nonetheless there is definitely room for extensions. One extension I personally would be very much interested in would be tools to solve numerically solve equations to, say, determine \alphacrit.

an hour
Anonymous 1123 — Tuesday, 18th Aug 2020 21:10

@marmot, re: your answer, I hope, you write a short command to draw this types. For example, 3d/cylinder={h, r, lambda=-40;theta=60} or 3d/cone={h, r, lambda=-40;theta=60}, …

user 3.14159 replying to samcarter — Tuesday, 18th Aug 2020 21:01

Not sure if this is true. 3dtools is not even an official package, and likely will never be one. I am not too optimistic with regards to the future of TikZ or LaTeX as a whole. Let’s hope that I am wrong.

27 minutes
samcarter replying to user 3.14159 — Tuesday, 18th Aug 2020 20:35

only in the category “first link”. The “more useful” category clearly goes to 3dtools 😃

user 3.14159 replying to samcarter — Tuesday, 18th Aug 2020 20:26

OK, you win.

samcarter replying to user 3.14159 — Tuesday, 18th Aug 2020 20:21

I hate to disappoint you, but there are already manuals with
Screen Shot 2020-08-18 at 21.21.01.png

user 3.14159 replying to samcarter — Tuesday, 18th Aug 2020 20:17

I tried to collect some basic facts in the 3dtools manual. (Maybe this is the first manual that links to topanswers.xyz.😉 )

an hour
samcarter replying to user 3.14159 — Tuesday, 18th Aug 2020 19:16

After seeing your picture, I totally agree!

2 hours
user 3.14159 replying to samcarter — Tuesday, 18th Aug 2020 17:36

As for the first suggestion: yes, and as for the second suggestion: I don’t think so. In extreme cases a circle can be completely dashed or solid.

2 hours
samcarter — Tuesday, 18th Aug 2020 16:00

Maybe this is a problem with the perspective, but shouldn’t the dashed circles stop at the point where they touch the outer sphere? And shouldn’t the vertical lines also start there?

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.