Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface DELIMfgPrismaticReworkArea
Interface to manage a user rework feature.
Role: CATIMfgPrismaticReworkArea has methods to manage a user rework feature.
| public virtual Compute( | ) |
| public virtual GetPrismaticMachiningArea( | oManufacturingArea) |
| public virtual GetResultingContours( | oContourType, | |
| oNbOfPointsByContour, | ||
| oListOfPoints, | ||
| oPointType, | ||
| oHardness) |
int index = 1;
CATMathPoint2D * StartPoint = oListOfPoints[index];
CATMathPoint2D * MiddlePoint = NULL;
CATMathPoint2D * EndPoint = NULL;
int IsSoft = oHardness[index];
index++;
while (index <= oNbOfPointsByContour[1])
{
if (oListOfPoints[index] == 1) // it's not the middle of an arc of a circle, so it is the end of a segment
{
EndPoint = oListOfPoints[index];
// creation of the segment [StartPoint/EndPoint] with Hardness mode = IsSoft
}
else // circle
{
MiddlePoint = oListOfPoints[index];
index++;
if (index > oNbOfPointsByContour[1])
{
index = 1;
// if this point is the center of a circle, then there's an error
if (oListOfPoints[index] == 0) {ERROR}
}
EndPoint = oListOfPoints[index];
// creation of the circle [StartPoint/MiddlePoint/EndPoint] with Hardness mode = IsSoft
}
StartPoint = EndPoint;
MiddlePoint = NULL;
EndPoint = NULL;
IsSoft = oHardness[index];
if(index == 1)
{
index = oNbOfPointsByContour[1] + 1; // to exit the while loop
}
} // end while loop
| public virtual SetPrismaticMachiningArea( | iManufacturingArea) |
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.