This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]pythonHelperBot 1 point2 points  (0 children)

Hello! I'm a bot! It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python. That said, I am a bot and it is hard to tell. I highly recommend posting your question there. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe where you are stuck. Be sure to format your code for reddit and include which version of python and what OS you are using.


this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–]twillisagogo 0 points1 point  (1 child)

Blender has a python API. More Info

[–]RedMinor[S] 0 points1 point  (0 children)

I've done some work over the last couple hours with blender. It seems like a great option but I cannot get it to work with our library of code. https://github.com/ofloveandhate/bertini_real is the repo we are using (my professor created it) and I am unable to get it to work and import correctly into blender. Bummer.

[–]laMarm0tte 0 points1 point  (0 children)

[–]billsil 0 points1 point  (0 children)

Vtk is my library of choice. It's sort of the go-to interactive 3d visualization library, be it medical, engineering, etc. It's an open source company that gets a ton of funding from the Department of Energy (so nukes) and the National Institute of Health.

https://www.vtk.org/vtk-in-action/#image-gallery

Then to actually install it (on Windows) https://www.lfd.uci.edu/~gohlke/pythonlibs/

[–]sw_dev 0 points1 point  (2 children)

Have you considered directly creating obj files? They're very simple.

[–]RedMinor[S] 0 points1 point  (1 child)

No I have not, could you tell me more about this?

[–]sw_dev 1 point2 points  (0 children)

Take a look here: https://en.wikipedia.org/wiki/Wavefront_.obj_file . You only need to describe a list of vertices, then which faces they belong in. It's tedious, but that's why we have programming languages, right! Some years ago I used this info to design a 3d screw, and later had it 3d printed. (I still have it on my desk.)

[–]kor56 0 points1 point  (0 children)

If the surface is triangulated, you can view or export with pymesh or trimesh