DrillShape AddPointAndShootPoint

Adds a Point and Shoot point to the drill shape. To add a Point and Shoot point first add a Point and Shoot drill shape pattern to the drill shape.

Overloads

public void AddPointAndShootPoint(Point3D point)
public void AddPointAndShootPoint(float x, float y, float z)

 

Parameters

Point3D point A reference to a Point3D class
float x X coordinate of the point
float y Y coordinate of the point
float z Z coordinate of the point

 

Exceptions

InvalidOperationException A Point and Shoot drilling patterns should be defined before adding a Point and Shoot point

 

Example

Copy
bool pulsemode = false;
PointAndShootDrillShapePattern pointandShootPattern = new PointAndShootDrillShapePattern();
pointandShootPattern.UsePulseBurstMode = pulsemode;

// Create a Drill Pulse
DrillPulse pulse1 = new DrillPulse(2.5f, 2.5f, 5);

pointandShootPattern.AddDrillPulse(pulse1);

//Create a drill shape.
DrillShape drillShape = new DrillShape();
drillShape.SetPattern(pointandShootPattern);

//Add drill Points to the drill shape
drillShape.AddPointAndShootPoint(0, 0, 0);
drillShape.AddPointAndShootPoint(10, 10, 0);
drillShape.AddPointAndShootPoint(20, 20, 0);

// Add the Drill shape to vector image
vectorImage.AddDrill(drillShape);