From e9623d143fb8b59546e3911d49e3e0c85faa2237 Mon Sep 17 00:00:00 2001 From: Bryan Galdrikian Date: Mon, 30 Oct 2017 12:48:13 -0700 Subject: Add setChunkMesh method for FractureTool --- ...last_ext_authoring_fracture_tool_8h-source.html | 102 +++++++++++---------- ...ass_nv_1_1_blast_1_1_fracture_tool-members.html | 1 + .../class_nv_1_1_blast_1_1_fracture_tool.html | 31 +++++++ docs/api_docs/files/functions_0x73.html | 16 ++-- docs/api_docs/files/functions_0x74.html | 6 +- docs/api_docs/files/functions_func_0x73.html | 8 +- 6 files changed, 101 insertions(+), 63 deletions(-) (limited to 'docs/api_docs') diff --git a/docs/api_docs/files/_nv_blast_ext_authoring_fracture_tool_8h-source.html b/docs/api_docs/files/_nv_blast_ext_authoring_fracture_tool_8h-source.html index 3ed7781..236c38c 100644 --- a/docs/api_docs/files/_nv_blast_ext_authoring_fracture_tool_8h-source.html +++ b/docs/api_docs/files/_nv_blast_ext_authoring_fracture_tool_8h-source.html @@ -132,61 +132,63 @@ 00200 00204 virtual void setSourceMesh(const Mesh* mesh) = 0; 00205 -00209 virtual void setInteriorMaterialId(int32_t materialId) = 0; +00209 virtual int32_t setChunkMesh(const Mesh* mesh, int32_t parentId) = 0; 00210 -00214 virtual int32_t getInteriorMaterialId() const = 0; +00214 virtual void setInteriorMaterialId(int32_t materialId) = 0; 00215 -00219 virtual void replaceMaterialId(int32_t oldMaterialId, int32_t newMaterialId) = 0; +00219 virtual int32_t getInteriorMaterialId() const = 0; 00220 -00224 virtual Mesh* createChunkMesh(int32_t chunkId) = 0; +00224 virtual void replaceMaterialId(int32_t oldMaterialId, int32_t newMaterialId) = 0; 00225 -00230 virtual void getTransformation(physx::PxVec3& offset, float& scale) = 0; -00231 -00232 -00241 virtual int32_t voronoiFracturing(uint32_t chunkId, uint32_t cellCount, const physx::PxVec3* cellPoints, bool replaceChunk) = 0; -00242 -00254 virtual int32_t voronoiFracturing(uint32_t chunkId, uint32_t cellCount, const physx::PxVec3* cellPoints, const physx::PxVec3& scale, const physx::PxQuat& rotation, bool replaceChunk) = 0; -00255 -00256 -00267 virtual int32_t slicing(uint32_t chunkId, SlicingConfiguration conf, bool replaceChunk, RandomGeneratorBase* rnd) = 0; -00268 -00269 -00273 virtual void finalizeFracturing() = 0; -00274 -00275 virtual uint32_t getChunkCount() const = 0; -00276 -00280 virtual const ChunkInfo& getChunkInfo(int32_t chunkIndex) = 0; +00229 virtual Mesh* createChunkMesh(int32_t chunkId) = 0; +00230 +00235 virtual void getTransformation(physx::PxVec3& offset, float& scale) = 0; +00236 +00237 +00246 virtual int32_t voronoiFracturing(uint32_t chunkId, uint32_t cellCount, const physx::PxVec3* cellPoints, bool replaceChunk) = 0; +00247 +00259 virtual int32_t voronoiFracturing(uint32_t chunkId, uint32_t cellCount, const physx::PxVec3* cellPoints, const physx::PxVec3& scale, const physx::PxQuat& rotation, bool replaceChunk) = 0; +00260 +00261 +00272 virtual int32_t slicing(uint32_t chunkId, SlicingConfiguration conf, bool replaceChunk, RandomGeneratorBase* rnd) = 0; +00273 +00274 +00278 virtual void finalizeFracturing() = 0; +00279 +00280 virtual uint32_t getChunkCount() const = 0; 00281 -00289 virtual float getMeshOverlap(const Mesh& meshA, const Mesh& meshB) = 0; -00290 -00297 virtual uint32_t getBaseMesh(int32_t chunkIndex, Triangle*& output) = 0; -00298 -00304 virtual int32_t getChunkIndex(int32_t chunkId) = 0; -00305 -00311 virtual int32_t getChunkId(int32_t chunkIndex) = 0; -00312 -00318 virtual int32_t getChunkDepth(int32_t chunkId) = 0; -00319 -00326 virtual uint32_t getChunksIdAtDepth(uint32_t depth, int32_t*& chunkIds) = 0; -00327 -00328 -00338 virtual uint32_t getBufferedBaseMeshes(Vertex*& vertexBuffer, uint32_t*& indexBuffer, uint32_t*& indexBufferOffsets) = 0; -00339 -00344 virtual void setRemoveIslands(bool isRemoveIslands) = 0; -00345 -00351 virtual int32_t islandDetectionAndRemoving(int32_t chunkId) = 0; -00352 -00357 virtual bool isMeshContainOpenEdges(const Mesh* input) = 0; -00358 -00364 virtual bool deleteAllChildrenOfChunk(int32_t chunkId) = 0; -00365 -00366 virtual void uniteChunks(uint32_t maxAtLevel, uint32_t maxGroupSize) = 0; -00367 }; -00368 -00369 } // namespace Blast -00370 } // namespace Nv -00371 -00372 #endif // ifndef NVBLASTAUTHORINGFRACTURETOOL_H +00285 virtual const ChunkInfo& getChunkInfo(int32_t chunkIndex) = 0; +00286 +00294 virtual float getMeshOverlap(const Mesh& meshA, const Mesh& meshB) = 0; +00295 +00302 virtual uint32_t getBaseMesh(int32_t chunkIndex, Triangle*& output) = 0; +00303 +00309 virtual int32_t getChunkIndex(int32_t chunkId) = 0; +00310 +00316 virtual int32_t getChunkId(int32_t chunkIndex) = 0; +00317 +00323 virtual int32_t getChunkDepth(int32_t chunkId) = 0; +00324 +00331 virtual uint32_t getChunksIdAtDepth(uint32_t depth, int32_t*& chunkIds) = 0; +00332 +00333 +00343 virtual uint32_t getBufferedBaseMeshes(Vertex*& vertexBuffer, uint32_t*& indexBuffer, uint32_t*& indexBufferOffsets) = 0; +00344 +00349 virtual void setRemoveIslands(bool isRemoveIslands) = 0; +00350 +00356 virtual int32_t islandDetectionAndRemoving(int32_t chunkId) = 0; +00357 +00362 virtual bool isMeshContainOpenEdges(const Mesh* input) = 0; +00363 +00369 virtual bool deleteAllChildrenOfChunk(int32_t chunkId) = 0; +00370 +00371 virtual void uniteChunks(uint32_t maxAtLevel, uint32_t maxGroupSize) = 0; +00372 }; +00373 +00374 } // namespace Blast +00375 } // namespace Nv +00376 +00377 #endif // ifndef NVBLASTAUTHORINGFRACTURETOOL_H

