70002336 Wish there was a way to split a vdCurve into subentities using a point

Article 70002336
Type Wish
Product Engine
Version 1003
Date Added 3/31/2023 12:00:00 AM
Fixed 10.1004.0.2 (3/31/2023 12:00:00 AM)
Submitted by Peter Chanios

Summary

Wish there was a way to split a vdCurve into subentities using a point

Solution

In version 1004 we added a new virtual method to the vdCurve object like below

summary> Splits the Curve into two newlly created curves devided by the passed point.
param name="point">a gPoint representing the dividing point in WCS.
param name="newEntities">A new vdSelection where the new entities will be added.
returns>True if a split occured.
public virtual bool Split(gPoint point,vdSelection newEntities)

A vdLine will add two vdLines to the newEntities collection.
A vdCircle will add an Arc(full circle Arc with start and endpoint the passed point) to the newEntities collection.
A vdArc will add two vdArc to the newEntities collection.
A vdEllipse will add two vdEllipses to the newEntities collection.If the Ellipse is closed and the startangle is 0.0 then one ellipse is returned having start=end angle the passed point.
A vdPolyline will add two vdPolylines to the newEntities collection (StartPoint -> PassedPoint , PassedPoint -> EndPoint).
A vdRect will add two vdPolylines to the newEntities collection InsertionPoint -> PassedPoint , PassedPoint -> InsertionPoint).

Send comments on this topic.