/// <summary>Cooks a tetrahedral mesh to a SoftBodyMesh. </summary> /// <param name="desc">The soft body 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 NxCookSoftBodyMesh(NxSoftBodyMeshDesc desc, NxStream stream) { if (doSetFunctionPointers) { throw new System.NotSupportedException("Cannot call abstract base member"); } return(NxCookingInterface_NxCookSoftBodyMesh_INVOKE(ClassPointer, doSetFunctionPointers, (desc != null ? desc.ClassPointer : NullRef), (stream != null ? stream.ClassPointer : NullRef))); }
/// <summary>Saves the soft body mesh descriptor. A soft body mesh is created via the cooker. The cooker potentially changes the order of the arrays references by the pointers vertices 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 NxSoftBodyDesc, 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(NxSoftBodyMeshDesc desc) { if (doSetFunctionPointers) { throw new System.NotSupportedException("Cannot call abstract base member"); } return(NxSoftBodyMesh_saveToDesc_INVOKE(ClassPointer, doSetFunctionPointers, (desc != null ? desc.ClassPointer : NullRef))); }
private bool NxCookSoftBodyMesh_virtual(IntPtr desc, IntPtr stream) { return(NxCookSoftBodyMesh(NxSoftBodyMeshDesc.GetClass(desc), NxStream.GetClass(stream))); }
private bool saveToDesc_virtual(IntPtr desc) { return(saveToDesc(NxSoftBodyMeshDesc.GetClass(desc))); }