Polygon intersection

Polygon intersection - Poruke

#1 Objavljeno: 17. 5. 2020. 16:24:07
SteelCat

SteelCat

3 svidjanja u 47 postova.

Grupa: 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 Objavljeno: 17. 5. 2020. 17:12:07
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: 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) preuzeto 1939 put(ova).

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 korisnika je svidelo ovu objavu
frapuano 18. 5. 2020. 04:10:00
#3 Objavljeno: 18. 5. 2020. 11:04:20
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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

Circular Polygon.sm (20,93 KiB) preuzeto 1270 put(ova).
#4 Objavljeno: 18. 5. 2020. 12:31:53
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

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

Best regards.
Alvaro.
#5 Objavljeno: 18. 5. 2020. 20:56:55
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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

Maths Polygon Solve Intersection.sm (21,94 KiB) preuzeto 1187 put(ova).
Maths Polygon Intersection Pentastar.sm (35,97 KiB) preuzeto 1207 put(ova).
#6 Objavljeno: 18. 5. 2020. 22:32:09
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

For your interest: Intersection Pentastar.


...labels added, superb for publishing.

Maths Polygon Intersection Pentastar.sm (47,19 KiB) preuzeto 1195 put(ova).
#7 Objavljeno: 19. 5. 2020. 11:38:48
SteelCat

SteelCat

3 svidjanja u 47 postova.

Grupa: 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 Objavljeno: 23. 5. 2020. 06:37:34
ianlh

ianlh

0 svidjanja u 38 postova.

Grupa: User

Question:

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

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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

2D Plot Setup Critical Polygon Intersection.sm (31,89 KiB) preuzeto 1320 put(ova).
#10 Objavljeno: 23. 5. 2020. 13:04:57
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 23. 5. 2020. 13:11:13
SteelCat

SteelCat

3 svidjanja u 47 postova.

Grupa: 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) preuzeto 1320 put(ova).



Very nice.

Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
  • Novi postovi
  • Nema novih postova