Polygon intersection

Polygon intersection - Mensajes

#1 Publicado: 17/5/2020 16:24:07
SteelCat

SteelCat

3 me gusta en 47 mensajes.

Grupo: 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 Publicado: 17/5/2020 17:12:07
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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) descargado 1890 vez(es).

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
A 1 usuarios les gustó este mensaje
frapuano 18/5/2020 4:10:00
#3 Publicado: 18/5/2020 11:04:20
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

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

Circular Polygon.sm (20,93 KiB) descargado 1235 vez(es).
#4 Publicado: 18/5/2020 12:31:53
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

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

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

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

Maths Polygon Solve Intersection.sm (21,94 KiB) descargado 1162 vez(es).
Maths Polygon Intersection Pentastar.sm (35,97 KiB) descargado 1171 vez(es).
#6 Publicado: 18/5/2020 22:32:09
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

For your interest: Intersection Pentastar.


...labels added, superb for publishing.

Maths Polygon Intersection Pentastar.sm (47,19 KiB) descargado 1159 vez(es).
#7 Publicado: 19/5/2020 11:38:48
SteelCat

SteelCat

3 me gusta en 47 mensajes.

Grupo: 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 Publicado: 23/5/2020 6:37:34
ianlh

ianlh

0 me gusta en 38 mensajes.

Grupo: User

Question:

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

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

2D Plot Setup Critical Polygon Intersection.sm (31,89 KiB) descargado 1291 vez(es).
#10 Publicado: 23/5/2020 13:04:57
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 23/5/2020 13:11:13
SteelCat

SteelCat

3 me gusta en 47 mensajes.

Grupo: 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) descargado 1291 vez(es).



Very nice.

Physics is like sex. Sure, it may give some practical results, but that’s not why we do it. (R. Feynman)
  • Nuevos mensajes
  • Sin mensajes nuevos