From 1e887d827e65a084a0ad0ba933c61a8330aeee07 Mon Sep 17 00:00:00 2001 From: Bryan Galdrikian Date: Mon, 28 Aug 2017 13:55:34 -0700 Subject: Candidate 1.1 release. * SampleAssetViewer now unconditionally loads the commandline-defined asset. * Better error handling in AuthoringTool (stderr and user error handler). * More consistent commandline switches in AuthoringTool and ApexImporter (--ll, --tx, --px flags). * NvBlastExtAuthoring ** Mesh cleaner, tries to remove self intersections and open edges in the interior of a mesh. ** Ability to set interior material to existing (external) material, or a new material id. ** Material ID remapping API. ** Rotation of voronoi cells used for fracturing. * Fixed smoothing groups in FBX exporter code. * Impulse passing from parent to child chunks fixed. * Reading unskinned fbx meshes correctly. * Collision hull generation from fbx meshes fixed. * Win32/64 PerfTest crash fix. --- .../source/NvBlastExtAuthoringFractureToolImpl.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sdk/extensions/authoring/source/NvBlastExtAuthoringFractureToolImpl.h') diff --git a/sdk/extensions/authoring/source/NvBlastExtAuthoringFractureToolImpl.h b/sdk/extensions/authoring/source/NvBlastExtAuthoringFractureToolImpl.h index 612c0e7..d3eed09 100644 --- a/sdk/extensions/authoring/source/NvBlastExtAuthoringFractureToolImpl.h +++ b/sdk/extensions/authoring/source/NvBlastExtAuthoringFractureToolImpl.h @@ -138,6 +138,7 @@ public: mPlaneIndexerOffset = 1; mChunkIdCounter = 0; mRemoveIslands = false; + mInteriorMaterialId = MATERIAL_INTERIOR; } ~FractureToolImpl() @@ -152,7 +153,21 @@ public: */ void reset() override; + /** + Set the material id to use for new interior faces. Defaults to MATERIAL_INTERIOR + */ + void setInteriorMaterialId(int32_t materialId) override; + + /** + Gets the material id to use for new interior faces + */ + int32_t getInteriorMaterialId() const override; + /** + Replaces an material id on faces with a new one + */ + void replaceMaterialId(int32_t oldMaterialId, int32_t newMaterialId) override; + /** Set input mesh wich will be fractured, FractureTool will be reseted. */ @@ -322,6 +337,7 @@ protected: std::vector mChunkData; bool mRemoveIslands; + int32_t mInteriorMaterialId; }; } // namespace Blast -- cgit v1.2.3