Index of /Research/Hartenstein/software

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -  
[   ]CurveMorphing-macosx-10.4-ppc-py2.3.so03-Jul-2012 23:10 86K 
[   ]CurveMorphing-ubuntu-6.06-i686-py2.4.so03-Jul-2012 23:10 78K 
[   ]CurveMorphing-ubuntu-6.06-ppc-py2.3.so03-Jul-2012 23:10 104K 
[TXT]CurveMorphing.c03-Jul-2012 23:10 25K 
[TXT]CurveMorphing_just_C.c03-Jul-2012 23:10 94K 
[DIR]imagej/03-Jul-2012 23:10 -  
[   ]load_shapes_v1.4.4.py03-Jul-2012 23:10 84K 
[   ]setup.py03-Jul-2012 23:10 401  
[DIR]temp/03-Jul-2012 23:10 -  
[TXT]utilities.c03-Jul-2012 23:10 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!