Split Areas(Polygons convex and concave) by lines

Split Areas(Polygons convex and concave) by lines - Momentum curvature by fibers method - Сообщения

#1 Опубликовано: 29.07.2022 13:13:09
Jesus

Jesus

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

Группа: User

Hi everyone ,I'm doing a momentum curvature usign Popovic's Method and found a big problem beacuse to divide a polygon(convex and concave) into small fiber like this image but with more lines:
General Polygon

it's not so easy to do an algorithm. I did a smath file when the polygon it's rectangular but for more general case my smath code doesn't work, I'd like know an algorithm, code or function if it's posible in smath or other language to develop.

Best regards.
Jesus.

Verificacion_de_fluencia_en_acero_fiber_method_degradation_forum.pdf (550 КиБ) скачан 57 раз(а).
#2 Опубликовано: 29.07.2022 16:45:52
Jean Giraud

Jean Giraud

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

Группа: User

If I understand ...
Your polygon has 9 vertices, we can try a circular spline.
That will add as many points between vertices, is it ?
From there: Area, Perimeter, Center of Gravity.
Give the vertices... Jean.
#3 Опубликовано: 29.07.2022 18:10:04
Jesus

Jesus

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

Группа: User

Hi Jean, exactly I need to known the area, center of gravity and perimeter of the division but the polygon doesn't need to have 9 vertices, this is an example in this case. In general ,I'd like to calculate for n vertices polygon(convex or concave),let me give an example in smath for regular polygon.

image.png

polygon_2.sm (36 КиБ) скачан 37 раз(а).

Best regards.
Jesus.
#4 Опубликовано: 30.07.2022 15:49:15
Jesus

Jesus

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

Группа: User

Hi Jean, it was a good solution and you give some ideas to do a code but I'd like to do for more lines and I'd like to optimize the code or algorithm. I did a code in smath maybe need to optimize some parts and get some interesting results, i hope you take a look because a I'd like to aply to convex and no convex polygon, I think it's so hard but I'd like to know the algorithm or code that other programs use. My code doesn't work for some slopes though

Page5 Polygon Copy.sm (116 КиБ) скачан 32 раз(а).

Best regards.
Jesus.
#5 Опубликовано: 31.07.2022 07:45:01
Martin Kraska

Martin Kraska

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

Группа: Moderator

Wrote

Hi everyone ,I'm doing a momentum curvature usign Popovic's Method and found a big problem beacuse to divide a polygon(convex and concave) into small fiber like this image but with more lines:
General Polygon

it's not so easy to do an algorithm. I did a smath file when the polygon it's rectangular but for more general case my smath code doesn't work, I'd like know an algorithm, code or function if it's posible in smath or other language to develop.

Best regards.
Jesus.

Verificacion_de_fluencia_en_acero_fiber_method_degradation_forum.pdf (550 КиБ) скачан 57 раз(а).



This might be an application for the GPC wrapper plugin by Davide.

gpc1.sm (12 КиБ) скачан 40 раз(а).
gpc1.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Опубликовано: 31.07.2022 12:37:52
Jesus

Jesus

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

Группа: User

Thank you so much, mkraska and Jean, I'll take a look this package (GPC wrapper).

Best regards

Jesús.
#7 Опубликовано: 31.07.2022 16:06:27
Jesus

Jesus

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

Группа: User

Ok Jean, I hope You'll find an algorithm to solve that problem.

Best regards
Jesus
#8 Опубликовано: 01.08.2022 14:09:35
Laurent Fournier

Laurent Fournier

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

Группа: User

very exciting project!
#9 Опубликовано: 01.08.2022 14:23:17
Jesus

Jesus

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

Группа: User

Hi Jean it's an excellent solution, thank you so much , I did a code with GPC plugin and I could get this results.

fibers.png

fibers1.png

polygon_irregular_fiber_borrador1.sm (34 КиБ) скачан 47 раз(а).

polygon_regular_fiber_borrador1.sm (35 КиБ) скачан 46 раз(а).

Best regards

Jesus
#10 Опубликовано: 01.08.2022 15:19:08
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

very exciting project!


... algo style to collapse in utilities.

Polygon.PNG
#11 Опубликовано: 01.08.2022 19:06:15
Martin Kraska

Martin Kraska

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

Группа: Moderator

General hatching procedure for arbitrary contours

gpc2.png
gpc2.sm (42 КиБ) скачан 39 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#12 Опубликовано: 02.08.2022 00:05:56
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi. In the attached, a function for see if a point is inside or outside a polygon, and a code for double integrals using Gauss-Legendre coefficients.

InPoly.pdf (97 КиБ) скачан 39 раз(а).
InPoly.sm (43 КиБ) скачан 54 раз(а).

Best regards.
Alvaro.
1 пользователям понравился этот пост
sergio 02.08.2022 11:10:00
#13 Опубликовано: 02.08.2022 02:44:17
Laurent Fournier

Laurent Fournier

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

Группа: User

Wow!
Will we be able to calculate the static moment and the moment of inertia of any section with these tools?
#14 Опубликовано: 02.08.2022 06:41:33
Martin Kraska

Martin Kraska

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

Группа: Moderator

gpc3.sm (135 КиБ) скачан 73 раз(а).
2022-08-02 11_11_43-SMath Solver 1.0.8238 - [gpc3.sm_].png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
sergio 02.08.2022 11:10:00
#15 Опубликовано: 02.08.2022 09:21:54
Laurent Fournier

Laurent Fournier

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

Группа: User

That's superb!

Thanks a lot!

Has anyone worked on polyhedra, convex hulls and polar polyhedra?
#16 Опубликовано: 02.08.2022 11:16:59
Jean Giraud

Jean Giraud

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

Группа: User

... refreshed for convenience.

Maths Polygon Create.sm (99 КиБ) скачан 40 раз(а).

#17 Опубликовано: 02.08.2022 12:35:53
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Has anyone worked on polyhedra, convex hulls and polar polyhedra?


I may have something on convex hull
Polyhedra, we have C_60 extracted from the adjacency matrix.
Jean

#18 Опубликовано: 02.08.2022 13:41:40
Laurent Fournier

Laurent Fournier

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

Группа: User

anything on the adjacency matrix I am super interested!
Handling the adjacency matrix is the only difficulty in fact. Polarity of points-planes is easy.
#19 Опубликовано: 02.08.2022 20:47:43
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

anything on the adjacency matrix I am super interested!
Handling the adjacency matrix is the only difficulty in fact. Polarity of points-planes is easy.


1. In the attached Buckyball, adjacency matrix is from Mathsoft,
Mathsoft borrowed fro Matlab.
2. I have the Mathcad convex hull ORIGIN 0
RemToDo ORIGIN 1 for Smath coding.
Cheers ... Jean.

Buckyball Adjacency.sm (16 КиБ) скачан 29 раз(а).
0Anim Buckyball.sm (107 КиБ) скачан 31 раз(а).
Buckyball.sm (176 КиБ) скачан 35 раз(а).

1 пользователям понравился этот пост
Laurent Fournier 02.08.2022 23:36:00
#20 Опубликовано: 24.05.2023 17:25:09
CLEISON ARMANDO MANRIQUE AGUIRRE

CLEISON ARMANDO MANRIQUE AGUIRRE

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

Группа: User

Wrote

gpc3.sm (135 КиБ) скачан 73 раз(а).
2022-08-02 11_11_43-SMath Solver 1.0.8238 - [gpc3.sm_].png



I guess we can not use the same matrix of contour point to get the area and de center of mass ... Or am I wrong ?
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений