Which Resources Can Help Me Manipulate 3D Files Using Python or Javascript?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
Avatrin
Messages
242
Reaction score
6
Hi

I am trying to learn how to manipulate 3D files like obj or stl using programming (I primarily use Python, but also know Javascript). Which resources can I use to learn this?
 
on Phys.org
Avatrin said:
I am trying to learn how to manipulate 3D files like obj or stl using programming (I primarily use Python, but also know Javascript). Which resources can I use to learn this?
There's not really such a thing as a 3D file. A computer file is basically a one-dimensional sequence of bytes. A program can be written that treats the data in a file as three dimensional, but logic has to be built into the program to do this.

Can you be more specific about what you're asking?
 
There are a number of Python packages available for working with 3D files, for example numpy-stl
 
Well, I am looking for resources to learn to make, for instance, algorithmic art. So, I just need to learn to manipulate 3D objects and save them in those files..

One of the things I am considering is projecting a 2D image onto a 3D surface and do something on that surface depending upon what was on that image.

I am looking for online tutorials and books.