D2D drawings

D2D drawings - Dot to dot drawings - Messages

#1 Posted: 11/21/2024 7:52:37 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

d2d-paper-airplane.sm (7 KiB) downloaded 73 time(s).
d2d-paper-airplane.pdf (61 KiB) downloaded 79 time(s).

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 users liked this post
Alvaro Diaz Falconi 11/22/2024 1:33:00 AM
#2 Posted: 11/22/2024 1:34:47 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi Viacheslav. You can try this also.

d2d-paper-airplane.sm (16 KiB) downloaded 58 time(s).

Best regards.
Alvaro.
1 users liked this post
Вячеслав Мезенцев 11/22/2024 2:39:00 AM
#3 Posted: 11/22/2024 2:47:15 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: 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 users liked this post
Martin Kraska 11/22/2024 5:43:00 AM
#4 Posted: 11/22/2024 5:43:18 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 Posted: 11/22/2024 6:13:22 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 Posted: 11/22/2024 6:38:12 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: 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 Posted: 11/22/2024 10:04:51 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 KiB) downloaded 79 time(s).

Best regards.
Alvaro.
2 users liked this post
Вячеслав Мезенцев 11/22/2024 2:23:00 PM, NDTM Amarasekera 11/22/2024 7:00:00 PM
#8 Posted: 11/22/2024 8:55:44 PM
francesco rapuano

francesco rapuano

12 likes in 38 posts.

Group: 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 Posted: 11/22/2024 11:55:58 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: 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 users liked this post
francesco rapuano 11/23/2024 1:58:00 PM
#10 Posted: 12/14/2024 12:51:22 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

d2d-paper-dog.jpg

d2d-paper-dog.pdf (45 KiB) downloaded 80 time(s).
d2d-paper-dog.sm (12 KiB) downloaded 75 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
NDTM Amarasekera 1/7/2025 5:19:00 PM
#11 Posted: 1/7/2025 3:15:47 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

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

Chain Code.sm (17 KiB) downloaded 67 time(s).

code.png

Best regards.
Alvaro.
4 users liked this post
Вячеслав Мезенцев 1/7/2025 3:18:00 PM, Oscar Campo 1/7/2025 5:17:00 PM, NDTM Amarasekera 1/7/2025 5:19:00 PM, francesco rapuano 1/7/2025 6:21:00 PM
  • New Posts New Posts
  • No New Posts No New Posts