Polygon intersection

Polygon intersection - Messaggi

#1 Pubblicato: 17/05/2020 16:24:07
SteelCat

SteelCat

3 apprezzamenti in 47 post.

Gruppo: 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 Pubblicato: 17/05/2020 17:12:07
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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) scaricato 1893 volta(e).

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 utenti hanno apprezzato questo post
frapuano 18/05/2020 04:10:00
#3 Pubblicato: 18/05/2020 11:04:20
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

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

Circular Polygon.sm (20,93 KiB) scaricato 1238 volta(e).
#4 Pubblicato: 18/05/2020 12:31:53
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

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

Best regards.
Alvaro.
#5 Pubblicato: 18/05/2020 20:56:55
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

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

Maths Polygon Solve Intersection.sm (21,94 KiB) scaricato 1167 volta(e).
Maths Polygon Intersection Pentastar.sm (35,97 KiB) scaricato 1176 volta(e).
#6 Pubblicato: 18/05/2020 22:32:09
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

For your interest: Intersection Pentastar.


...labels added, superb for publishing.

Maths Polygon Intersection Pentastar.sm (47,19 KiB) scaricato 1166 volta(e).
#7 Pubblicato: 19/05/2020 11:38:48
SteelCat

SteelCat

3 apprezzamenti in 47 post.

Gruppo: 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 Pubblicato: 23/05/2020 06:37:34
ianlh

ianlh

0 apprezzamenti in 38 post.

Gruppo: User

Question:

How would you then calculate / determine the length of the clipped line?
Interested for tension and shear lengths in unusual shapes
#9 Pubblicato: 23/05/2020 11:24:32
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

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

2D Plot Setup Critical Polygon Intersection.sm (31,89 KiB) scaricato 1295 volta(e).
#10 Pubblicato: 23/05/2020 13:04:57
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 23/05/2020 13:11:13
SteelCat

SteelCat

3 apprezzamenti in 47 post.

Gruppo: 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) scaricato 1295 volta(e).



Very nice.

Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
  • Nuovi post
  • Nessun nuovo post