Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline uni  
#1 Posted : 22 November 2024 01:52:37(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,641
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
d2d-paper-airplane.sm (8kb) downloaded 17 time(s).
d2d-paper-airplane.pdf (62kb) downloaded 22 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

Edited by user 22 November 2024 05:11:34(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 22/11/2024(UTC)
Offline Razonar  
#2 Posted : 22 November 2024 07:34:47(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,533
Uruguay

Was thanked: 989 time(s) in 618 post(s)
Hi Viacheslav. You can try this also.

d2d-paper-airplane.sm (17kb) downloaded 7 time(s).

Best regards.
Alvaro.

Edited by user 22 November 2024 08:02:01(UTC)  | Reason: Not specified

thanks 1 user thanked Razonar for this useful post.
on 22/11/2024(UTC)
Offline uni  
#3 Posted : 22 November 2024 08:47:15(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,641
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
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.

Edited by user 22 November 2024 09:34:39(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 22/11/2024(UTC)
Offline mkraska  
#4 Posted : 22 November 2024 11:43:18(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,048
Germany

Was thanked: 1177 time(s) in 752 post(s)
Originally Posted by: uni Go to Quoted Post


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://smath.com/wiki/SMath%20with%20Plugins.ashx
Offline Razonar  
#5 Posted : 22 November 2024 12:13:22(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,533
Uruguay

Was thanked: 989 time(s) in 618 post(s)
Originally Posted by: uni Go to Quoted Post
... 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.

Offline uni  
#6 Posted : 22 November 2024 12:38:12(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,641
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
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 (1,282kb) downloaded 12 time(s).

Edited by user 22 November 2024 12:58:12(UTC)  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline Razonar  
#7 Posted : 22 November 2024 16:04:51(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,533
Uruguay

Was thanked: 989 time(s) in 618 post(s)
Originally Posted by: uni Go to Quoted Post
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 (1,282kb) downloaded 12 time(s).


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 (15kb) downloaded 8 time(s).

Best regards.
Alvaro.

Edited by user 22 November 2024 16:06:40(UTC)  | Reason: Not specified

thanks 2 users thanked Razonar for this useful post.
on 22/11/2024(UTC),  on 23/11/2024(UTC)
Offline B_Jack  
#8 Posted : 23 November 2024 02:55:44(UTC)
B_Jack


Rank: Advanced Member

Groups: Registered
Joined: 16/04/2023(UTC)
Posts: 38
Italy
Location: Rome

Was thanked: 12 time(s) in 9 post(s)
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

Offline uni  
#9 Posted : 23 November 2024 05:55:58(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,641
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
Originally Posted by: B_Jack Go to Quoted Post
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 (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 23/11/2024(UTC)
Offline uni  
#10 Posted : 14 December 2024 06:51:22(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,641
Man
Russian Federation

Was thanked: 1400 time(s) in 817 post(s)
d2d-paper-dog.jpg

d2d-paper-dog.pdf (46kb) downloaded 7 time(s).
d2d-paper-dog.sm (13kb) downloaded 14 time(s).
Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 07/01/2025(UTC)
Offline Razonar  
#11 Posted : 07 January 2025 21:15:47(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,533
Uruguay

Was thanked: 989 time(s) in 618 post(s)
Hi Viacheslav. Another code: Freeman Chain Code of Eight Directions.

Chain Code.sm (18kb) downloaded 10 time(s).

code.png

Best regards.
Alvaro.

Edited by user 07 January 2025 21:24:28(UTC)  | Reason: Not specified

thanks 4 users thanked Razonar for this useful post.
on 07/01/2025(UTC),  on 07/01/2025(UTC),  on 07/01/2025(UTC),  on 08/01/2025(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.