[PythonCAD] Automatic entity splitting now in PythonCAD

Art Haas ahaas at airmail.net
Thu May 11 00:59:38 CEST 2006


On Wed, May 10, 2006 at 01:56:32PM -0500, Art Haas wrote:
> On Tue, May 09, 2006 at 03:06:34PM -0500, Art Haas wrote:
> > Hi.
> > 
> > This is a feature I've wanted PythonCAD to have since the project began.
> > Draw a segment, and then draw a second segment where one of the
> > endpoints is somewhere on the first segment. The first segment will
> > be replaced by two segments sharing the endpoint of the newly created
> > segments, so now the drawing has three segments. Similarly, adding a
> > new point to a drawing which lands on a Circle will split it into an
> > Arc, a new point on an Arc splits it into two Arcs, and a new point
> > on a Polyline just gets added to the Polyline point list. The autosplit
> > feature can be turned on and off via the Preferences dialog if you
> > don't want to use this new feature.
> 
> The addition of autosplitting exposed a latent bug in redoing the
> addition of a deleted entity to a Layer. This bug is now squashed, and
> autosplit operations are now much more well behaved with regards
> to undo/redo abilities.

The autosplitting code also cause a few hiccups with the recently
reworked entity splitting code - I think I've fixed those problems as
well. Do an 'svn update' to get the changes.

Art
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822


More information about the PythonCAD mailing list