Polygon intersection

Polygon intersection - 消息

#1 已发布: 2020/5/17 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 已发布: 2020/5/17 17:12:07
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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 KiB)已下载 1907 次。

2017-03-29 14_54_45-SMath Studio 0.98.6179 - [Blatt1_].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
frapuano 2020/5/18 04:10:00
#3 已发布: 2020/5/18 11:04:20
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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

Circular Polygon.sm (20.93 KiB)已下载 1246 次。
#4 已发布: 2020/5/18 12:31:53
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

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

Best regards.
Alvaro.
#5 已发布: 2020/5/18 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 KiB)已下载 1174 次。
Maths Polygon Intersection Pentastar.sm (35.97 KiB)已下载 1186 次。
#6 已发布: 2020/5/18 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 KiB)已下载 1178 次。
#7 已发布: 2020/5/19 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 已发布: 2020/5/23 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 已发布: 2020/5/23 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 KiB)已下载 1303 次。
#10 已发布: 2020/5/23 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 已发布: 2020/5/23 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 KiB)已下载 1303 次。



Very nice.

Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
  • 有新帖
  • 无新帖