Exemplo n.º 1
0
 /// <summary>Saves the cloth descriptor. A cloth mesh is created via the cooker. The cooker potentially changes the order of the arrays references by the pointers points and triangles. Since saveToDesc returns the data of the cooked mesh, this data might differ from the originally provided data. Note that this is in contrast to the meshData member of NxClothDesc, which is guaranteed to provide data in the same order as that used to create the mesh. </summary>
 /// <param name="desc">The descriptor used to retrieve the state of the object. </param>
 public virtual bool saveToDesc(NxClothMeshDesc desc)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxClothMesh_saveToDesc_INVOKE(ClassPointer, doSetFunctionPointers, (desc != null ? desc.ClassPointer : NullRef)));
 }
Exemplo n.º 2
0
 /// <summary>Cooks a triangle mesh to a ClothMesh. </summary>
 /// <param name="desc">The cloth mesh descriptor on which the generation of the cooked mesh depends. </param>
 /// <param name="stream">The stream the cooked mesh is written to. </param>
 public virtual bool NxCookClothMesh(NxClothMeshDesc desc, NxStream stream)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxCookingInterface_NxCookClothMesh_INVOKE(ClassPointer, doSetFunctionPointers, (desc != null ? desc.ClassPointer : NullRef), (stream != null ? stream.ClassPointer : NullRef)));
 }
Exemplo n.º 3
0
 private bool saveToDesc_virtual(IntPtr desc)
 {
     return(saveToDesc(NxClothMeshDesc.GetClass(desc)));
 }
Exemplo n.º 4
0
 private bool NxCookClothMesh_virtual(IntPtr desc, IntPtr stream)
 {
     return(NxCookClothMesh(NxClothMeshDesc.GetClass(desc), NxStream.GetClass(stream)));
 }