D2D drawings

D2D drawings - Dot to dot drawings - Сообщения

#1 Опубликовано: 21.11.2024 19:52:37
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

d2d-paper-airplane.sm (7 КиБ) скачан 39 раз(а).
d2d-paper-airplane.pdf (61 КиБ) скачан 46 раз(а).

I don't know which table to choose, while this one is used

figures-code-table.jpg

Links:

1. Units and Conversions

Click to enlarge Click to enlarge
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Alvaro Diaz Falconi 22.11.2024 01:33:00
#2 Опубликовано: 22.11.2024 01:34:47
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Hi Viacheslav. You can try this also.

d2d-paper-airplane.sm (16 КиБ) скачан 30 раз(а).

Best regards.
Alvaro.
1 пользователям понравился этот пост
#3 Опубликовано: 22.11.2024 02:47:15
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Yes, thank you, it expands the space, but it's not very intuitive. Maybe we can sacrifice the numbers and leave only the letters? Small letters are positive coordinates, and large ones are negative. Zero can be left in the middle. Maybe we can change the sequence like that?

P.S. Although no, you can leave it as is ( there is a coding function ). This is not very intuitive for manual coding, but for automatic coding it is normal.

You can name the function with one word - codec. Processing depending on the argument type. Also, when encoding, you can automatically determine the size of the area and specify the second parameter with the first two digits in the text. When decoding, it will be clear which alphabet to use.

I want to add examples of drawing by points to the X-Y Plot plugin, to the context menu, but the standard usage is too long. So I came up with the idea of ​​making coding for polylines as text.
If I find a universal convenient algorithm, I will include such text lines as an alternative option for specifying polylines.
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Martin Kraska 22.11.2024 05:43:00
#4 Опубликовано: 22.11.2024 05:43:18
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote



I want to add examples of drawing by points to the X-Y Plot plugin, to the context menu, but the standard usage is too long. So I came up with the idea of ​​making coding for polylines as text.
If I find a universal convenient algorithm, I will include such text lines as an alternative option for specifying polylines.



I think the polygon drawing using a 2 column matrix (as it is part of the add element menu) is easy to understand and gives the basic idea how to do it. Perhaps one of the lines could get a third point such that the user sees that the method is not restricted to single segments. Also, the restriction to integer coordinates is quite a heavy limit. There are not many options to draw a paper plane this way. Sort of vector-based pixel art or pixel-based vector art.

Yet I see that the string encoding allows to much easier insert points, while adding points to manually edited matrices is a pain in the ass as long as SMath doesn't have basic row/column insert/delete function. For 1D array objects it is ok but not for matrices.



Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Опубликовано: 22.11.2024 06:13:22
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

... I want to add examples of drawing by points to the X-Y Plot plugin, to the context menu, but the standard usage is too long. So I came up with the idea of ​​making coding for polylines as text.
If I find a universal convenient algorithm, I will include such text lines as an alternative option for specifying polylines.



You can see the turtle algorithm here. Maybe you can change the instructions with a combination of "↑ ↓ → ← ⭯ ⭮ ☺" and numerical values into an only one string, or something else.

As Martin says, the condition of using only integer coordinates can be very restrictive, unless you want to handle some kind of geometry with Gaussian integers.

Best regards.
Alvaro.

#6 Опубликовано: 22.11.2024 06:38:12
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

I need simple examples to explain the drawing capabilities that the plugin supports. As it turns out, people don't understand that they can draw not only with polylines, but also with sets of polylines. The same with shapes. You can draw sets of shapes as a single object (single trace).
If I insert a bunch of nested matrices, then at first there will be no sense in it. Simple examples are needed to gradually introduce the use of sets of nested matrices of various kinds.
Yes, this encoding is primitive, but after playing with it, it seems to me that they will want more.
I read some foreign forums where they try to draw shapes and not so many people understand how to do it correctly. Instead of combining and drawing in groups, they draw one piece at a time.

Perhaps this will be interesting to children.

D2D images 2.png
Russia ☭ forever, Viacheslav N. Mezentsev
#7 Опубликовано: 22.11.2024 10:04:51
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

