[Bf-committers] C++ DLL in blender modifier

Lukas Gersthofer lukasgersthofer at gmail.com
Sat Jun 11 22:08:33 CEST 2016


Dear Blender Dev community,

I encountered a problem while implementing a new modifier. The modifier
aims at optimizing the physical properties (center of mass, moments of
inertia, etc.) of a shape. After 3D printing the model is able to stand in
an upright position, rotate around a given axis, etc. (see
https://www.cg.tuwien.ac.at/research/publications/2015/musialski-2015-souos/musialski-2015-souos-preprint.pdf
)
The implementation of the algorithm is in C++ and I created a DLL which has
a C API as well. Now I wanted to integrate the algorithm into blender as a
modifier. The modifier is almost done but the API call doesn't work
properly. There are no errors but the return values are random bullshit.
The calling convention I use is __declspec.

If you need further insight into the code, I can share my repository with
you. The algorithm is going to be open source as soon as all features are
implemented and are working properly.

I would really appreciate a helpful anwer cause I'm really struggling with
this problem and because it is my bachelor thesis I wanted to try
everything to finish it!

-- 
mit freundlichen Grüßen / with kind regards

Lukas Gersthofer
Vienna University of Technology


More information about the Bf-committers mailing list