Polygon intersection

Polygon intersection - Сообщения

#1 Опубликовано: 17.05.2020 16:24:07
SteelCat

SteelCat

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

Группа: User

Hi everyone,
I'm looking for suggestions to find the intersection of two polygons and hatch the result.

The most particular case concerns the hatching of a part of polygon intersected by a straight line.

I know some basic of X-Y plot to draw a polygon...
Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
#2 Опубликовано: 17.05.2020 17:12:07
Martin Kraska

Martin Kraska

1 315 сообщений из 2 230 понравились пользователям.

Группа: Moderator

Perhaps the GPC (general polygon clipping library) wrapper plugin might help. The basics are described in section G.3 of the german handbook.

You also might have a look at the hatch and fill snippet.


GPC.sm (6,8 КиБ) скачан 1154 раз(а).

2017-03-29 14_54_45-SMath Studio 0.98.6179 - [Blatt1_].png
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
frapuano 18.05.2020 04:10:00
#3 Опубликовано: 18.05.2020 11:04:20
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

Otherwise, piece wise from native Smath ... just demo.

Circular Polygon.sm (20,93 КиБ) скачан 664 раз(а).
#4 Опубликовано: 18.05.2020 12:31:53
Alvaro

Alvaro

1 078 сообщений из 1 750 понравились пользователям.

Группа: User

Hi. Maybe you also can check this discussion: https://en.smath.com/forum/yaf_postst11405_Line-intersections.aspx

Best regards.
Alvaro.
#5 Опубликовано: 18.05.2020 20:56:55
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

IMHO, I don't see much interest for polygon intersection.
For your interest: Intersection Pentastar.

Maths Polygon Solve Intersection.sm (21,94 КиБ) скачан 644 раз(а).
Maths Polygon Intersection Pentastar.sm (35,97 КиБ) скачан 652 раз(а).
#6 Опубликовано: 18.05.2020 22:32:09
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

Wrote

For your interest: Intersection Pentastar.


...labels added, superb for publishing.

Maths Polygon Intersection Pentastar.sm (47,19 КиБ) скачан 645 раз(а).
#7 Опубликовано: 19.05.2020 11:38:48
SteelCat

SteelCat

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

Группа: User

thank you all, I will do some application
Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
#8 Опубликовано: 23.05.2020 06:37:34
ianlh

ianlh

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

Группа: User

Question:

How would you then calculate / determine the length of the clipped line?
Interested for tension and shear lengths in unusual shapes
#9 Опубликовано: 23.05.2020 11:24:32
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

... refreshed/generalized/augmented [A, P, CG]

2D Plot Setup Critical Polygon Intersection.sm (31,89 КиБ) скачан 723 раз(а).
#10 Опубликовано: 23.05.2020 13:04:57
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

Wrote

How would you then calculate / determine the length of the clipped line?
Interested for tension and shear lengths in unusual shapes


From the attached Smath document.
#11 Опубликовано: 23.05.2020 13:11:13
SteelCat

SteelCat

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

Группа: User

Wrote

Question:

How would you then calculate / determine the length of the clipped line?
Interested for tension and shear lengths in unusual shapes



From coords, using Pitagora's theorem

Wrote

... refreshed/generalized/augmented [A, P, CG]

2D Plot Setup Critical Polygon Intersection.sm (31,89 КиБ) скачан 723 раз(а).



Very nice.

Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
  • Новые сообщения
  • Нет новых сообщений