villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
villares,
@villares@pynews.com.br avatar

@py5coding looking carefully... not much development went on in the last 4 years. Even if it is a nice library, it could use more help, it might not be best for wider public use... Mac installation issues, it seems, limited to Python 3.9 I think, etc. on the other hand is very actively maintained.

villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
py5coding,
@py5coding@fosstodon.org avatar

@villares Neat! 's shape intersection tools are powerful. Also, how convenient that can convert shapely shapes to Py5Shape objects.

I was about to ask about that disable_style() call but now I see you need it because your converted shapes are cached & you want it to adapt a new stroke color. An alternative approach is to use the shape object's set_stroke() method, but you'd have to rewrite some stuff. I'm not saying one way is better than another, just that there's another approach

villares, to python Portuguese
@villares@pynews.com.br avatar
villares,
@villares@pynews.com.br avatar

@py5coding oh yeah, for arbitrary shapes, FTW! But my point-in-poly function using the ray-casting algorithm based on https://wrf.ecse.rpi.edu/Research/Short_Notes/pnpoly.html is quite nifty!

villares, to python Portuguese
@villares@ciberlandia.pt avatar

Ontem eu dei um tutorial e achei que não fui tão bem quanto eu gostaria :(
É bem básico o material, e mesmo tendo testado e me preparado, live coding, me atrapalhei muito achei...
Mas foi a primeira vez que fiz nesse tema do 3D... sei lá.... pelo menos gastei um bom tempo fazendo proselitismo de #SoftwareLivre :D ... se quiserem assistir: https://invidious.slipfox.xyz/watch?v=4ZQ4Af8eoZs
e o documento compartilhado com links para o código em https://hackmd.io/@villares/pensando-3D-python
#py5 #Python #trimesh #shapely

villares, to python Portuguese
@villares@pynews.com.br avatar
py5coding, to random
@py5coding@fosstodon.org avatar

The latest version of works with objects, implicitly converting them to Py5Shape objects & drawing them to the screen:

from shapely import Polygon

size(999,999)
stroke_weight(19)
p=Polygon([[9,9], [9,990], [990,990], [990,9]])
for _ in range(8):
shape(p:=p.buffer(-50, single_sided=True))

villares, (edited ) to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to python Portuguese
@villares@pynews.com.br avatar
villares, to Typography Portuguese
@villares@pynews.com.br avatar

back to some & ideas (aiming at a stencil as usual)

nobodyinperson, to python
@nobodyinperson@fosstodon.org avatar

Wow, (a powerful Python library for 2D shape manipulation) really doesn't want you to give it SVGs, does it? 🙄 It reads WKT and GeoJSON and apparently converting SVG to either of those is nothing there are many tools for apparently...

With Shapely, I can probably add SVG/2D shape import to - a feature that's sorely missing (along with 3D object import, yes...).

bkeegan, to random Spanish
@bkeegan@hci.social avatar

Observation:
spatial analytics tools (, , )—despite heroic efforts from their developers—are frequently broken and/or unusable because of fragile and complex dependencies.

Research Questions:

  1. Why has the open source spatial analytics ecosystem resisted greater centralization or coordination?

  2. What social and material factors shape(d) these relationships?

  3. How does popular proprietary software like ArcGIS distort open source alternatives?

allan,

@bkeegan @Dragons8mycat @geopandas I was a package maintainer before conda use became widespread. I provided windows binaries on PyPI for several Python releases, including 32- and 64-bit binaries for each supported Python release. Such a pain! And that was just part of the work I was doing for curating GIS development environments at the time. I can't stress it enough, tools like guix and nix really are a good option. Docker works too. Are students required to use their own computers?

villares, to python Portuguese
@villares@pynews.com.br avatar

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

villares, to python
@villares@ciberlandia.pt avatar
villares, to python Portuguese
@villares@ciberlandia.pt avatar

Today I learned that and merged in 2021 and that brought ufunc numpy capabilities to shapely.

https://shapely.readthedocs.io/en/stable/

villares,
@villares@ciberlandia.pt avatar

@TomLarrow yeah, I feel like access to is one of the great advantages!

But I struggled a lot with shapely docs as I started, I often think about making a zine about py5 + shapely.

I could use help and ideas from you!

Have you seen my py5-shapely-drawing helper? https://github.com/py5coding/py5generator/discussions/299#discussioncomment-6076471

villares,
@villares@ciberlandia.pt avatar
MirandaiinJupiter, to random
@MirandaiinJupiter@mas.to avatar

🌞❤️

StefsPicks,
@StefsPicks@mastodon.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • rosin
  • mdbf
  • khanakhh
  • ethstaker
  • osvaldo12
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • Youngstown
  • everett
  • slotface
  • kavyap
  • anitta
  • cubers
  • Durango
  • modclub
  • tacticalgear
  • ngwrru68w68
  • tester
  • GTA5RPClips
  • provamag3
  • cisconetworking
  • normalnudes
  • Leos
  • megavids
  • lostlight
  • All magazines