I need simple examples to explain the drawing capabilities that the plugin supports. As it turns out, people don't understand that they can draw not only with polylines, but also with sets of polylines. The same with shapes. You can draw sets of shapes as a single object (single trace).
If I insert a bunch of nested matrices, then at first there will be no sense in it. Simple examples are needed to gradually introduce the use of sets of nested matrices of various kinds.
Yes, this encoding is primitive, but after playing with it, it seems to me that they will want more.
I read some foreign forums where they try to draw shapes and not so many people understand how to do it correctly. Instead of combining and drawing in groups, they draw one piece at a time.

Perhaps this will be interesting to children.

D2D images 2.png



Yes, you explained it to me with a couple of examples a few days ago, and I still don't use it. Maybe you could use base 52, with A,B,C,... = 0,1,2,... and a,b,c,... = -1,-2,-3,... Also separate with optional spaces and truncate the coordinates to facilitate the encoding of simple drawings that you have that are not integer coordinates, among some scale function than can be applied too. Visually it could look better: lowercase coords are negative and uppercase are positive, and the lexicographical order gives an idea of the length.

d2d-paper-airplane-code52.sm (14 КиБ) скачан 41 раз(а).

Best regards.
Alvaro.
2 пользователям понравился этот пост
Вячеслав Мезенцев 22.11.2024 14:23:00, NDTM Amarasekera 22.11.2024 19:00:00
#8 Опубликовано: 22.11.2024 20:55:44
francesco rapuano

francesco rapuano

12 сообщений из 38 понравились пользователям.

Группа: User

Uni,

I guess that in this last period the features of the XY PLot Region ( and of the MathCad Block too ) are growing a lot and in my modest opinion there is the need to explain better this new features through examples and documentation otherwise there is a frustration thrying to use them .
Just for instance , the last feature of the possibility to draw an image in the XY Plot Region, you have done some examples and Alvaro too but they do not work however because is missing your picture or of the bird or however it is not clear where to place the image file that has to be displayed in the Plot Region.
Probably ( .for sure ) this is just a very stupid problem of mine but there are a lot of small things like this and I hope that people like Martin and Davide that are more ..how can I say ... capable on the didactical side ( or teaching oriented ) will be able to develop a littel bit of examples/documentation that explain better this plug-in features ( this is an issue that is strongly amplified for what Concern the Mathcad Block where is really difficult to understand clearly the development directions and why some features are developed , which is the logic behind them ) .
What has been said so far is not in the spirit of criticism for anyone but in the hope of allowing us to better use the plugins developed by you which I consider exceptional.

Take care and best regards

Franco

#9 Опубликовано: 22.11.2024 23:55:58
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Wrote

Just for instance , the last feature of the possibility to draw an image in the XY Plot Region, you have done some examples and Alvaro toobut they do not work however because is missing your picture or of the bird or however it is not clear where to place the image file that has to be displayed in the Plot Region.


By default, it is usually assumed that the image is located next to the document. I assumed that the user would guess to substitute any other small size. The path can be specified yourself if it is not clear where the function is looking for a file.

As for the Mathcad Block, the component itself does almost nothing. He appeared in connection with my desire to simplify the setting of the problem for various solvers. All that the plugin does is group the input data for a particular solver. Its task is to establish a connection between data and functions that can process.
Unfortunately, it still does not have a completely finished look. All expressions should be inside the block, and not next to it. It's hard for me to implement this. If this is not done, then confusion may occur, because the component during his work “looks into the future” regarding the current computational moment. After its operation, the expression will be interpreted by the document itself. This limits the scope of the block.

Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
francesco rapuano 23.11.2024 13:58:00
#10 Опубликовано: 14.12.2024 00:51:22
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

d2d-paper-dog.jpg

d2d-paper-dog.pdf (45 КиБ) скачан 35 раз(а).
d2d-paper-dog.sm (12 КиБ) скачан 43 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
NDTM Amarasekera 07.01.2025 17:19:00
#11 Опубликовано: 07.01.2025 15:15:47
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Hi Viacheslav. Another code: Freeman Chain Code of Eight Directions.

Chain Code.sm (17 КиБ) скачан 35 раз(а).

code.png

Best regards.
Alvaro.
4 пользователям понравился этот пост
Вячеслав Мезенцев 07.01.2025 15:18:00, Oscar Campo 07.01.2025 17:17:00, NDTM Amarasekera 07.01.2025 17:19:00, francesco rapuano 07.01.2025 18:21:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений