Add support for plane geometry.

PiperOrigin-RevId: 750994019
Change-Id: Ia3b085bed5b8e2fcdb00ffc69dd5551a7fa3c30d
This commit is contained in:
Google DeepMind
2025-04-24 07:53:58 -07:00
committed by Copybara-Service
parent 9e72874801
commit 8df3614781
3 changed files with 101 additions and 2 deletions
+3 -2
View File
@@ -70,10 +70,11 @@ template <typename T>
void ExpectAttributeEqual(pxr::UsdStageRefPtr stage, const char* path,
const T& value) {
auto attr = stage->GetAttributeAtPath(pxr::SdfPath(path));
EXPECT_TRUE(attr.IsValid());
EXPECT_TRUE(attr.IsValid()) << "Attribute " << path << " is not valid";
T attr_value;
attr.Get(&attr_value);
EXPECT_EQ(attr_value, value);
EXPECT_EQ(attr_value, value) << "Attribute " << path << " has value "
<< attr_value << ". Expected: " << value;
}
// Specialization for SdfAssetPath, so that we can compare only the asset path