add tag
4 years ago Anonymous 1123

I see this question

ScreenHunter 99.png

How to draw it with 3dtools?

Top Answer
4 years ago user 3.14159

Here is a simplistic way of doing this.

Screen Shot 2021-04-18 at 11.29.45 PM.png

4 years
Anonymous 1123 replying to user 3.14159 — Friday, 11th Jun 2021 04:48

Thanks. I understand.

30 minutes
user 3.14159 replying to Anonymous 1123 — Friday, 11th Jun 2021 04:19

All these pics are far from perfect. The first one is not rotatable. The second one is better but would require one to build in a number of checks, For instance, if the slope is too large (or the height too small) it cannot be drawn. That is, the more complicated, specialized or restricted the pics become, the more likely it becomes that users find the whole library useless. Therefore, I’d prefer not to add such pics.

3 hours
Anonymous 1123 — Friday, 11th Jun 2021 01:07

@marmot, re: your answer, ScreenHunter 230.png

Anonymous 1123 — Friday, 11th Jun 2021 01:06

@marmot, re: your answer, And this is your code about cylinderal segment. Can you add it into 3dtools by using a pic? like this
\pic{3d/cylindrical segment ={r=r,h1=, h2=}};

Anonymous 1123 replying to user 3.14159 — Friday, 11th Jun 2021 01:02

ScreenHunter 229.png

Anonymous 1123 replying to user 3.14159 — Friday, 11th Jun 2021 01:01

Can you add a pic, e.g \pic{3d/oblique cylinder ={r=r,h=h,dx=dx}}; into 3dtools

22 minutes
Anonymous 1123 replying to user 3.14159 — Friday, 11th Jun 2021 00:39

Thanks.

5 hours
user 3.14159 replying to Anonymous 1123 — Thursday, 10th Jun 2021 19:14

To produce something like the screen picture you show, you can use the following code (which is not fully rotatable).

Screen Shot 2021-06-10 at 11.14.26 AM.png

11 hours
Anonymous 1123 — Thursday, 10th Jun 2021 07:54

@marmot, re: your answer, ScreenHunter 226.png

How can I draw Oblique cylinder like above picture? I see here

13 days
user 3.14159 replying to Anonymous 1123 — Friday, 28th May 2021 03:06

Yes, I agree. Also you can rotate objects. In the “projection by hand” scheme there is no well-defined notion of rotating things (but of course in perspective projections there is).

3 hours
Anonymous 1123 replying to user 3.14159 — Thursday, 27th May 2021 23:47

I like orthographic projections. You do not need ware of any automatic way to always find an appropriate function for non-orthographic projections.

7 hours
user 3.14159 replying to Anonymous 1123 — Thursday, 27th May 2021 16:44

For instance, this redefinition of screendepth works:

But I am not aware of any automatic way to always find an appropriate function for non-orthographic projections.

user 3.14159 replying to Anonymous 1123 — Thursday, 27th May 2021 16:40

Yes, 3dtools only works with orthographic projections. y={(1cm,0)} destroys the orthographic projection. So you need either to be lucky or redefine the screendepth as illustrated in this answer.

11 minutes
Anonymous 1123 replying to user 3.14159 — Thursday, 27th May 2021 16:30

When I remove y={(1cm,0)}, it corrects.

14 minutes
Anonymous 1123 replying to user 3.14159 — Thursday, 27th May 2021 16:15

Is this code not correct for every angle? I tried with phi=300. I get
ScreenHunter 198.png

15 minutes
Anonymous 1123 replying to user 3.14159 — Thursday, 27th May 2021 16:01

Thanks.

2 hours
user 3.14159 replying to Anonymous 1123 — Thursday, 27th May 2021 14:04
5 hours
Anonymous 1123 replying to user 3.14159 — Thursday, 27th May 2021 08:53

How to make style of edgs of cube the same [3d/hidden].
ScreenHunter 197.png

a day
Anonymous 1123 replying to user 3.14159 — Wednesday, 26th May 2021 05:14

Thanks.

2 hours
user 3.14159 replying to Anonymous 1123 — Wednesday, 26th May 2021 02:50

3dtools is prepared for that, at least to some degree. You can use the after hidden and after visible hooks, which only get executed if the plane is visible or hidden. And then it makes sense to avoid repetition by defining styles that do all this for you.

Screen Shot 2021-05-25 at 6.50.25 PM.png

2 hours
Anonymous 1123 replying to user 3.14159 — Wednesday, 26th May 2021 01:07

ScreenHunter 195.png

Anonymous 1123 replying to user 3.14159 — Wednesday, 26th May 2021 01:06

I use 3dtools to draw here , I do know make style of circles automatically. How can I do that?

