THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/02/2003 at 21:18, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.012
Platform: Mac ;
Language(s) : C.O.F.F.E.E ; C++ ;
---------
Does Cinema 4D API have support for generating or accessing normals on polys/verts?
here's some code snippets that i'm trying to adapt to the Cinema4D API
// theFaces[theFaceIndex].m_MaterialID = reinterpret_cast<long>( polyObject->GetFaceMaterial( theFaceIndex ) );
theFaces[theFaceIndex].m_Vert1.m_PositionIndex = polyMeshArray[ theFaceIndex ].a;
theNormalIndex = polyMeshArray[ theFaceIndex ].a;
// theFaces[theFaceIndex].m_Norm1.m_X = polyObject->normals[theNormalIndex].x;
// theFaces[theFaceIndex].m_Norm1.m_Y = -polyObject->normals[theNormalIndex].y;
// theFaces[theFaceIndex].m_Norm1.m_Z = polyObject->normals[theNormalIndex].z;
//Assign Vert1
theFaces[theFaceIndex].m_Vert3.m_PositionIndex = polyMeshArray[ theFaceIndex ].b;
theNormalIndex = polyMeshArray[ theFaceIndex ].b;
// theFaces[theFaceIndex].m_Norm3.m_X = polyObject->normals[theNormalIndex].x;
// theFaces[theFaceIndex].m_Norm3.m_Y = -polyObject->normals[theNormalIndex].y;
// theFaces[theFaceIndex].m_Norm3.m_Z = polyObject->normals[theNormalIndex].z;
theFaces[theFaceIndex].m_Vert2.m_PositionIndex = polyMeshArray[ theFaceIndex ].c;
theNormalIndex = polyMeshArray[ theFaceIndex ].c;
// theFaces[theFaceIndex].m_Norm2.m_X = polyObject->normals[theNormalIndex].x;
// theFaces[theFaceIndex].m_Norm2.m_Y = -polyObject->normals[theNormalIndex].y;
// theFaces[theFaceIndex].m_Norm2.m_Z = polyObject->normals[theNormalIndex].z;