RandomBaywatch · @RandomBaywatch
75 followers · 9681 posts · Server mastodon.cloud
RandomBaywatch · @RandomBaywatch
73 followers · 9661 posts · Server mastodon.cloud
Alexandre B A Villares · @villares
2 followers · 1 posts · Server pynews.com.br

Desenhando formas para construir objetos shapely, que depois dá pra desenhar com py5 também!
Mais sobre essa discussão em github.com/py5coding/py5genera
Processing

#python #py5 #shapely #programacaocriativa

Last updated 1 year ago

Tanguy Fardet · @tfardet
739 followers · 2675 posts · Server scicomm.xyz

First contribution to accepted!
I added a keyword argument to normalize polygons before checking equality.
It took... *check notes* a little over 18 months to get accepted ^^

After lengthy discussions and some changes, I'm not even sure whether the final implementation is a good thing or not as the whole point of the original contribution was to change the default behavior xD

#python #floss #foss #shapely

Last updated 1 year ago

Alexandre B A Villares 🐍 · @villares
1075 followers · 3270 posts · Server ciberlandia.pt

Untested !

- ->
```python
with open('test.svg', 'w') as f:
f.write(shapely_shape._repr_svg_())
```
- ->
- gist.github.com/un1tz3r0/9f473

#python #shapely #svg

Last updated 1 year ago

Mamluke 🏳️‍🌈 · @Mamluke
85 followers · 132 posts · Server historians.social
Tanguy Fardet · @tfardet
717 followers · 2730 posts · Server scicomm.xyz

1. Don't touch your code for 6 months.
2. Come back, do stuff, push... all tests fail -_-

Over these past 6 months:

- made their geometries immutable (that was a pain)
- decided to move to sparse arrays, even though they are nowhere near finished and the move was almost guaranteed to break code
- moved a function to another module
- 3.7 made ArtlstList immutable
- broke their ubuntu package

How's *your* day going?

#floss #foss #python #nest #matplotlib #graph_tool #scipy #networkx #shapely

Last updated 1 year ago

Alexandre B A Villares 🐍 · @villares
920 followers · 1888 posts · Server ciberlandia.pt

Dia de personalizar as máscaras de carnaval criadas com e corte laser pelo meu colega @danielseda ... Durante a semana vamos continuar explorando um fazedor de máscaras com e baseado nas mesmas ideias de combinar formas extraídas dos glifos de fontes decorativas.

#inkscape #python #py5 #shapely

Last updated 1 year ago

Alexandre B A Villares 🐍 · @villares
905 followers · 1678 posts · Server ciberlandia.pt

"tip", on shapely v2.0.1 MultiPolygon is now hasheable!

(this is cool because I have now an easy way to check if my unions have changed before doing costly conversions...)

#python #shapely #trimesh

Last updated 1 year ago

Alexandre B A Villares 🐍 · @villares
886 followers · 1533 posts · Server ciberlandia.pt

today I added rotation to the captured glyphs...

#processing #python #py5 #shapely #trimesh

Last updated 2 years ago

Alexandre B A Villares 🐍 · @villares
877 followers · 1499 posts · Server ciberlandia.pt
Alexandre B A Villares 🐍 · @villares
872 followers · 1492 posts · Server ciberlandia.pt

bom dia ciberlândia!

experimento para extrair as formas de um texto apresentando em uma fonte tipográfica específica usando py5 e shapely
github.com/py5coding/py5genera


#processing #python #py5 #shapely #typography #creativecoding

Last updated 2 years ago

Alexandre B A Villares 🐍 · @villares
865 followers · 1466 posts · Server ciberlandia.pt

sketch_2022_02_01 imported mode

import trimesh
import shapely

# iamkate.com/data/12-bit-rainbo
palette = (
'#817', '', '', '',
'', '', '', '',
'', '', '', '#639'
)

def setup():
global m
size(400, 400, P3D)
no_stroke()
polygon = shapely.geometry.Polygon([(-100, -100), (0, -100),
(0, 0), (-50, -50), (-100, 0)])
m = trimesh.creation.extrude_polygon(polygon, 30)

def draw():
background(0)
translate(width /2, height / 2)
rotate_x(QUARTER_PI)
rotate_y(radians(mouse_x))
for i, face in enumerate(m.faces):
fill(palette[i % 12])
with begin_closed_shape():
vertices([m.vertices[v] for v in face])

#processing #python #py5 #shapely #trimesh #p3d #a35 #c66 #e94 #ed0 #9d5 #4d8 #2cb #0bc #09c #36b

Last updated 2 years ago

Jonathan Lenoir · @jonlen
229 followers · 317 posts · Server ecoevo.social
Juan Luis · @astrojuanlu
965 followers · 730 posts · Server social.juanlu.space

Noticias sobre Python científico de la semana, episodio 59 🐍⚙️🎄 Despedida 2022

En resumen: Nueva esperadísima versión de Shapely, versiones nuevas de conda y Polars, simulación basada en agentes con Python, mejoras notables de rendimiento en Python 3.11, ¡y nos vemos en 2023! astrojuanlu.substack.com/p/epi Apoya el noticiero suscribiéndote por correo 📫

Pasa unas felices fiestas y nos leemos en 2023 🍇❤️

#python #PyData #jupyter #polars #conda #shapely #noticieropythoncientifico

Last updated 2 years ago

Sean Gillies · @sgillies
301 followers · 118 posts · Server mastodon.social

Chuffed (love this word) to see the support for here.

#shapely

Last updated 2 years ago

Sean Gillies · @sgillies
379 followers · 344 posts · Server mastodon.social

Chuffed (love this word) to see the support for here.

#shapely

Last updated 2 years ago

Sean Gillies · @sgillies
290 followers · 113 posts · Server mastodon.social

Tomorrow is a big day for !

#python #gis #shapely

Last updated 2 years ago

Sean Gillies · @sgillies
379 followers · 344 posts · Server mastodon.social

Tomorrow is a big day for !

#python #gis #shapely

Last updated 2 years ago

Alexandre B A Villares · @villares
474 followers · 542 posts · Server mastodon.social