tikz add tag
5 years ago Anonymous 1123

I have to draw dashed lines of this figure by hand. My code

ScreenHunter 854.jpg

How to draw this dashed lines this figure automatically?

Top Answer
5 years ago user 3.14159

This is a convex shape, so we can repeat the tricks from the previous answer on tetrahedra. Note that I added the style for the face to the 3dtools library, so you need to load it to run the following code. Note that the default value of O happens to be inside the poyhedron here, in general you may to adjust it.

ani.gif

4 years
Anonymous 1123 replying to user 3.14159 — Sunday, 6th Jun 2021 07:40

This is the code I’m practicing on draw ordered paths.

The plane is outside of the sphere. So the plane has no points in common with the sphere. It is OK for me.

ScreenHunter 216.png

9 hours
Anonymous 1123 replying to user 3.14159 — Saturday, 5th Jun 2021 22:36

Thank you very much for all your helps.

23 minutes
user 3.14159 replying to Anonymous 1123 — Saturday, 5th Jun 2021 22:13

I see. To me this looks great! (And shows a bit how the library evolved, thanks to various suggestions, mainly by you.)

5 hours
Anonymous 1123 replying to user 3.14159 — Saturday, 5th Jun 2021 16:59

The result.

ScreenHunter 215.png

Anonymous 1123 replying to user 3.14159 — Saturday, 5th Jun 2021 16:57

I am sorry about this. This is the code I’m practicing on draw ordered paths.

There is not wrong in this code. I sent my code to you and hope receive your comment about this code.

user 3.14159 replying to Anonymous 1123 — Saturday, 5th Jun 2021 16:49

OK, from now on I am going to ignore all requests which I do not understand. This is the first one. If you want others to look at such things, please make an effort in explaining what is wrong, e.g. by putting a screen shot with annotations.

30 minutes
Anonymous 1123 — Saturday, 5th Jun 2021 16:19

@marmot, re: your answer, I tried this code. Please comment for me.

a month
Anonymous 1123 replying to user 3.14159 — Sunday, 9th May 2021 02:56

Thank you very much. I will cut scale=1 in next code, and try to make it simpler.

33 minutes
user 3.14159 replying to Anonymous 1123 — Sunday, 9th May 2021 02:23

I do not think that this is a too serious issue, but there is a reason why users ask for minimal examples. There is no reason to write several loops for something that can be done with one. It is harder to maintain, and others using or extending the code will just have to spend more time to understand what’s going on, or to add features to the list. Also the resulting code appears than more voluminous than it has to be, and several users equate shortness with elegance, so, as a consequence, these codes appear less elegant than they might really be. Also, if you want to attract others to these methods of drawing diagrams, it can really deter them if they feel that the code has unnecessary repetitions. Therefore it would be great if you tried to minimize codes before presenting them, tried to avoid keys like scale=1, which make the code just longer, and unnecessary duplicates. On the long run this will also help you to maintain your own code because after a while one tends to forget which ingredients were important and which ones are there for no real reason.

2 hours
Anonymous 1123 — Sunday, 9th May 2021 00:16

@marmot, re: your answer, I am sorry about this question. In your code, you wrote % Please please please do not always force me to correct . I put question, because I do not understand deeply about it.

2 days
Anonymous 1123 replying to user 3.14159 — Friday, 7th May 2021 07:07

Thank you for your reading.

7 hours
user 3.14159 replying to Anonymous 1123 — Thursday, 6th May 2021 23:56

If I understand correctly, these are “just” some conical sections.

17 minutes
Anonymous 1123 replying to user 3.14159 — Thursday, 6th May 2021 23:39

The book in old. I am afraid it is difficult for you to see . If you can not read, please do not care this problem. Thank you very much. ScreenHunter 131.png
ScreenHunter 132.png

ScreenHunter 133.png

an hour
user 3.14159 replying to Anonymous 1123 — Thursday, 6th May 2021 22:44

I do not have access to the book. But the question is really what these ellipses/circles represent, i.e. if you have the data that determines the planes they are in.

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

I see the picture at page 16 of this book

a day
user 3.14159 replying to Anonymous 1123 — Wednesday, 5th May 2021 16:53

I don’t know because I do not know what it really depicts.

10 hours
Anonymous 1123 replying to user 3.14159 — Wednesday, 5th May 2021 06:56

Is it difficult to draw this picture?
ScreenHunter 130.png

a day
Anonymous 1123 replying to user 3.14159 — Tuesday, 4th May 2021 07:41

Thanks.

user 3.14159 replying to Anonymous 1123 — Tuesday, 4th May 2021 07:38

You can use draw ordered paths.

Screen Shot 2021-05-03 at 11.37.36 PM.png

Anonymous 1123 replying to user 3.14159 — Tuesday, 4th May 2021 07:31

ScreenHunter 128.png
How to correct the line of the sphere inside the cone?

Anonymous 1123 replying to user 3.14159 — Tuesday, 4th May 2021 07:30

I am trying to draw a cone and sphre so that TA is a tangent of the sphere. I tried

2 hours
Anonymous 1123 replying to user 3.14159 — Tuesday, 4th May 2021 05:19

