- Notifications
You must be signed in to change notification settings - Fork 13
Open
Milestone
Description
All current HLSCM tests go through the top-level Compute() API. Three internal components — buildHierarchy, prolongateUVs, and solveLSCMLevel — are each 100–200 lines with complex invariants. They are public template functions in detail::hlscm and are directly testable. Without isolation tests, failures are difficult to diagnose.
Items
buildHierarchy: Verify level count, vertex counts at each level, that pinned vertices survive decimation, and thatlocalToOriginal/originalToLocalare consistent.prolongateUVs: Verify that each collapsed vertex's UV is correctly reconstructed from its barycentric coordinates. Test the edge case wherecontainingTri = {vKeep, vKeep, vKeep}.solveLSCMLevel: Verify that the solver produces correct UVs on a small known mesh (e.g. pyramid), and that pinned vertices retain their prescribed UV positions.MultiLevelHierarchytest: Currently infers multi-level was triggered indirectly. Expose the level count frombuildHierarchyor add a test hook, and assert directly.
Dependencies
- Depends on F1 (HLSCM) being merged
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels