Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have a valid Face from a SurfaceBody, and the call to face.CalculateFacetsAndTextureMap throws the following exception....
[System.Runtime.InteropServices.COMException] = {"Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))"}
The code I'm using is:
foreach (Face face in surfaceBody.Faces)
{
double tolerance = 0.1;
int vertexCount = 0;
int facetCount = 0;
double[] vertexCoordinates;
double[] normalVectors;
int[] vertexIndexes;
double[] textureCoordinates;
face.CalculateFacetsAndTextureMap(tolerance, out vertexCount, out facetCount, out vertexCoordinates, out normalVectors, out vertexIndexes, out textureCoordinates);
}Can anyone guide to me what I am doing wrong pls?
Thanks
Solved! Go to Solution.
