public DirectArrayFbxVector4 assign(DirectArrayFbxVector4 pArrayTemplate) { DirectArrayFbxVector4 ret = new DirectArrayFbxVector4(fbx_wrapperPINVOKE.DirectArrayFbxVector4_assign__SWIG_1(swigCPtr, DirectArrayFbxVector4.getCPtr(pArrayTemplate)), false); if (fbx_wrapperPINVOKE.SWIGPendingException.Pending) { throw fbx_wrapperPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
void PrintAttribute(FbxNodeAttribute attri) { Log.Info("attri " + attri.GetName()); Log.Info("attri type " + Enum.GetName(typeof(FbxNodeAttribute.EType), attri.GetAttributeType())); //attri.is if (attri.GetAttributeType() == FbxNodeAttribute.EType.eMesh) { Type t = attri.GetType(); Log.Info("type name " + t.Name); FbxMesh mesh = attri.GetNode().GetMesh(); //FbxMesh mesh = attri as FbxMesh; if (mesh == null) { Log.Error("convert mesh failed!"); return; } //FbxMesh mesh; //FbxLayerElementUV uv = mesh.GetElementUV(); //uv.GetDirectArray() FbxLayerElementNormal normal = mesh.GetElementNormal(); DirectArrayFbxVector4 array = normal.GetDirectArray(); Log.Info("normal count " + array.GetCount()); for (int i = 0; i < array.GetCount(); i++) { FbxVector4 v = array.GetAt(i); SWIGTYPE_p_double data = v.mData; DoubleArray d = DoubleArray.frompointer(data); PrintDoubleArray(d, 4); } } }
public DirectArrayFbxVector4 GetDirectArray() { DirectArrayFbxVector4 ret = new DirectArrayFbxVector4(fbx_wrapperPINVOKE.FbxLayerElementTemplateFbxVector4_GetDirectArray__SWIG_0(swigCPtr), false); return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DirectArrayFbxVector4 obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }