[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [759] trunk/py/scripts/addons/ curve_simplify.py: removed the curvature simplification method ( only the visibility, code is still there).
Florian Meyer
florianfelix at web.de
Mon Jul 5 15:58:23 CEST 2010
Revision: 759
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=759
Author: testscreenings
Date: 2010-07-05 15:58:22 +0200 (Mon, 05 Jul 2010)
Log Message:
-----------
removed the curvature simplification method (only the visibility, code is still there).
Needs more research until it gets at least as good as the distance based method
Modified Paths:
--------------
trunk/py/scripts/addons/curve_simplify.py
Modified: trunk/py/scripts/addons/curve_simplify.py
===================================================================
--- trunk/py/scripts/addons/curve_simplify.py 2010-07-04 13:25:53 UTC (rev 758)
+++ trunk/py/scripts/addons/curve_simplify.py 2010-07-05 13:58:22 UTC (rev 759)
@@ -285,7 +285,7 @@
scene.objects.link(newCurve)
newCurve.selected = True
scene.objects.active = newCurve
- newCurve.matrix = obj.matrix_world
+ newCurve.matrix_world = obj.matrix_world
# set bezierhandles to auto
setBezierHandles(newCurve)
@@ -391,6 +391,8 @@
default=0.0, precision=3)
fcurves = []
+ ''' Remove curvature mode as long as it isnn't significantly improved
+
def draw(self, context):
props = self.properties
layout = self.layout
@@ -410,7 +412,14 @@
box.label('distance', icon='ARROW_LEFTRIGHT')
box.prop(props, 'dis_error', expand=True)
col = layout.column()
-
+ '''
+
+ def draw(self, context):
+ props = self.properties
+ layout = self.layout
+ col = layout.column()
+ col.prop(props, 'error', expand=True)
+
## Check for animdata
def poll(self, context):
obj = context.active_object
@@ -497,6 +506,8 @@
description="keep short splines (less then 7 points)",
default=True)
+ ''' Remove curvature mode as long as it isnn't significantly improved
+
def draw(self, context):
props = self.properties
layout = self.layout
@@ -521,7 +532,19 @@
if props.output == 'NURBS':
col.prop(props, 'degreeOut', expand=True)
col.prop(props, 'keepShort', expand=True)
-
+ '''
+
+ def draw(self, context):
+ props = self.properties
+ layout = self.layout
+ col = layout.column()
+ col.prop(props, 'error', expand=True)
+ col.prop(props, 'output', text='Output', icon='OUTLINER_OB_CURVE')
+ if props.output == 'NURBS':
+ col.prop(props, 'degreeOut', expand=True)
+ col.prop(props, 'keepShort', expand=True)
+
+
## Check for curve
def poll(self, context):
obj = context.active_object
More information about the Bf-extensions-cvs
mailing list