an hour
Anonymous 1123 replying to user 3.14159 — Tuesday, 25th May 2021 23:56

Thanks.

5 hours
user 3.14159 replying to Anonymous 1123 — Tuesday, 25th May 2021 19:08

You can use the fact that the pic installs a local frame, and use physical coordinates.

2 hours
Anonymous 1123 replying to user 3.14159 — Tuesday, 25th May 2021 16:43

Yes. How can I get the water in cylinder?

user 3.14159 replying to Anonymous 1123 — Tuesday, 25th May 2021 16:40

Maybe you want to start with this?

Anonymous 1123 — Tuesday, 25th May 2021 16:35

@marmot, re: your answer, I am trying to draw horizontal cylinder like this
ScreenHunter 194.png
I tried

How can I rotate the cylinder like this?

ScreenHunter 194.png

12 days
Anonymous 1123 replying to user 3.14159 — Friday, 14th May 2021 04:10

Yes. Thanks.

16 minutes
user 3.14159 replying to Anonymous 1123 — Friday, 14th May 2021 03:54

I think so. As far as I know it is not even a solved problem in many dimensions. (And, if I remember correctly, in 8 dimensions the centers of the spheres have to sit on the nodes of an E_8 root lattice to be densely packed.)

31 minutes
Anonymous 1123 — Friday, 14th May 2021 03:24

@marmot, re: your answer, Is this hard problem here?

24 days
Anonymous 1123 replying to user 3.14159 — Tuesday, 20th Apr 2021 07:21

I have just posted my answer and thank to you.

25 minutes
Anonymous 1123 — Tuesday, 20th Apr 2021 06:56

Very nice. Thanks.

14 minutes
user 3.14159 replying to Anonymous 1123 — Tuesday, 20th Apr 2021 06:42

This does such clips.

Anonymous 1123 replying to user 3.14159 — Tuesday, 20th Apr 2021 06:41

I try to find it. Thank you very much.

user 3.14159 replying to Anonymous 1123 — Tuesday, 20th Apr 2021 06:36

Well, yes, but then you need to compute the intersection of the circle with the sphere. I was assuming that this is (C) because the sphere runs throug (C) but what I did not check is if the intersection is on the back side, which it seems to be. If you know that this is the case, you can just use clips.

Anonymous 1123 replying to user 3.14159 — Tuesday, 20th Apr 2021 06:32

Another view
ScreenHunter 102.png

Anonymous 1123 replying to user 3.14159 — Tuesday, 20th Apr 2021 06:32

I use GeoSpace, like this
ScreenHunter 101.png

40 minutes
user 3.14159 replying to Anonymous 1123 — Tuesday, 20th Apr 2021 05:52

Maybe

12 minutes
Anonymous 1123 replying to user 3.14159 — Tuesday, 20th Apr 2021 05:39

The dashed line of the circle BEFC out side of the sphere incorrect. How can I fix it?
ScreenHunter 100.png

Anonymous 1123 replying to user 3.14159 — Tuesday, 20th Apr 2021 05:37

I am trying to write answer this question by using 3dtools.
My code

21 minutes
user 3.14159 replying to Anonymous 1123 — Tuesday, 20th Apr 2021 05:16

You can also dash the line in the background.

12 minutes
Anonymous 1123 replying to user 3.14159 — Tuesday, 20th Apr 2021 05:04

Thanks.

4 hours
user 3.14159 replying to Anonymous 1123 — Tuesday, 20th Apr 2021 00:35

Maybe like this?

2 hours
Anonymous 1123 — Monday, 19th Apr 2021 23:00

@marmot, re: your answer, How about water in cone, e.g. here?

6 hours
user 3.14159 replying to Anonymous 1123 — Monday, 19th Apr 2021 17:12

It is there for a long time, just not documented.

Anonymous 1123 replying to user 3.14159 — Monday, 19th Apr 2021 17:08

Have you just added barycenter of a list of coordinates into 3dtools?

16 minutes
Anonymous 1123 replying to user 3.14159 — Monday, 19th Apr 2021 16:52

Thanks. Now it works.

41 minutes
user 3.14159 replying to Anonymous 1123 — Monday, 19th Apr 2021 16:11

Yes, there is an issue. I did not use fpu for one computation, so there was a dimension too large error. I updated the library https://github.com/marmotghost/tikz-3dtools/blob/master/tikzlibrary3dtools.code.tex.

10 minutes
Anonymous 1123 replying to user 3.14159 — Monday, 19th Apr 2021 16:00

This code does not work. I get the same result

Anonymous 1123 replying to user 3.14159 — Monday, 19th Apr 2021 15:54

I tried, and cannot the result

I get

ScreenHunter 99.png

13 minutes

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.