60001947 cmdDivide command added

Article 60001947
Type Wish
Product Engine
Date Added 4/25/2013 12:00:00 AM
Fixed (4/25/2013 12:00:00 AM)
Submitted by Peter Hanios

Summary

Is it possible to create a Divide command that will automatically return as a vdPolyline with the points that vdCurve.Divide returns

Solution

Added in 6025
The command asks for a vdCurve object (vdCircle, vdArc, vdEllipse, vdLine, vdPolyline, vdRect, vdLine) and the number of segments and returns a new object as vdPolyline with the same number of segments (integer) as asked with the points the Divide method returned.

Note: If the vdCurve is closed (vdCircle, vdEllipse, vdRect, closed polyline) then the new polyline has Flag = VdConstPlineFlag.PlFlagCLOSE and the last vertex is removed.

Send comments on this topic.