usdrt::PhysxSchemaPhysxDeformableSurfaceMaterialAPI

Defined in usdrt/scenegraph/usd/physxSchema/physxDeformableSurfaceMaterialAPI.h

Functions

Variables

class PhysxSchemaPhysxDeformableSurfaceMaterialAPI : public usdrt::UsdAPISchemaBase

WARNING: This is a draft API; the design is not fixed and may change in the future. Applied to USD Material. Defines material properties for deformable surfaces.

Public Functions

inline explicit PhysxSchemaPhysxDeformableSurfaceMaterialAPI(const UsdPrim &prim = UsdPrim())

Construct a PhysxSchemaPhysxDeformableSurfaceMaterialAPI on UsdPrim prim. Equivalent to PhysxSchemaPhysxDeformableSurfaceMaterialAPI::Get(prim.GetStage(), prim.GetPath()) for a valid prim , but will not immediately throw an error for an invalid prim.

inline explicit PhysxSchemaPhysxDeformableSurfaceMaterialAPI(const UsdSchemaBase &schemaObj)

Construct a PhysxSchemaPhysxDeformableSurfaceMaterialAPI on the prim held by schemaObj . Should be preferred over PhysxSchemaPhysxDeformableSurfaceMaterialAPI(schemaObj.GetPrim()), as it preserves SchemaBase state.

inline virtual ~PhysxSchemaPhysxDeformableSurfaceMaterialAPI()

Destructor.

inline operator bool() const

Boolean operator.

Returns

Return true if the contained prim is has this api schema applied using HasAPI, and false otherwise.

inline UsdAttribute GetDensityAttr() const

Material density. If set to 0.0, the simulation determines a default value. The mass of deformable surface is computed by density * area * thickness. A density or mass set with a PhysicsMassAPI overrides the material density. Range: [0, inf) Units: mass / distance / distance / distance.

Declaration

float physxDeformableSurfaceMaterial:density = 0

C++ Type

float

Usd Type

SdfValueTypeNames->Float

inline UsdAttribute CreateDensityAttr() const

See GetDensityAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author defaultValue as the attribute’s default, sparsely (when it makes sense to do so) if writeSparsely is true - the default for writeSparsely is false.

inline UsdAttribute GetDynamicFrictionAttr() const

Dynamic friction coefficient. Range: [0, inf) Units: dimensionless.

Declaration

float physxDeformableSurfaceMaterial:dynamicFriction = 0.25

C++ Type

float

Usd Type

SdfValueTypeNames->Float

inline UsdAttribute CreateDynamicFrictionAttr() const

See GetDynamicFrictionAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author defaultValue as the attribute’s default, sparsely (when it makes sense to do so) if writeSparsely is true - the default for writeSparsely is false.

inline UsdAttribute GetYoungsModulusAttr() const

Young’s modulus, i.e. the tensile stiffness of the material. Used to determine in-plane and bending stiffness. If set to a negative value, the simulation determines a default value. Range: [0, inf) Units: force / area = mass/distance/seconds/seconds.

Declaration

float physxDeformableSurfaceMaterial:youngsModulus = -inf

C++ Type

float

Usd Type

SdfValueTypeNames->Float

inline UsdAttribute CreateYoungsModulusAttr() const

See GetYoungsModulusAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author defaultValue as the attribute’s default, sparsely (when it makes sense to do so) if writeSparsely is true - the default for writeSparsely is false.

inline UsdAttribute GetPoissonsRatioAttr() const

Poissons’s ratio which defines the material’s volume preservation under stress. Used to determine in-plane and bending stiffness. Range: [0, 0.5] Units: dimensionless.

Declaration

float physxDeformableSurfaceMaterial:poissonsRatio = 0

C++ Type

float

Usd Type

SdfValueTypeNames->Float

inline UsdAttribute CreatePoissonsRatioAttr() const

See GetPoissonsRatioAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author defaultValue as the attribute’s default, sparsely (when it makes sense to do so) if writeSparsely is true - the default for writeSparsely is false.

inline UsdAttribute GetThicknessAttr() const

Virtual thickness of cloth mesh. Used to determine in-plane and bending stiffness, and mass from density. If set to 0.0, the simulation determines a default value. Range: [0.0, inf) Units: distance.

Declaration

float physxDeformableSurfaceMaterial:thickness = 0

C++ Type

float

Usd Type

SdfValueTypeNames->Float

inline UsdAttribute CreateThicknessAttr() const

See GetThicknessAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author defaultValue as the attribute’s default, sparsely (when it makes sense to do so) if writeSparsely is true - the default for writeSparsely is false.

UsdPrim GetPrim() const

Return this schema object’s held prim.

SdfPath GetPath() const

Return the SdfPath to this schema object’s held prim.

Public Static Functions

static inline PhysxSchemaPhysxDeformableSurfaceMaterialAPI Apply(const UsdPrim &prim)

Applies this single-apply API schema to the given prim. This information is stored by adding “PhysxDeformableSurfaceMaterialAPI” to the token-valued, listOp metadata apiSchemas on the prim.

See also

UsdPrim::GetAppliedSchemas()

See also

UsdPrim::HasAPI()

See also

UsdPrim::ApplyAPI()

See also

UsdPrim::RemoveAPI()

Returns

A valid PhysxSchemaPhysxDeformableSurfaceMaterialAPI object is returned upon success. An invalid (or empty) PhysxSchemaPhysxDeformableSurfaceMaterialAPI object is returned upon failure. See UsdPrim::ApplyAPI() for conditions resulting in failure.

Public Static Attributes

static const UsdSchemaType schemaType = UsdSchemaType::SingleApplyAPI

Compile time constant representing what kind of schema this class is.

See also

UsdSchemaType

Protected Functions

inline const TfToken &_GetInstanceName() const

Returns the instance name of the API schema object belonging to a multiple-apply API schema.

The returned instance name will be empty for non-applied and single-apply API schemas.