SetPartHole

Name

 

            SetPartHole

 

When to use it

 

            After setting the number of holes using SetPart method and anytime before the starting the optimization.

 

Prototype

 

SetPartHole(

            IndexPart: long /*[in]*/,

            IndexHole: long /*[in]*/,

            Type: long/*[in]*/,

            NumberOfVertices: long/*[in]*/,

            CenterX: double/*[in]*/,

            CenterY: double/*[in]*/,

            Radius : double/*[in]*/,

            AllowFillHole: long/*[in]*/,

            UserDefinedData: long /*[in]*/

);

 

Explanations

 

            With this method you may set the dimensions of each hole of the part to be cut.

            The number of holes is set by the SetPart method.

            The dimensions of each hole can be get using the GetPartHole method.

 

Parameters

 

            IndexPart - the index of the piece whose information are set. This number is in range [0...NumberOfParts - 1].

            IndexHole - the index of the hole whose information are set.

            Type: 0 for polygons and 1 for circles.

            NumberOfVertices - number of vertices of the polygon. The vertices must be given in the counter-clock way using SetPartHoleVertex method.

            CenterX, CenterY: center of the circle.

            Radius : radius of the circle.

            AllowFillHole: set to 1 if the hole can be filled with other parts. 0 otherwise.

            UserDefinedData- an user defined value.

 

Next to call

 

            SetPartHoleVertex, SetPartHoleArc.

 

See also

 

            GetPartHole, NumberOfParts, GetPart, RotationCenter, SetPartHoleVertex, SetPartHoleArc.