Deprecated: Will be replaced by a new deformable schema in a future release. More...
Inherits UsdAPISchemaBase.
Public Member Functions | |
PhysxSchemaPhysxDeformableAPI (const UsdPrim &prim=UsdPrim()) | |
Construct a PhysxSchemaPhysxDeformableAPI on UsdPrim prim . More... | |
PhysxSchemaPhysxDeformableAPI (const UsdSchemaBase &schemaObj) | |
Construct a PhysxSchemaPhysxDeformableAPI on the prim held by schemaObj . More... | |
virtual PHYSXSCHEMA_API | ~PhysxSchemaPhysxDeformableAPI () |
Destructor. More... | |
PHYSXSCHEMA_API UsdAttribute | GetDeformableEnabledAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateDeformableEnabledAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetDeformableEnabledAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetSolverPositionIterationCountAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateSolverPositionIterationCountAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetSolverPositionIterationCountAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetVertexVelocityDampingAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateVertexVelocityDampingAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetVertexVelocityDampingAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetSleepDampingAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateSleepDampingAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetSleepDampingAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetSleepThresholdAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateSleepThresholdAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetSleepThresholdAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetSettlingThresholdAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateSettlingThresholdAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetSettlingThresholdAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetMaxDepenetrationVelocityAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateMaxDepenetrationVelocityAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetMaxDepenetrationVelocityAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetSelfCollisionAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateSelfCollisionAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetSelfCollisionAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetSelfCollisionFilterDistanceAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateSelfCollisionFilterDistanceAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetSelfCollisionFilterDistanceAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetEnableCCDAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateEnableCCDAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetEnableCCDAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetRestPointsAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateRestPointsAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetRestPointsAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetSimulationVelocitiesAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateSimulationVelocitiesAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetSimulationVelocitiesAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdAttribute | GetSimulationIndicesAttr () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdAttribute | CreateSimulationIndicesAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetSimulationIndicesAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
PHYSXSCHEMA_API UsdRelationship | GetSimulationOwnerRel () const |
Deprecated: Will be replaced by a new deformable schema in a future release. More... | |
PHYSXSCHEMA_API UsdRelationship | CreateSimulationOwnerRel () const |
See GetSimulationOwnerRel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
Static Public Member Functions | |
static PHYSXSCHEMA_API const TfTokenVector & | GetSchemaAttributeNames (bool includeInherited=true) |
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor classes. More... | |
static PHYSXSCHEMA_API PhysxSchemaPhysxDeformableAPI | Get (const UsdStagePtr &stage, const SdfPath &path) |
Return a PhysxSchemaPhysxDeformableAPI holding the prim adhering to this schema at path on stage . More... | |
static PHYSXSCHEMA_API bool | CanApply (const UsdPrim &prim, std::string *whyNot=nullptr) |
Returns true if this single-apply API schema can be applied to the given prim . More... | |
static PHYSXSCHEMA_API PhysxSchemaPhysxDeformableAPI | Apply (const UsdPrim &prim) |
Applies this single-apply API schema to the given prim . More... | |
Static Public Attributes | |
static const UsdSchemaKind | schemaKind = UsdSchemaKind::SingleApplyAPI |
Compile time constant representing what kind of schema this class is. More... | |
Protected Member Functions | |
PHYSXSCHEMA_API UsdSchemaKind | _GetSchemaKind () const override |
Returns the kind of schema this class belongs to. More... | |
Friends | |
class | UsdSchemaRegistry |
Deprecated: Will be replaced by a new deformable schema in a future release.
Do not apply. Base API that provides attributes common to both deformable bodies and surfaces. Derived APIs are applied to UsdGeomMesh in order to create a deformable physics object. Note that the UsdGeomMesh points attribute becomes a read-only attribute for a deformable as the mesh is driven by the simulation.
Definition at line 61 of file physxDeformableAPI.h.
|
inlineexplicit |
Construct a PhysxSchemaPhysxDeformableAPI on UsdPrim prim
.
Equivalent to PhysxSchemaPhysxDeformableAPI::Get(prim.GetStage(), prim.GetPath()) for a valid prim
, but will not immediately throw an error for an invalid prim
Definition at line 73 of file physxDeformableAPI.h.
|
inlineexplicit |
Construct a PhysxSchemaPhysxDeformableAPI on the prim held by schemaObj
.
Should be preferred over PhysxSchemaPhysxDeformableAPI(schemaObj.GetPrim()), as it preserves SchemaBase state.
Definition at line 81 of file physxDeformableAPI.h.
|
virtual |
Destructor.
|
overrideprotected |
Returns the kind of schema this class belongs to.
|
static |
Applies this single-apply API schema to the given prim
.
This information is stored by adding "PhysxDeformableAPI" to the token-valued, listOp metadata apiSchemas on the prim.
|
static |
Returns true if this single-apply API schema can be applied to the given prim
.
If this schema can not be a applied to the prim, this returns false and, if provided, populates whyNot
with the reason it can not be applied.
Note that if CanApply returns false, that does not necessarily imply that calling Apply will fail. Callers are expected to call CanApply before calling Apply if they want to ensure that it is valid to apply a schema.
PHYSXSCHEMA_API UsdAttribute CreateDeformableEnabledAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetDeformableEnabledAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateEnableCCDAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetEnableCCDAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateMaxDepenetrationVelocityAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetMaxDepenetrationVelocityAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateRestPointsAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetRestPointsAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateSelfCollisionAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetSelfCollisionAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateSelfCollisionFilterDistanceAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetSelfCollisionFilterDistanceAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateSettlingThresholdAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetSettlingThresholdAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateSimulationIndicesAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetSimulationIndicesAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdRelationship CreateSimulationOwnerRel | ( | ) | const |
See GetSimulationOwnerRel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute CreateSimulationVelocitiesAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetSimulationVelocitiesAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateSleepDampingAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetSleepDampingAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateSleepThresholdAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetSleepThresholdAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateSolverPositionIterationCountAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetSolverPositionIterationCountAttr(), and also Usd_Create_Or_Get_Property 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
.
PHYSXSCHEMA_API UsdAttribute CreateVertexVelocityDampingAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetVertexVelocityDampingAttr(), and also Usd_Create_Or_Get_Property 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
.
|
static |
Return a PhysxSchemaPhysxDeformableAPI holding the prim adhering to this schema at path
on stage
.
If no prim exists at path
on stage
, or if the prim at that path does not adhere to this schema, return an invalid schema object. This is shorthand for the following:
PHYSXSCHEMA_API UsdAttribute GetDeformableEnabledAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Enable or disable the deformable object.
Declaration | bool physxDeformable:deformableEnabled = 1 |
C++ Type | bool |
Usd Type | SdfValueTypeNames->Bool |
PHYSXSCHEMA_API UsdAttribute GetEnableCCDAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Distance based CCD.
Declaration | bool physxDeformable:enableCCD = 0 |
C++ Type | bool |
Usd Type | SdfValueTypeNames->Bool |
PHYSXSCHEMA_API UsdAttribute GetMaxDepenetrationVelocityAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
The maximum velocity permitted to be introduced by the solver to depenetrate intersections. Range: [0, inf) Units: distance / seconds
Declaration | float physxDeformable:maxDepenetrationVelocity = inf |
C++ Type | float |
Usd Type | SdfValueTypeNames->Float |
PHYSXSCHEMA_API UsdAttribute GetRestPointsAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Rest points of the UsdGeomMesh in local coordinates. Units: distance
Declaration | point3f[] physxDeformable:restPoints |
C++ Type | VtArray<GfVec3f> |
Usd Type | SdfValueTypeNames->Point3fArray |
|
static |
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor classes.
Does not include attributes that may be authored by custom/extended methods of the schemas involved.
PHYSXSCHEMA_API UsdAttribute GetSelfCollisionAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Enables self collisions on the deformable, preventing self intersections.
Declaration | bool physxDeformable:selfCollision = 0 |
C++ Type | bool |
Usd Type | SdfValueTypeNames->Bool |
PHYSXSCHEMA_API UsdAttribute GetSelfCollisionFilterDistanceAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Distance under which self-collisions are disabled. Default value -inf means default is picked by the simulation. Range: [2*physxCollision:restOffset, max_float] Units: distance
Declaration | float physxDeformable:selfCollisionFilterDistance = -inf |
C++ Type | float |
Usd Type | SdfValueTypeNames->Float |
PHYSXSCHEMA_API UsdAttribute GetSettlingThresholdAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Threshold vertex velocity under which sleep damping is applied in addition to velocity damping. Range: [0, inf] Units: distance/seconds
Declaration | float physxDeformable:settlingThreshold = 0.1 |
C++ Type | float |
Usd Type | SdfValueTypeNames->Float |
PHYSXSCHEMA_API UsdAttribute GetSimulationIndicesAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Simulation mesh indices.
Declaration | uniform int[] physxDeformable:simulationIndices |
C++ Type | VtArray<int> |
Usd Type | SdfValueTypeNames->IntArray |
Variability | SdfVariabilityUniform |
PHYSXSCHEMA_API UsdRelationship GetSimulationOwnerRel | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Single PhysicsScene that simulates this deformable. By default, this is the first PhysicsScene found in the stage using UsdStage::Traverse().
PHYSXSCHEMA_API UsdAttribute GetSimulationVelocitiesAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Simulation mesh vertex velocities in local coordinates. Units: distance / seconds
Declaration | point3f[] physxDeformable:simulationVelocities |
C++ Type | VtArray<GfVec3f> |
Usd Type | SdfValueTypeNames->Point3fArray |
PHYSXSCHEMA_API UsdAttribute GetSleepDampingAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Additional damping term if vertex velocity drops below settlingThreshold. Range: [0, inf) Units: 1/seconds
Declaration | float physxDeformable:sleepDamping = 10 |
C++ Type | float |
Usd Type | SdfValueTypeNames->Float |
PHYSXSCHEMA_API UsdAttribute GetSleepThresholdAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Velocity threshold under which the vertex becomes a candidate for sleeping. Range: [0, inf) Units: distance/seconds
Declaration | float physxDeformable:sleepThreshold = 0.05 |
C++ Type | float |
Usd Type | SdfValueTypeNames->Float |
PHYSXSCHEMA_API UsdAttribute GetSolverPositionIterationCountAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Number of solver position iterations per time step. Range: [1, 255]
Declaration | uint physxDeformable:solverPositionIterationCount = 16 |
C++ Type | unsigned int |
Usd Type | SdfValueTypeNames->UInt |
PHYSXSCHEMA_API UsdAttribute GetVertexVelocityDampingAttr | ( | ) | const |
Deprecated: Will be replaced by a new deformable schema in a future release.
Artificial damping on the vertex velocity, which may approximate aerodynamic drag. Range: [0, inf) Units: 1/seconds
Declaration | float physxDeformable:vertexVelocityDamping = 0.005 |
C++ Type | float |
Usd Type | SdfValueTypeNames->Float |
|
static |
Compile time constant representing what kind of schema this class is.
Definition at line 67 of file physxDeformableAPI.h.