+ +

+
+ + + + + + + + + + + + + + + + + + +
virtual int32_t Nv::Blast::FractureTool::setChunkMesh (const Mesh mesh,
int32_t  parentId 
) [pure virtual]
+
+
+ +

+Set chunk mesh, parentId should be valid, return id of new chunk. +

+

diff --git a/docs/api_docs/files/functions_0x73.html b/docs/api_docs/files/functions_0x73.html index 9d6ce8b..c96e8bd 100644 --- a/docs/api_docs/files/functions_0x73.html +++ b/docs/api_docs/files/functions_0x73.html @@ -84,6 +84,8 @@ Here is a list of all class members with links to the classes they belong to: : Nv::Blast::VoronoiSitesGenerator
  • setBufferProvider() : Nv::Blast::ExtSerialization +
  • setChunkMesh() +: Nv::Blast::FractureTool
  • setCreateJointFunction() : Nv::Blast::ExtPxManager
  • setDefault() @@ -136,9 +138,9 @@ Here is a list of all class members with links to the classes they belong to:
  • slicing() : Nv::Blast::FractureTool
  • smoothingGroup -: Nv::Blast::TriangleIndexed +: Nv::Blast::Triangle +, Nv::Blast::TriangleIndexed , Nv::Blast::Facet -, Nv::Blast::Triangle
  • spawn() : Nv::Blast::ExtPxFamily
  • Split @@ -156,8 +158,8 @@ Here is a list of all class members with links to the classes they belong to:
  • stressLinearFactor : Nv::Blast::ExtStressSolverSettings
  • subchunkCount -: Nv::Blast::ExtPxAssetDesc::ExtPxAssetDesc::ChunkDesc -, Nv::Blast::ExtPxChunk +: Nv::Blast::ExtPxChunk +, Nv::Blast::ExtPxAssetDesc::ExtPxAssetDesc::ChunkDesc
  • subchunks : Nv::Blast::ExtPxAssetDesc::ExtPxAssetDesc::ChunkDesc
  • subgraphShaderFunction @@ -171,10 +173,10 @@ Here is a list of all class members with links to the classes they belong to:
  • subscribe() : Nv::Blast::ExtPxManager , Nv::Blast::ExtPxFamily -
  • subtype -: Nv::Blast::TkJointUpdateEvent
  • Subtype : Nv::Blast::TkJointUpdateEvent +
  • subtype +: Nv::Blast::TkJointUpdateEvent
  • supportChunkHealths : NvBlastGraphShaderActor
  • SupportFlag @@ -182,7 +184,7 @@ Here is a list of all class members with links to the classes they belong to:
  • surfaceResolution : Nv::Blast::SlicingConfiguration
  • syncFamily() -: Nv::Blast::ExtSync +: Nv::Blast::ExtSync
  • diff --git a/docs/api_docs/files/functions_0x74.html b/docs/api_docs/files/functions_0x74.html index 7129ab6..e69a69f 100644 --- a/docs/api_docs/files/functions_0x74.html +++ b/docs/api_docs/files/functions_0x74.html @@ -89,15 +89,15 @@ Here is a list of all class members with links to the classes they belong to: : Nv::Blast::PlaneChunkIndexer
  • trimCollisionGeometry() : Nv::Blast::ConvexMeshBuilder -
  • type -: Nv::Blast::ExtSyncEvent
  • Type : NvBlastDataBlock -, Nv::Blast::TkEvent
  • type : Nv::Blast::TkEvent
  • Type : NvBlastMessage +, Nv::Blast::TkEvent +
  • type +: Nv::Blast::ExtSyncEvent
  • TypeCount : Nv::Blast::TkTypeIndex , Nv::Blast::TkEvent diff --git a/docs/api_docs/files/functions_func_0x73.html b/docs/api_docs/files/functions_func_0x73.html index 571d773..1b60999 100644 --- a/docs/api_docs/files/functions_func_0x73.html +++ b/docs/api_docs/files/functions_func_0x73.html @@ -75,6 +75,8 @@ : Nv::Blast::VoronoiSitesGenerator
  • setBufferProvider() : Nv::Blast::ExtSerialization +
  • setChunkMesh() +: Nv::Blast::FractureTool
  • setCreateJointFunction() : Nv::Blast::ExtPxManager
  • setDefault() @@ -104,8 +106,8 @@
  • setSerializationEncoding() : Nv::Blast::ExtSerialization
  • setSettings() -: Nv::Blast::ExtImpactDamageManager -, Nv::Blast::ExtStressSolver +: Nv::Blast::ExtStressSolver +, Nv::Blast::ExtImpactDamageManager
  • setSmoothingGroup() : Nv::Blast::Mesh
  • setSourceMesh() @@ -128,7 +130,7 @@ : Nv::Blast::ExtPxManager , Nv::Blast::ExtPxFamily
  • syncFamily() -: Nv::Blast::ExtSync +: Nv::Blast::ExtSync
  • -- cgit v1.2.3