1
$\begingroup$

I have been searching around the web for python mesh processing libraries that can do "simple" mesh editing functions like edge beveling, or face extrusion. There's not really anything out there that I can find, that can do what blender does.

So I'm wondering, is it even feasible to build/compile/extract the bmesh system to work standalone? I've been digging around in Blender's github, the amount of files related to bmesh is staggering..

Failing that, I'm also wondering if it would just make more sense to include a full blender install folder and simply append it to python path in the correct places and use the bmesh python module that way..

Not sure if bmesh requires blender to be up and running to function or not.

$\endgroup$
2
2
$\begingroup$

It's not feasible in the sense you're thinking of. Blender, including the bmesh implementation, is mostly written in C++. There isn't a bmesh python implementation, only a bmesh python interface to the C++ code.

You would have to extract the bmesh code, make it into a stand alone C++ module, and provide C++ runtime support in your python system.

$\endgroup$
1
  • $\begingroup$ thanks for your input! $\endgroup$ Aug 20 '21 at 1:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.