Index of /Research/Hartenstein/software
Name Last modified Size Description
Parent Directory -
CurveMorphing-macosx..> 25-Jul-2006 12:13 86K
CurveMorphing-ubuntu..> 24-Jul-2006 17:56 78K
CurveMorphing-ubuntu..> 25-Jul-2006 12:06 104K
CurveMorphing.c 24-Jul-2006 17:32 25K
CurveMorphing_just_C.c 24-Jul-2006 17:55 94K
imagej/ 11-Jan-2007 17:57 -
load_shapes_v1.4.4.py 15-Jul-2006 17:29 84K
setup.py 15-Jun-2006 10:24 401
temp/ 06-Feb-2007 19:11 -
utilities.c 15-Jun-2006 17:39 4.9K
CurveMorphing Module
====================
Copyright Albert Cardona @ 2005,2006
Released under the General Public License
Version: 2.0 auto
Date: 2006-07-25
Compile:
-------
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.
Run:
----
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
~/.MacOSX/environment.plist
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">
<plist version="1.0">
<dict>
<key>PYTHONPATH</key>
<string>/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3:/Users/albert/CurveMorphing-1.0-src/build/lib.darwin-7.9.0-Power_Macintosh-2.3</string>
</dict>
</plist>
If you have the developer tools, you may create the file with the Properties\ Editor.app
Usage:
------
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.
Have fun!