Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / TriangulateInPlace assertion failed
  RSS 2.0 ATOM  

TriangulateInPlace assertion failed
Rate this thread
 
62851
 
Permlink of this thread  
avatar
  • JCAA
  • Posted: 15 December 2011 01:42 AM
  • Total Posts: 20
  • Joined: 01 April 2010 05:06 PM

Good morning.

i used fbx sdk to create an importer, it works fine but, recently i exported a teapot mesh from 3ds Max, and when trying go import in my program it crash with an assertion failed like the attachment.

This is the code i used:

void TriangulateRecursive(KFbxNodepNode)
{
 KFbxNodeAttribute
lNodeAttribute pNode->GetNodeAttribute();

 if (
lNodeAttribute)
 
{
 
if (lNodeAttribute->GetAttributeType() == KFbxNodeAttribute::eMESH ||
 
lNodeAttribute->GetAttributeType() == KFbxNodeAttribute::eNURB ||
 
lNodeAttribute->GetAttributeType() == KFbxNodeAttribute::eNURBS_SURFACE ||
 
lNodeAttribute->GetAttributeType() == KFbxNodeAttribute::ePATCH)
 
{
 KFbxGeometryConverter lConverter
(pNode->GetFbxSdkManager());
 
lConverter.TriangulateInPlace(pNode);
 
}
 }

 
const int lChildCount pNode->GetChildCount();
 for (
int lChildIndex 0lChildIndex lChildCount; ++lChildIndex)
 
{
 TriangulateRecursive
(pNode->GetChild(lChildIndex));
 
}
}

Why may be this?



Attachment Attachment
Replies: 1
/userdata/avatar/vx3501hqr_small.jpg

Hello JACC,
Please try to turn off the assertion by the environment variable mentioned in this post and see if that solve the crash:
http://area.autodesk.com/for...error-messages-to-stdout/

Author: Jiayang Xu

Replied: 18 December 2011 09:16 PM