Python 3D Printing Guide: Make STL Files From Masks

  Рет қаралды 16,316

Mr. P Solver

Mr. P Solver

Күн бұрын

This video shows how to take a 3D numpy mask of 1's and 0's and turn it into a corresponding STL file that can be 3D printed or viewed using a 3D viewer on your computer.
NumPy Meshgrid Tutorial:
• The Python Function Yo...
Join the Discord Server:
/ discord

Пікірлер: 31
@cooperbarry2162
@cooperbarry2162 4 ай бұрын
Thank you for the great video! It was instrumental for me to 3D print antenna and array beam patterns. I found a way to smooth the stl instead of getting a "blocky" shape without having to resort to smaller dimensional spacing. Take the 3D mask array, cast it to single, and do a Gaussian blur (e.g., scipy.ndimage.filters.gaussian_filter). The larger the sigma value in the Gaussian blur, the smoother the surface will be but at cost of losing small and sharp features. (The Gaussian blur is low-pass filtering the image.) The marching cubes algorithm will then interpret values on [0,1] as a smooth surface, whereas if it were a bool mask on {0,1}, the marching cubes algorithm makes a blocky surface with sharp, 90-deg corners between pixels.
@tiddlywinks497
@tiddlywinks497 15 күн бұрын
Very nice! I use .stl files daily from material imaging, so it's cool to be able to understand the process now.
@fedyasemenov8236
@fedyasemenov8236 Жыл бұрын
Dude you are legit genius! Such a complex topic explained with such detail and clarity. The sign of a true master. Understanding this made me feel good about myself. And you are the one who made me understand it. Thank you so much 🙏. Please keeps it up!
@varunahlawat9013
@varunahlawat9013 Жыл бұрын
Ohhhhhhhhhh, I'm a beginner and physics enthusiast. This made me a fan
@Fuxx90
@Fuxx90 Жыл бұрын
i have a friend, who got a small fracture in his elbow. He printed out the scans of his elbow similarly to this method here. First time I actually found 3D printing kinda useful.
@rosealsendi2893
@rosealsendi2893 Жыл бұрын
Thanks for the great video! Really impressed with your python & physics content. I have a recommendation for a future python video; I think it'd be great if you make a plotly tutorial, because it's a very useful library and you've used it before in your physics videos. Also because your library tutorials include many realistic and useful examples especially for physicists.
@user-og8iy9cs4f
@user-og8iy9cs4f 11 ай бұрын
I was quite confused when going through Numpy-stl documentation... So a big thank you for this video! For those who wonder how to smooth the 3d object, modify as follows: x=y=np.linspace(-1,1,100) z=np.linspace(0,0.5,100) to x=y=np.linspace(-1,1,500) z=np.linspace(0,0.5,500) it's not rocket science but I hope it helps!
@TheBarryLight
@TheBarryLight Жыл бұрын
Now I know what I will do on the next weekend :D
@4001Jester
@4001Jester Жыл бұрын
Very cool topic! I’m impressed by how you present new (to me) topics and techniques in a clear and digestible fashion. Are you interested in making videos on finite element analysis, and do you think this video’s topic would be applicable to FEA?
@kleeishere8045
@kleeishere8045 Жыл бұрын
Great video loved it!
@goutham94
@goutham94 Жыл бұрын
Love your look 🔥
@Guillo1499
@Guillo1499 Жыл бұрын
This is very cool!
@igorbrenno1459
@igorbrenno1459 Жыл бұрын
I love you, brow. Thanksss...so much!
@noahmcallister3597
@noahmcallister3597 Жыл бұрын
Great video! Have you heard of the program called MeshLab? I'm fairly certain it has all the capabilities of what you are doing here as a GUI, as well as Python bindings. I've used the Python API for procedurally generating and decimating meshes for a research project; it was super easy to use. Thanks again!
@MrPSolver
@MrPSolver Жыл бұрын
Never heard of it, no! But I'll check it out. Sounds like the sort of stuff I might need!
@CleverFeetFootball
@CleverFeetFootball Жыл бұрын
thank you for this video
@user-oj5cn4rd7y
@user-oj5cn4rd7y Жыл бұрын
thanks!
@pile333
@pile333 Жыл бұрын
Cool.
@nicholasmetsavaht7663
@nicholasmetsavaht7663 Жыл бұрын
Great video! Can I have more than one function to define the object, like from 0
@mrmaple
@mrmaple Жыл бұрын
Thanks for this. I've done marching cubes and 3d printing in the past, but never with numpy! Great stuff. Do you ever use VTK / ITK for visualization and manipulation, or are they less relevant these days?
@MrPSolver
@MrPSolver Жыл бұрын
I use SimpleITK for some image processing/alignment in python ya!
@MinerMovie
@MinerMovie Жыл бұрын
This video was great, helped me a lot with a project I'm working on. One thing, it would be nice to have the code in the video somewhere
@CurrentElectrical
@CurrentElectrical Жыл бұрын
kzfaq.info/get/bejne/gZNolpCElsrUfIk.html
@stutyapatwal
@stutyapatwal Жыл бұрын
Bored from coding come here!!
@pile333
@pile333 Жыл бұрын
Have you physically printed it?
@Ddaddyyeet
@Ddaddyyeet Жыл бұрын
just bored man thanks for this video
@VictorLopez-qb7qr
@VictorLopez-qb7qr Жыл бұрын
First view👍
@russelldicken9930
@russelldicken9930 Жыл бұрын
you've not come across democratiz3D?
@MrPSolver
@MrPSolver Жыл бұрын
Thank you for sharing this! I just sent to my research group (I'm sure somebody will require something like this at some point)
@melvinwalker2692
@melvinwalker2692 Жыл бұрын
Fucking wizard
Using Image Recognition to DESTROY Fruit Ninja
10:08
CodeNoodles
Рет қаралды 603 М.
Modern Python logging
21:32
mCoding
Рет қаралды 165 М.
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 38 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 19 МЛН
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
You Should Be Using This For Work/Research in Python | OOP Tutorial
34:23
The Python Function You NEED For 2D Data
10:49
Mr. P Solver
Рет қаралды 36 М.
How I make science animations
43:39
Artem Kirsanov
Рет қаралды 705 М.
Solve Schrödinger Equation in Seconds with Python & GPU
33:23
Mr. P Solver
Рет қаралды 42 М.
The Secrets of Photorealism
24:38
Blender
Рет қаралды 816 М.
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 946 М.
Write an STL (ASCII) File in PYTHON || TUTORIAL
10:10
Prot04m
Рет қаралды 8 М.
Color Spaces: Explained from the Ground Up -  Video Tech Explained
16:24
Video Tech Explained
Рет қаралды 53 М.
Python Libraries Be Like...
2:30
Mr. P Solver
Рет қаралды 96 М.
How to: Monte Carlo Simulation in Python (Introduction)
27:23
Mr. P Solver
Рет қаралды 59 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 9 МЛН
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 2 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 62 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 4,4 МЛН
Telefonu Parçaladım!😱
0:16
Safak Novruz
Рет қаралды 25 МЛН
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 9 МЛН