Error in SubDMesh.GetObjectMesh()

Error in SubDMesh.GetObjectMesh()

Anonymous
Not applicable
612 Views
1 Reply
Message 1 of 2

Error in SubDMesh.GetObjectMesh()

Anonymous
Not applicable

Hi

 

I have the following code to extract the geometry for Nurbs surfaces...

 

 

double size = nurbSurface.Bounds.Value.MaxPoint.DistanceTo(nurbSurface.Bounds.Value.MinPoint);

MeshFaceterData mfd = new MeshFaceterData();
mfd.FaceterMeshType = 2; // triangle
mfd.FaceterMaxEdgeLength = size * m_FaceterMaxEdgeLength;

MeshDataCollection md = SubDMesh.GetObjectMesh(nurbSurface, mfd);

 

 

The scene at https://www.dropbox.com/s/3d7dfed45yc1t2g/nurbs%20surface.dwg?dl=0 contains a Nurbs Surface, which when using the above code in AutoCAD2014 results in 52 vertices, and you can see the exported result on the left is correct.

 

autocad2014.png

 

However, in AutoCAD 2015, 2016 and 2017 the GetObjectMesh() call appears to be returning corrupted geometry - with only 46 vertices, and you can see the vertex indexes appear to be wrong.

 

autocad2015-16-17.png

 

This appears to be a serious bug in the GetObjectMesh() function.  As there a way around this pls?

 

Thanks

 

Paul

 

0 Likes
613 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

It's been 12 months since I posted this quite critical issue with AutoCAD 2015/16/17, and no response from Autodesk.  Can an Autodesk tech pls take a look at this?

 

Thanks

 

Paul

0 Likes