aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/include
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
committerMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
commitb350eb5f4d44e8448115796144375d79438d74ae (patch)
tree8e102e8c28f45a1b87bd335ceee4f33c3d4ee7c2 /NvCloth/include
parentAdd visual samples. (diff)
downloadnvcloth-b350eb5f4d44e8448115796144375d79438d74ae.tar.xz
nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.zip
NvCloth 1.1.0 Release. (22041545)
Diffstat (limited to 'NvCloth/include')
-rw-r--r--NvCloth/include/NvCloth/Cloth.h5
-rw-r--r--NvCloth/include/NvCloth/Solver.h13
2 files changed, 15 insertions, 3 deletions
diff --git a/NvCloth/include/NvCloth/Cloth.h b/NvCloth/include/NvCloth/Cloth.h
index 9bf2bd0..3d783e9 100644
--- a/NvCloth/include/NvCloth/Cloth.h
+++ b/NvCloth/include/NvCloth/Cloth.h
@@ -388,7 +388,12 @@ class Cloth : public UserAllocated
///Returns value set with setSelfCollisionStiffness().
virtual float getSelfCollisionStiffness() const = 0;
+ /** \brief Set self collision indices.
+ Each index in the range indicates that the particle at that index should be used for self collision.
+ If set to an empty range (default) all particles will be used.
+ */
virtual void setSelfCollisionIndices(Range<const uint32_t>) = 0;
+ ///Returns the number of self collision indices set.
virtual uint32_t getNumSelfCollisionIndices() const = 0;
/* rest positions */
diff --git a/NvCloth/include/NvCloth/Solver.h b/NvCloth/include/NvCloth/Solver.h
index 9d1e373..d2eb955 100644
--- a/NvCloth/include/NvCloth/Solver.h
+++ b/NvCloth/include/NvCloth/Solver.h
@@ -30,6 +30,7 @@
#pragma once
#include "NvCloth/Allocator.h"
+#include "PsArray.h"
namespace nv
{
@@ -52,11 +53,17 @@ class Solver : public UserAllocated
public:
virtual ~Solver() {}
- /// Adds cloth object, returns true if successful.
- virtual void addCloth(Cloth*) = 0;
+ /// Adds cloth object.
+ virtual void addCloth(Cloth* cloth) = 0;
/// Removes cloth object.
- virtual void removeCloth(Cloth*) = 0;
+ virtual void removeCloth(Cloth* cloth) = 0;
+
+ /// Returns the numer of cloths added to the solver.
+ virtual int getNumCloths() const = 0;
+
+ /// Returns the pointer to the first cloth added to the solver
+ virtual Cloth * const * getClothList() const = 0;
// functions executing the simulation work.
/** \brief Begins a simulation frame.