7#ifndef USDGEOM_GENERATED_TETMESH_H
8#define USDGEOM_GENERATED_TETMESH_H
13#include "pxr/usd/usdGeom/api.h"
19#include "pxr/usd/usd/timeCode.h"
21#include "pxr/base/vt/value.h"
28#include "pxr/base/tf/type.h"
30PXR_NAMESPACE_OPEN_SCOPE
136 static const TfType &_GetStaticTfType();
138 static bool _IsTypedSchema();
142 const TfType &_GetTfType()
const override;
236 VtVec3iArray* surfaceFaceIndices,
247 VtIntArray* invertedElements,
251PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and an optional resolved path.
A path value used to locate objects in layers or scenegraphs.
TfType represents a dynamic runtime type.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
Base class for all UsdGeomGprims that possess points, providing common attributes such as normals and...
Encodes a tetrahedral mesh.
USDGEOM_API UsdAttribute GetSurfaceFaceVertexIndicesAttr() const
surfaceFaceVertexIndices defines the triangle surface faces indices wrt.
USDGEOM_API UsdAttribute CreateSurfaceFaceVertexIndicesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSurfaceFaceVertexIndicesAttr(), and also Create vs Get Property Methods for when to use Get vs...
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
USDGEOM_API UsdAttribute GetTetVertexIndicesAttr() const
Flat list of the index (into the points attribute) of each vertex of each tetrahedron in the mesh.
static USDGEOM_API UsdGeomTetMesh Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdGeomTetMesh holding the prim adhering to this schema at path on stage.
virtual USDGEOM_API ~UsdGeomTetMesh()
Destructor.
USDGEOM_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
static USDGEOM_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...
UsdGeomTetMesh(const UsdSchemaBase &schemaObj)
Construct a UsdGeomTetMesh on the prim held by schemaObj .
USDGEOM_API UsdAttribute CreateTetVertexIndicesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetTetVertexIndicesAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
UsdGeomTetMesh(const UsdPrim &prim=UsdPrim())
Construct a UsdGeomTetMesh on UsdPrim prim .
static USDGEOM_API UsdGeomTetMesh Define(const UsdStagePtr &stage, const SdfPath &path)
Attempt to ensure a UsdPrim adhering to this schema at path is defined (according to UsdPrim::IsDefin...
static USDGEOM_API bool FindInvertedElements(const UsdGeomTetMesh &tetMesh, VtIntArray *invertedElements, const UsdTimeCode timeCode=UsdTimeCode::Default())
FindInvertedElements is used to determine if the tetMesh has inverted tetrahedral elements at the giv...
static USDGEOM_API bool ComputeSurfaceFaces(const UsdGeomTetMesh &tetMesh, VtVec3iArray *surfaceFaceIndices, const UsdTimeCode timeCode=UsdTimeCode::Default())
ComputeSurfaceFaces determines the vertex indices of the surface faces from tetVertexIndices.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
The base class for all schema types in Usd.
Singleton registry that provides access to schema type information and the prim definitions for regis...
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
static constexpr UsdTimeCode Default()
Produce a UsdTimeCode representing the sentinel value for 'default'.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.