DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
#ifndef CUSTOM_COPY_H #define CUSTOM_COPY_H #include "NxSimpleTypes.h" #include "NxArray.h" #include "NxVec3.h" #include "NxQuat.h" #include "NxMat33.h" #include "NxMat34.h" #include "NxBounds3.h" #include
#include
#include
#include
#include
namespace NXU { class NxConvexMeshDesc; class NxTriangleMeshDesc; class NxMaterialDesc; class NxShapeDesc; class NxActorDesc; class NxJointDesc; class NxFluidEmitterDesc; class NxSceneDesc; class NxClothDesc; class NxFluidDesc; class NxSpringAndDamperEffectorDesc; class NxForceFieldDesc; class NxForceFieldShapeDesc; class NxForceFieldShapeGroupDesc; class NxConvexForceFieldShapeDesc; class NxuPhysicsCollection; class NxSceneInstanceDesc; class NxSimpleTriangleMesh; class NxConvexShapeDesc; class NxHeightFieldDesc; class NxClothMeshDesc; class NxTriangleMeshShapeDesc; class NxHeightFieldShapeDesc; class NxParticleData; class NxSoftBodyMeshDesc; class NxSoftBodyDesc; class CustomCopy { public: CustomCopy(NxuPhysicsCollection *c=0,NxSceneDesc *s=0) { mCurrentCollection = c; mCurrentScene = s; } #if NX_USE_SOFTBODY_API void customCopyFrom(NxSoftBodyMeshDesc &cdesc,const ::NxSoftBodyMeshDesc &desc); void customCopyTo(::NxSoftBodyMeshDesc &cdesc,const NxSoftBodyMeshDesc &desc); void customCopyFrom(NxSoftBodyDesc &cdesc,const ::NxSoftBodyDesc &desc); void customCopyTo(::NxSoftBodyDesc &cdesc,const NxSoftBodyDesc &desc); #endif void customCopyFrom(NxConvexMeshDesc &cdesc,const ::NxConvexMeshDesc &desc); void customCopyTo(::NxConvexMeshDesc &cdesc,const NxConvexMeshDesc &desc); void customCopyFrom(NxSimpleTriangleMesh &cdesc,const ::NxSimpleTriangleMesh &desc); void customCopyTo(::NxSimpleTriangleMesh &cdesc,const NxSimpleTriangleMesh &desc); void customCopyFrom(NxTriangleMeshDesc &cdesc,const ::NxTriangleMeshDesc &desc); void customCopyTo(::NxTriangleMeshDesc &cdesc,const NxTriangleMeshDesc &desc); void customCopyFrom(NxHeightFieldDesc &cdesc,const ::NxHeightFieldDesc &desc); void customCopyTo(::NxHeightFieldDesc &cdesc,const NxHeightFieldDesc &desc); void customCopyFrom(NxClothMeshDesc &cdesc,const ::NxClothMeshDesc &desc); void customCopyTo(::NxClothMeshDesc &cdesc,const NxClothMeshDesc &desc); void customCopyFrom(NxMaterialDesc &cdesc,const ::NxMaterialDesc &desc); void customCopyTo(::NxMaterialDesc &cdesc,const NxMaterialDesc &desc); void customCopyFrom(NxShapeDesc &cdesc,const ::NxShapeDesc &desc); void customCopyTo(::NxShapeDesc &cdesc,const NxShapeDesc &desc); void customCopyFrom(NxConvexShapeDesc &cdesc,const ::NxConvexShapeDesc &desc); void customCopyTo(::NxConvexShapeDesc &cdesc,const NxConvexShapeDesc &desc); void customCopyFrom(NxTriangleMeshShapeDesc &cdesc,const ::NxTriangleMeshShapeDesc &desc); void customCopyTo(::NxTriangleMeshShapeDesc &cdesc,const NxTriangleMeshShapeDesc &desc); void customCopyFrom(NxHeightFieldShapeDesc &cdesc,const ::NxHeightFieldShapeDesc &desc); void customCopyTo(::NxHeightFieldShapeDesc &cdesc,const NxHeightFieldShapeDesc &desc); void customCopyFrom(NxActorDesc &cdesc,const ::NxActorDesc &desc); void customCopyTo(::NxActorDesc &cdesc,const NxActorDesc &desc); void customCopyFrom(NxJointDesc &cdesc,const ::NxJointDesc &desc); void customCopyTo(::NxJointDesc &cdesc,const NxJointDesc &desc); #if NX_USE_FLUID_API void customCopyFrom(NxParticleData &cdesc,const ::NxParticleData &desc); void customCopyTo(::NxParticleData &cdesc,const NxParticleData &desc); void customCopyFrom(NxFluidEmitterDesc &cdesc,const ::NxFluidEmitterDesc &desc); void customCopyTo(::NxFluidEmitterDesc &cdesc,const NxFluidEmitterDesc &desc); void customCopyFrom(NxFluidDesc &cdesc,const ::NxFluidDesc &desc); void customCopyTo(::NxFluidDesc &cdesc,const NxFluidDesc &desc); #endif void customCopyFrom(NxClothDesc &cdesc,const ::NxClothDesc &desc); void customCopyTo(::NxClothDesc &cdesc,const NxClothDesc &desc); void customCopyFrom(NxSpringAndDamperEffectorDesc &cdesc,const ::NxSpringAndDamperEffectorDesc &desc); void customCopyTo(::NxSpringAndDamperEffectorDesc &cdesc,const NxSpringAndDamperEffectorDesc &desc); #if NX_SDK_VERSION_NUMBER >= 270 void customCopyFrom(NxForceFieldDesc &cdesc,const ::NxForceFieldDesc &desc); void customCopyTo(::NxForceFieldDesc &cdesc,const NxForceFieldDesc &desc); #endif #if NX_SDK_VERSION_NUMBER >= 272 void customCopyFrom(NxForceFieldShapeDesc &cdesc,const ::NxForceFieldShapeDesc &desc); void customCopyTo(::NxForceFieldShapeDesc &cdesc,const NxForceFieldShapeDesc &desc); void customCopyFrom(NxConvexForceFieldShapeDesc &cdesc,const ::NxConvexForceFieldShapeDesc &desc); void customCopyTo(::NxConvexForceFieldShapeDesc &cdesc,const NxConvexForceFieldShapeDesc &desc); #endif #if NX_SDK_VERSION_NUMBER >= 280 void customCopyFrom(NxForceFieldShapeGroupDesc &cdesc,const ::NxForceFieldShapeGroupDesc &desc); void customCopyTo(::NxForceFieldShapeGroupDesc &cdesc,const NxForceFieldShapeGroupDesc &desc); void copyForceFieldShapesFrom(NxForceFieldShapeGroup* group, NxArray
& nxuShapes); void copyForceFieldShapesTo(NxArray< ::NxForceFieldShapeDesc*>& outArray, const NxArray
& inArray, const char* forceFieldID); #endif void customCopyFrom(NxSceneDesc &cdesc,const ::NxSceneDesc &desc); void customCopyTo(::NxSceneDesc &cdesc,const NxSceneDesc &desc); NxU16 getRemapMaterialIndex(NxU16 original); NxActor * getActorFromName(const char *name); const char * getNameFromActor(NxActor *actor); NxConvexMesh * getConvexMeshFromName(const char *name); const char * getNameFromConvexMesh(NxConvexMesh *mesh); NxConvexMeshDesc * getConvexMeshDescFromName(const char *name); NxTriangleMesh * getTriangleMeshFromName(const char *name); const char * getNameFromTriangleMesh(NxTriangleMesh *mesh); NxHeightField * getHeightFieldFromName(const char *name); const char * getNameFromHeightField(NxHeightField *mesh); NxClothMesh * getClothMeshFromName(const char *name); const char * getNameFromClothMesh(NxClothMesh *mesh); #if NX_USE_SOFTBODY_API NxSoftBodyMesh * getSoftBodyMeshFromName(const char *name); const char * getNameFromSoftBodyMesh(NxSoftBodyMesh *mesh); #endif #if NX_SDK_VERSION_NUMBER >= 260 NxCompartment * getCompartmentFromName(const char *name); const char * getNameFromCompartment(NxCompartment *nc); #endif NxCCDSkeleton * getSkeletonFromName(const char *name); const char * getNameFromSkeleton(NxCCDSkeleton *s); #if NX_SDK_VERSION_NUMBER >= 280 NxForceField * getForceFieldFromName(const char *name); const char * getNameFromForceField(NxForceField *field); NxForceFieldShapeGroup * getForceFieldShapeGroupFromName(const char *name); const char * getNameFromForceFieldShapeGroup(NxForceFieldShapeGroup *group); NxForceFieldLinearKernel * getForceFieldLinearKernelFromName(const char *name); const char * getNameFromForceFieldLinearKernel(NxForceFieldLinearKernel *kernel); #endif static NxSceneDesc * locateSceneDesc(NxuPhysicsCollection *pc,const char *id,NxU32 &index); static NxSceneInstanceDesc * locateSceneInstanceDesc(NxuPhysicsCollection *pc,const char *id,NxU32 &index); void initCollection(void); void initScene(void); private: NxuPhysicsCollection *mCurrentCollection; NxSceneDesc *mCurrentScene; }; bool scalePoints(NxConvexMeshDesc &desc,const NxVec3 &scale); // scale the input points. bool scalePoints(NxTriangleMeshDesc &desc,const NxVec3 &scale); // scale the input points. bool createCookedData(NxConvexMeshDesc &desc); // create cooked data from the points and triangles. bool createCookedData(NxTriangleMeshDesc &desc); // create cooked data from the points and triangles bool clearNonCooked(NxConvexMeshDesc &desc); // remove the non-cooked data since we only want the cooked data remaining. bool clearNonCooked(NxTriangleMeshDesc &desc); // remove the non-cooked data since we only want the cooked data remaining. extern bool gSaveDefaults; extern bool gSaveCooked; // save cooked data on export. extern bool gCookOnExport; // true if cooking data should be generated at export time. }; #endif
NXU_customcopy.h
Page URL
File URL
Prev
5/20
Next
Download
( 8 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.