Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5785

Bug - rs.SimplifyCurve() with flag errors out

$
0
0

@Helvetosaur wrote:

If I run this code:

import rhinoscriptsyntax as rs
crvID=rs.GetObject("Select curve to simplify",4,preselect=True)
rs.SimplifyCurve(crvID,4)  #problem is with any flag, not just 4

it errors out with the following message:

unsupported operand type(s) for -: 'CurveSimplifyOptions' and 'CurveSimplifyOptions'

Seems like the following is not working in curve.py:

_flags = _flags - Rhino.Geometry.CurveSimplifyOptions.RebuildArcs

If no flag is set, it runs OK. Checked in the V6 WIP and same thing. @Alain any clues?

Thanks, --Mitch

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5785

Trending Articles