hackmd.io/@villares/pensando-3D-python

Pensando em 3D com Python: primeiros passos (gravação)

com Alexandre B A Villares - abav.lugaralgum.com/links

Apresentação

Ambientes de trabalho

  • RECOMENDADO > Instruções para instalar o Thonny + py5

  • ALTERNATIVA > link para um notebook Google Colab para começar

  • Thonny IDE (vem com Python 3) - o que eu uso no meu dia a dia

    • biblioteca py5 - requer um JDK, é legal de usar com o plugin thonny-py5mode no Thonny
    • trimesh - para trabalhar com malhas 3D, operações booleanas, STL
      • No Thonny, Tools > Open System Shell
        pip3 install trimesh[all]
    • shapely - permite operações com polígonos
      • Suas classes são base para geometrias nos GeoDataFrames!
      • Instalado junto com o trimesh, com opção [all]
  • Jypyter Notebooks

    • São documentos que podem misturar código, texto e imagens. Podem ser editados e executados em um Python local, como Jupyter lab, ou online, em plataformas como MyBinder.org
  • Google Colab

    • Ferramenta online do Google para documentos muito parecidos com um Jypyter Notebooks. Depende dos computadores do Google, uma Megacorp do Mal™, não rola usar o py5 direito. Mas podemos usar para explorar trimesh!

Dúvidas?


Exemplos

frutas_delicosas = ['uva','banana','kiwi'] frutas_delicosas.append('carambola') for f in frutas_delicosas: print("Eu gosto de " + f)

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

https://github.com/villares/sketch-a-day/blob/main/2024/sketch_2024_02_11/sketch_2024_02_11.py


Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

https://github.com/villares/sketch-a-day/blob/main/2023/sketch_2023_08_21/sketch_2023_08_21.py


Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

https://github.com/villares/sketch-a-day/blob/main/2023/sketch_2023_12_29/sketch_2023_12_29.py


Feedback