Beispiel #1
0
 /// <summary>Creates a PMap from a triangle mesh. </summary>
 /// <param name="pmap">Used to store details of the created PMap. </param>
 /// <param name="mesh">Mesh to create PMap from. </param>
 /// <param name="density">The density(resolution) of the PMap. </param>
 /// <param name="outputStream">User supplied interface for reporting errors and displaying messages(see NxUserOutputStream)</param>
 public virtual bool NxCreatePMap(NxPMap pmap, NxTriangleMesh mesh, uint density)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxCookingInterface_NxCreatePMap_1_INVOKE(ClassPointer, doSetFunctionPointers, (pmap != null ? pmap.ClassPointer : NullRef), (mesh != null ? mesh.ClassPointer : NullRef), density));
 }
Beispiel #2
0
 /// <summary>Retrieves the triangle mesh data associated with this instance. </summary>
 public virtual NxTriangleMesh getTriangleMesh()
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxTriangleMesh.GetClass(NxTriangleMeshShape_getTriangleMesh_INVOKE(ClassPointer, doSetFunctionPointers)));
 }
Beispiel #3
0
 /// <summary>Destroys the instance passed. </summary>
 /// <param name="mesh">Triangle mesh to release.</param>
 public virtual void releaseTriangleMesh(NxTriangleMesh mesh)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     NxPhysicsSDK_releaseTriangleMesh_INVOKE(ClassPointer, doSetFunctionPointers, (mesh != null ? mesh.ClassPointer : NullRef));
 }
Beispiel #4
0
 /// <summary>Creates a triangle mesh object. </summary>
 /// <param name="stream">The triangle mesh stream. </param>
 public virtual NxTriangleMesh createTriangleMesh(NxStream stream)
 {
     if (doSetFunctionPointers)
     {
         throw new System.NotSupportedException("Cannot call abstract base member");
     }
     return(NxTriangleMesh.GetClass(NxPhysicsSDK_createTriangleMesh_INVOKE(ClassPointer, doSetFunctionPointers, (stream != null ? stream.ClassPointer : NullRef))));
 }
Beispiel #5
0
 private bool NxCreatePMap_virtual(IntPtr pmap, IntPtr mesh, uint density)
 {
     return(NxCreatePMap(NxPMap.GetClass(pmap), NxTriangleMesh.GetClass(mesh), density));
 }
Beispiel #6
0
 private bool NxCreatePMap_virtual(IntPtr pmap, IntPtr mesh, uint density, IntPtr outputStream)
 {
     return(NxCreatePMap(NxPMap.GetClass(pmap), NxTriangleMesh.GetClass(mesh), density, NxUserOutputStream.GetClass(outputStream)));
 }
Beispiel #7
0
 private void releaseTriangleMesh_virtual(IntPtr mesh)
 {
     releaseTriangleMesh(NxTriangleMesh.GetClass(mesh));
 }