24 #ifndef PHYSXSCHEMA_GENERATED_PHYSXPARTICLEISOSURFACEAPI_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXPARTICLEISOSURFACEAPI_H
31 #include "pxr/usd/usd/apiSchemaBase.h"
32 #include "pxr/usd/usd/prim.h"
33 #include "pxr/usd/usd/stage.h"
36 #include "pxr/base/vt/value.h"
38 #include "pxr/base/gf/vec3d.h"
39 #include "pxr/base/gf/vec3f.h"
40 #include "pxr/base/gf/matrix4d.h"
42 #include "pxr/base/tf/token.h"
43 #include "pxr/base/tf/type.h"
45 PXR_NAMESPACE_OPEN_SCOPE
65 static const UsdSchemaKind
schemaKind = UsdSchemaKind::SingleApplyAPI;
72 : UsdAPISchemaBase(prim)
80 : UsdAPISchemaBase(schemaObj)
92 static const TfTokenVector &
106 Get(
const UsdStagePtr &stage,
const SdfPath &path);
127 CanApply(
const UsdPrim &prim, std::string *whyNot=
nullptr);
146 Apply(
const UsdPrim &prim);
157 friend class UsdSchemaRegistry;
159 static const TfType &_GetStaticTfType();
161 static bool _IsTypedSchema();
165 const TfType &_GetTfType()
const override;
211 UsdAttribute
CreateMaxVerticesAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
235 UsdAttribute
CreateMaxTrianglesAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
259 UsdAttribute
CreateMaxSubgridsAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
283 UsdAttribute
CreateGridSpacingAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
414 PXR_NAMESPACE_CLOSE_SCOPE
static PHYSXSCHEMA_API PhysxSchemaPhysxParticleIsosurfaceAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxParticleIsosurfaceAPI holding the prim adhering to this schema at path on st...
PHYSXSCHEMA_API UsdAttribute GetGridFilteringPassesAttr() const
Grid filtering sequence, defined as capital letters "S":Smooth, "G":Grow, "R":Reduce.
PHYSXSCHEMA_API UsdAttribute CreateNumMeshNormalSmoothingPassesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetNumMeshNormalSmoothingPassesAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs...
PHYSXSCHEMA_API UsdAttribute CreateIsosurfaceEnabledAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetIsosurfaceEnabledAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetIsosurfaceEnabledAttr() const
Enable or disable the creation of an isosurface.
PHYSXSCHEMA_API UsdAttribute CreateMaxSubgridsAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxSubgridsAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetSurfaceDistanceAttr() const
Distance from particle center to isosurface.
PHYSXSCHEMA_API UsdAttribute GetNumMeshNormalSmoothingPassesAttr() const
Number of smoothing passes applied to the normals of the generated isosurface triangle mesh...
PHYSXSCHEMA_API UsdAttribute CreateMaxVerticesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxVerticesAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static PHYSXSCHEMA_API PhysxSchemaPhysxParticleIsosurfaceAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
PHYSXSCHEMA_API UsdAttribute CreateMaxTrianglesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxTrianglesAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateGridFilteringPassesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetGridFilteringPassesAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
WARNING: This is a draft API; the design is not fixed and may change in the future.
PHYSXSCHEMA_API UsdAttribute CreateGridSmoothingRadiusAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetGridSmoothingRadiusAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PhysxSchemaPhysxParticleIsosurfaceAPI(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxParticleIsosurfaceAPI on the prim held by schemaObj . ...
PHYSXSCHEMA_API UsdAttribute GetMaxTrianglesAttr() const
Maximum number of triangles the extracted isosurface can have.
PHYSXSCHEMA_API UsdAttribute GetGridSpacingAttr() const
Cell Size of the grid used for isosurface extraction.
PHYSXSCHEMA_API UsdAttribute GetMaxSubgridsAttr() const
Maximum number of blocks the sparse grid structure can contain.
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxParticleIsosurfaceAPI()
Destructor.
PHYSXSCHEMA_API UsdAttribute GetGridSmoothingRadiusAttr() const
The radius used during the smoothing process on the grid.
PHYSXSCHEMA_API UsdAttribute CreateNumMeshSmoothingPassesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetNumMeshSmoothingPassesAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Creat...
PHYSXSCHEMA_API UsdAttribute GetNumMeshSmoothingPassesAttr() const
Number of smoothing passes applied to the generated isosurface triangle mesh.
PHYSXSCHEMA_API UsdAttribute CreateGridSpacingAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetGridSpacingAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetMaxVerticesAttr() const
Maximum number of vertices the extracted isosurface can have.
PhysxSchemaPhysxParticleIsosurfaceAPI(const UsdPrim &prim=UsdPrim())
Construct a PhysxSchemaPhysxParticleIsosurfaceAPI on UsdPrim prim .
PHYSXSCHEMA_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
PHYSXSCHEMA_API UsdAttribute CreateSurfaceDistanceAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSurfaceDistanceAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
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.
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 cl...