All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATIMfgPrismaticReworkArea
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIMfgPrismaticReworkArea
Interface to manage a user rework feature.
Role: CATIMfgPrismaticReworkArea has methods to manage a user rework feature.
public virtual HRESULT Compute( | )= 0 |
public virtual HRESULT GetPrismaticMachiningArea( | CATBaseUnknown_var& | oManufacturingArea) = 0 |
public virtual HRESULT GetResultingContours( | CATListOfInt& | oContourType, |
CATListOfInt& | oNbOfPointsByContour, | |
CATLISTP(CATMathPoint2D)& | oListOfPoints, | |
CATListOfInt& | oPointType, | |
CATListOfInt& | oHardness) = 0 |
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 HRESULT SetPrismaticMachiningArea( | CATBaseUnknown_var& | iManufacturingArea) = 0 |
Copyright © 2003, Dassault Systèmes. All rights reserved.