I have just gone home from my school. Thanks.

3 hours
user 3.14159 replying to Anonymous 1123 — Tuesday, 4th May 2021 01:52

\pgfmathsetmacro{\myangle}{acos(TD("(A)-(O)o(B)-(O)")/sqrt(TD("(A)-(O)o(A)-(O)")*TD("(B)-(O)o(B)-(O)")))}?

19 minutes
Anonymous 1123 replying to user 3.14159 — Tuesday, 4th May 2021 01:33

Or
ScreenHunter 127.pngScreenHunter 128.png

Anonymous 1123 replying to user 3.14159 — Tuesday, 4th May 2021 01:26

In this code, how can I get measure of the angle AOB equal to 120 degrees?

Anonymous 1123 replying to user 3.14159 — Tuesday, 4th May 2021 01:23

My new set up
ScreenHunter 125.png
ScreenHunter 126.png

25 minutes
Anonymous 1123 replying to user 3.14159 — Tuesday, 4th May 2021 00:58

Your code works fine. Thank you very much.

7 hours
user 3.14159 replying to Anonymous 1123 — Monday, 3rd May 2021 17:34

OK, but I really have a problem understanding the setup. As long as it is not defined, I am afraid I cannot help.

24 minutes
Anonymous 1123 replying to user 3.14159 — Monday, 3rd May 2021 17:10

I rotated the picture by hand. Perhalp, I did not make dash line some here. I forgot save it.

user 3.14159 replying to Anonymous 1123 — Monday, 3rd May 2021 17:04

If that’s the case, why is the TY line not covered by the OBEC plane?

22 minutes
Anonymous 1123 replying to user 3.14159 — Monday, 3rd May 2021 16:42

I understand your code. In my picture, I draw the points X, Y, T, Z, A, B, O lies on the same plane xy.

10 hours
user 3.14159 replying to Anonymous 1123 — Monday, 3rd May 2021 06:57

As I said, I do not understand the picture. Above you find a code that produces such pictures, but the interpretation is not clear.

Anonymous 1123 replying to user 3.14159 — Monday, 3rd May 2021 06:47

Yes. In GeoSpace, I use 3d coordinates of the vertices. I think, we draw ractangles in TikZ.

an hour
user 3.14159 — Monday, 3rd May 2021 05:43

This draws something of that sort, but assumes that the horizontal object is not a plane.

Screen Shot 2021-05-02 at 9.43.13 PM.png

user 3.14159 replying to Anonymous 1123 — Monday, 3rd May 2021 05:38

I do not understand the picture. o you have the 3d coordinates of the vertices?

21 minutes
Anonymous 1123 replying to user 3.14159 — Monday, 3rd May 2021 05:16

Thank. How can I draw this pictures?
ScreenHunter 122.png
ScreenHunter 123.png

12 hours
user 3.14159 replying to Anonymous 1123 — Sunday, 2nd May 2021 16:58

I really think that it is not very practical to use convex hulls on pgfplots plots, it only works reasonably fast if the number of coordinates is small enough.

11 minutes
Anonymous 1123 replying to user 3.14159 — Sunday, 2nd May 2021 16:47

I do not understand all your code. I say to OP ask new question at https://topanswers.xyz/tex

11 hours
user 3.14159 replying to Anonymous 1123 — Sunday, 2nd May 2021 05:52

It is not really practical.

Screen Shot 2021-05-01 at 9.52.24 PM.png

13 minutes
Anonymous 1123 replying to user 3.14159 — Sunday, 2nd May 2021 05:39

Can you hint me alittle?

user 3.14159 replying to Anonymous 1123 — Sunday, 2nd May 2021 05:35

I think you can do that for general surfaces, too, in principle. It is just that the code may become very slow, or even runs out of memory…

Anonymous 1123 replying to user 3.14159 — Sunday, 2nd May 2021 05:31

Please see comments at here.

11 hours
user 3.14159 replying to Anonymous 1123 — Saturday, 1st May 2021 18:34

I think solutions will be very slow because we need to compute the convex hull of thousands of coordinates.

3 hours
Anonymous 1123 replying to user 3.14159 — Saturday, 1st May 2021 15:40

I do not know how to start.

16 minutes
Anonymous 1123 replying to user 3.14159 — Saturday, 1st May 2021 15:24

Thanks. Now I post this answer. Many thank to you.

an hour
user 3.14159 replying to Anonymous 1123 — Saturday, 1st May 2021 13:57

Also, maybe the OP is looking for longer axes.

ani.gif

user 3.14159 replying to Anonymous 1123 — Saturday, 1st May 2021 13:47

P.S. I think that with convex hull of one can answer this question but the same OP.

user 3.14159 replying to Anonymous 1123 — Saturday, 1st May 2021 13:46

With the new draw ordered paths it is actually possible to do this without an overly excessive code.

ani.gif

3 hours
Anonymous 1123 replying to user 3.14159 — Saturday, 1st May 2021 10:26

thu_may.gif

Anonymous 1123 replying to user 3.14159 — Saturday, 1st May 2021 10:23

I see difficults when I make correct line of Ox, Oy of this question

21 hours

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.