Freestyle Python API improvements - part 8.

* Proper handling of keyword arguments was implemented in Operators and ContextFunctions,
as well as in methods of Interface0D, Interface1D, Iterator, their subclasses, Noise and
IntegrationType.

* Operators' methods and functions in the ContextFunctions module were renamed from
CamelCase to lower cases + underscores.  Style modules were updated accordingly.

* Additional code clean-up was also made.
This commit is contained in:
Tamito Kajiyama
2013-02-24 02:39:38 +00:00
parent d38a335d47
commit 3df023ae82
60 changed files with 808 additions and 791 deletions

View File

@@ -1,4 +1,5 @@
from freestyle_init import *
from Freestyle import ContextFunctions as CF
from PredicatesU0D import *
from PredicatesB1D import *
from PredicatesU1D import *
@@ -1192,7 +1193,7 @@ class pyDummyShader(StrokeShader):
class pyDebugShader(StrokeShader):
def shade(self, stroke):
fe = GetSelectedFEdgeCF()
fe = CF.get_selected_fedge()
id1 = fe.first_svertex.id
id2 = fe.second_svertex.id
#print(id1.first, id1.second)