FuzzyTransformSolver#
Fully qualified name: usd_optimize::FuzzyTransformSolver
-
class FuzzyTransformSolver#
Computes the fuzzy (OBB-based) transform from one fixed source mesh onto many target meshes, caching the source mesh’s oriented bounding box so it is built once rather than once per target. This is the dominant cost when matching a single prototype against a whole set of duplicates, so hoisting it out of the per-target loop is a meaningful win. The result for a given target matches _getTransformFromToFuzzy with the same source and target.
Public Functions
- FuzzyTransformSolver(
- const PXR_NS::VtVec3fArray &sourcePoints,
- const PXR_NS::VtIntArray &sourceIndices,
- const PXR_NS::VtIntArray &sourceFaceSizes,
-
~FuzzyTransformSolver()#
-
FuzzyTransformSolver(const FuzzyTransformSolver&) = delete#
-
FuzzyTransformSolver &operator=(const FuzzyTransformSolver&) = delete#
- PXR_NS::GfMatrix4d computeTransformTo(
- const PXR_NS::VtVec3fArray &targetPoints,
- const PXR_NS::VtIntArray &targetIndices,
- const PXR_NS::VtIntArray &targetFaceSizes,
Transform that maps the source mesh’s points onto the given target mesh’s points (OBB to OBB).