44// Licensed under the terms set forth in the LICENSE.txt file available at
55// https://openusd.org/license.
66//
7- #ifndef USDLIGHTFIELD_GENERATED_KERNELCONSTANTTRIANGLEAPI_H
8- #define USDLIGHTFIELD_GENERATED_KERNELCONSTANTTRIANGLEAPI_H
7+ #ifndef USDLIGHTFIELD_GENERATED_KERNELCONSTANTSURFLETAPI_H
8+ #define USDLIGHTFIELD_GENERATED_KERNELCONSTANTSURFLETAPI_H
99
10- // / \file usdLightField/kernelConstantTriangleAPI .h
10+ // / \file usdLightField/kernelConstantSurfletAPI .h
1111
1212#include " pxr/pxr.h"
1313#include " pxr/usd/usdLightField/api.h"
@@ -32,48 +32,47 @@ PXR_NAMESPACE_OPEN_SCOPE
3232class SdfAssetPath ;
3333
3434// -------------------------------------------------------------------------- //
35- // LIGHTFIELDKERNELCONSTANTTRIANGLEAPI //
35+ // LIGHTFIELDKERNELCONSTANTSURFLETAPI //
3636// -------------------------------------------------------------------------- //
3737
38- // / \class UsdLightFieldKernelConstantTriangleAPI
38+ // / \class UsdLightFieldKernelConstantSurfletAPI
3939// /
40- // / Defines the gaussian triangle kernel for a given ParticleField.
40+ // / Defines the constant surflet kernel for a given ParticleField.
4141// /
42- // / The kernal shape is an equilateral triangle centered at the origin, with
43- // / the base of the triangle, parallel to the x-axis, and the apex of the
44- // / triangle on the y-axis.
42+ // / The kernal shape is a circular disk centered at the origin, with the normal
43+ // / of the plane being oriented along the positive z-axis.
4544// /
4645// / The falloff function for this kernel is constant and the value is directly
4746// / defined by the opacity data source.
4847// /
49- class UsdLightFieldKernelConstantTriangleAPI : public UsdAPISchemaBase
48+ class UsdLightFieldKernelConstantSurfletAPI : public UsdAPISchemaBase
5049{
5150public:
5251 // / Compile time constant representing what kind of schema this class is.
5352 // /
5453 // / \sa UsdSchemaKind
5554 static const UsdSchemaKind schemaKind = UsdSchemaKind::SingleApplyAPI;
5655
57- // / Construct a UsdLightFieldKernelConstantTriangleAPI on UsdPrim \p prim .
58- // / Equivalent to UsdLightFieldKernelConstantTriangleAPI ::Get(prim.GetStage(), prim.GetPath())
56+ // / Construct a UsdLightFieldKernelConstantSurfletAPI on UsdPrim \p prim .
57+ // / Equivalent to UsdLightFieldKernelConstantSurfletAPI ::Get(prim.GetStage(), prim.GetPath())
5958 // / for a \em valid \p prim, but will not immediately throw an error for
6059 // / an invalid \p prim
61- explicit UsdLightFieldKernelConstantTriangleAPI (const UsdPrim& prim=UsdPrim())
60+ explicit UsdLightFieldKernelConstantSurfletAPI (const UsdPrim& prim=UsdPrim())
6261 : UsdAPISchemaBase(prim)
6362 {
6463 }
6564
66- // / Construct a UsdLightFieldKernelConstantTriangleAPI on the prim held by \p schemaObj .
67- // / Should be preferred over UsdLightFieldKernelConstantTriangleAPI (schemaObj.GetPrim()),
65+ // / Construct a UsdLightFieldKernelConstantSurfletAPI on the prim held by \p schemaObj .
66+ // / Should be preferred over UsdLightFieldKernelConstantSurfletAPI (schemaObj.GetPrim()),
6867 // / as it preserves SchemaBase state.
69- explicit UsdLightFieldKernelConstantTriangleAPI (const UsdSchemaBase& schemaObj)
68+ explicit UsdLightFieldKernelConstantSurfletAPI (const UsdSchemaBase& schemaObj)
7069 : UsdAPISchemaBase(schemaObj)
7170 {
7271 }
7372
7473 // / Destructor.
7574 USDLIGHTFIELD_API
76- virtual ~UsdLightFieldKernelConstantTriangleAPI ();
75+ virtual ~UsdLightFieldKernelConstantSurfletAPI ();
7776
7877 // / Return a vector of names of all pre-declared attributes for this schema
7978 // / class and all its ancestor classes. Does not include attributes that
@@ -82,17 +81,17 @@ class UsdLightFieldKernelConstantTriangleAPI : public UsdAPISchemaBase
8281 static const TfTokenVector &
8382 GetSchemaAttributeNames (bool includeInherited=true );
8483
85- // / Return a UsdLightFieldKernelConstantTriangleAPI holding the prim adhering to this
84+ // / Return a UsdLightFieldKernelConstantSurfletAPI holding the prim adhering to this
8685 // / schema at \p path on \p stage. If no prim exists at \p path on
8786 // / \p stage, or if the prim at that path does not adhere to this schema,
8887 // / return an invalid schema object. This is shorthand for the following:
8988 // /
9089 // / \code
91- // / UsdLightFieldKernelConstantTriangleAPI (stage->GetPrimAtPath(path));
90+ // / UsdLightFieldKernelConstantSurfletAPI (stage->GetPrimAtPath(path));
9291 // / \endcode
9392 // /
9493 USDLIGHTFIELD_API
95- static UsdLightFieldKernelConstantTriangleAPI
94+ static UsdLightFieldKernelConstantSurfletAPI
9695 Get (const UsdStagePtr &stage, const SdfPath &path);
9796
9897
@@ -117,11 +116,11 @@ class UsdLightFieldKernelConstantTriangleAPI : public UsdAPISchemaBase
117116 CanApply (const UsdPrim &prim, std::string *whyNot=nullptr );
118117
119118 // / Applies this <b>single-apply</b> API schema to the given \p prim.
120- // / This information is stored by adding "LightFieldKernelConstantTriangleAPI " to the
119+ // / This information is stored by adding "LightFieldKernelConstantSurfletAPI " to the
121120 // / token-valued, listOp metadata \em apiSchemas on the prim.
122121 // /
123- // / \return A valid UsdLightFieldKernelConstantTriangleAPI object is returned upon success.
124- // / An invalid (or empty) UsdLightFieldKernelConstantTriangleAPI object is returned upon
122+ // / \return A valid UsdLightFieldKernelConstantSurfletAPI object is returned upon success.
123+ // / An invalid (or empty) UsdLightFieldKernelConstantSurfletAPI object is returned upon
125124 // / failure. See \ref UsdPrim::ApplyAPI() for conditions
126125 // / resulting in failure.
127126 // /
@@ -132,7 +131,7 @@ class UsdLightFieldKernelConstantTriangleAPI : public UsdAPISchemaBase
132131 // / \sa UsdPrim::RemoveAPI()
133132 // /
134133 USDLIGHTFIELD_API
135- static UsdLightFieldKernelConstantTriangleAPI
134+ static UsdLightFieldKernelConstantSurfletAPI
136135 Apply (const UsdPrim &prim);
137136
138137protected:
0 commit comments