Index of /Research/Hartenstein/software
Copyright Albert Cardona @ 2005,2006
Released under the General Public License
Version: 2.0 auto
In unix and linux systems, open a terminal and type:
$ cd CurveMorphing/
$ CFLAGS=-O3 python setup.py build_ext
and a CurveMorphing.so will be generated under ./build/lib.your.OS.version/
For debugging purposes, the CurveMorphing_just_C.c file can be compiled as a standalone:
Setup the DEBUG_CURVEMORPHING within the file, and then
$ gcc -g -Wall -lm -std=c99 -pg CurveMorphing_just_C.c -o CurveMorphing_just_C.o
A profile of the time spent in each line and/or function can then be generated:
$ gprof -A CurveMorphing_just_C.o CurveMorphing_just_C.o.gmon > profile
and the corresponding 'profile' file read with any text editor.
Simply put the CurveMorphing.so in your $PYTHONPATH for Blender to find it.
In MacOSX, unless running Blender from a terminal some tweaking is necessary. Create the file
and type in it something SIMILAR to the text below and then logout/login.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
If you have the developer tools, you may create the file with the Properties\ Editor.app
When in Blender, open a text window, open the load_shapes_v1.4.4.py and push alt+p to launch the plugin.
Alternatively, just drop the plugin in your Blender scripts folder and refresh the plugins list. It will appear under 'Import'.
Move the mouse over the different buttons to see the tooltips. If in doubt just push 'Draw' to use default settings.